Hi
I am looking for a way to open generic Android apps for different
files. For example, if I need to play a mp3 I would like to open the
Music app and make it play it.
I am doing something similar with the browser:
Intent i = new Intent();
ComponentName comp =
new ComponentName("com.android.browser",
"com.android.browser.BrowserActivity");
i.setComponent(comp);
i.setAction("android.intent.action.VIEW");
i.addCategory("android.intent.category.BROWSABLE");
Uri uri = Uri.parse(url);
i.setData(uri);
this.startActivity(i);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---