How to control the default music player from android wear App -


hi need play music android wear app.

i use code open default music player

          if(android.os.build.version.sdk_int>=15){             intent intent=intent.makemainselectoractivity(intent.action_main,                     intent.category_app_music);             intent.addflags(intent.flag_activity_new_task);//min sdk 15             intent.setaction(intent.action_run);             startactivity(intent);         } 

but need implement onplay,next, previ, stop..

searched services not working..

is other way play songs android wear can me finish this.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -