It is probably similar to this in some way:

String url = "http://www.msn.com";;
                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);

and you dont need to import it

On Dec 23 2008, 1:16 am, geoff.stromb...@gmail.com wrote:
> Hello,
>
> From within my application, I'd like to start the standard
> MusicBrowserActivity (found in Music.apk) which is built into Android.
> I want to start it programmatically, just as if the user had picked
> "Music" from the application launcher.
>
> The class for this Activity is:
> com.android.music.MusicBrowserActivity
>
> However, I can't create an Intent explicitly referencing this class
> because I can't import the package com.android.music (at least not
> with the default ADT eclipse setup).
>
> Any ideas on how I can programmatically start MusicBrowserActivity?
>
> Thanks for any pointers!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to