remote control - Android EditMetadata with RemoteControl Client -


i'm tring create library phonegap give me control remote control client. phonegap side plus structure of new class made don't know how change metadata.

i've made function:

public void setmetadata() {     remotecontrolclient.metadataeditor editor = remotecontrolclient.editmetadata(true)                 .putstring(mediametadataretriever.metadata_key_album, "ciao"); } 

but i'm sure i've missed register function.

someone can give me help?

thanks!

for registering

// register remote client =========================================== final intent mediabuttonintent = new intent(intent.action_media_button); mediabuttonintent.setcomponent(remotecontrolreceiver); final pendingintent mediapendingintent = pendingintent.getbroadcast(                    getapplicationcontext(), 0, mediabuttonintent, 0);  // create , register remote control client myremotecontrolclient = new remotecontrolclient(mediapendingintent); audiomanager.registerremotecontrolclient(myremotecontrolclient); 

and dont forget apply editor after made changes.

editor.apply(); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -