I am using Implicit Intents
to open Music player from my application but it is not showing default music player which Android provides
Here default MIUI music player option is missing
This is how i am calling my Intent
Intent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
Same thing happens with Gallery
Intent gallery = new Intent();
gallery.setAction(android.content.Intent.ACTION_VIEW);
gallery.setType("image/*");
gallery.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(gallery);
This code automatically opens Google Photo app instead of default Gallery Application Is there any extra line that i need to add while calling my intent??
Note:- I cant open app using PackageName as I want user to choose the app which he wants to open
I also cant pass theuri
as I don't want to open any photo or music file by default