List installed media players Android -


i'm trying list of apps can handle media installed on android.

i've tried methods listed here (how list of installed media players), none of them worked. return empty list , have multiple media players installed, recognized headset droid (https://play.google.com/store/apps/details?id=tvk.headvol).

can suggest alternative method or might have , idea problem can be? need set permissions?

edit: found solution myself:

intent intent = new intent(intent.action_media_button); list<resolveinfo> pkgappslist = packagemanager.querybroadcastreceivers(intent, 0); 

here came with:

packagemanager packagemanager = this.getpackagemanager(); list<resolveinfo> pkgappslist; intent intent = new intent(intent.action_media_button); pkgappslist = packagemanager.querybroadcastreceivers(intent, 0); 

this provides list apps can handle action_media_button intent. these media apps.


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 -

Function that returns a formatted array in VBA -