amazonmp3

melamoud

Active Member
Licensed User
Longtime User
anyone know how to run amazonMp3 with parameters using intent ?
also how do I check if it exists ?

thanks
 

melamoud

Active Member
Licensed User
Longtime User
thanks, I know the package name , how do I check the intent extras, the log show:
04-09 15:10:39.373 I/ActivityManager( 1324): Starting: Intent { act=com.amazon.mp3.action.EXTERNAL_EVENT cmp=com.amazon.mp3/.activity.IntentProxyActivity (has extras) } from pid 8285

and no more data , never the extra (unless the app log it itself) right ?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
Try this:
B4X:
Dim i As Intent

i.Initialize("", "")
i.SetComponent("com.amazon.mp3.activity.IntentProxyActivity")
i.Action = "com.amazon.mp3.action.EXTERNAL_EVENT"
i.PutExtra("com.amazon.mp3.extra.EXTERNAL_EVENT_TYPE", "com.amazon.mp3.type.SEARCH")
i.putExtra("com.amazon.mp3.extra.SEARCH_TYPE", 1) '0 = Song, 1 = album
i.PutExtra("com.amazon.mp3.extra.SEARCH_STRING", "The Beatles")

StartActivity(i)
 
Upvote 0

melamoud

Active Member
Licensed User
Longtime User
NJDude, thanks, it is working now, all I had to do is resent my phone, which is strange cause I have not seen any error in the logs (unfiltered) I would expect some kind of error if the activity manager failed to run the amazonmp3 app,

I need to play with it more to see if this is stable or not.

Nir
 
Upvote 0

melamoud

Active Member
Licensed User
Longtime User
is this a good fast way to check is app exist ?

B4X:
Dim In As Intent
   Dim pm As PackageManager
   In = pm.GetApplicationIntent("com.amazon.mp3")
   If In.IsInitialized Then

or do I need to go through installed apps which take time / resources ?
 
Upvote 0
Top