My problem is that I have an intent such as this one.
Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH);
intent.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Artists.ENTRY_CONTENT_TYPE);
intent.putExtra(MediaStore.EXTRA_MEDIA_ARTIST, artist);
intent.putExtra(SearchManager.QUERY, artist);
if(intent.resolveActivity(getPackageManager()) != null)
{
startActivity(intent);
}
And what happens is when I test the app it asks an open with. So if I open the standard music android app it doesn't open but when I use Google music it works like a charm.
So if there is no choice and I must use Google music as no could one answered this question I am guessing it is some problem I don't know. But atleast is there a way to set it such that it opens only via Google music app. Like setting googlw music as the default application to open the particular intent sent only by my application without harming any other process.
I am a beginner in Android. And pls. pls. Do help me.