Just use startActivity(), possibly with the NEW_TASK flag.  You can look at
the home screen sample code in the SDK for an example.

On Wed, Mar 25, 2009 at 10:45 PM, Joseph Teo <josephteo2...@gmail.com>wrote:

> Hi there...
>
> I know u can start a program using the adb shell... BUT I am trying to
> write a program which is able to start another application (e.g. Browser or
> Dialer or Maps etc) programmatically (from the program)...
>
> is it possible to do so in the program? If so, can someone kindly post some
> code snippets here of how to do this?
>
> Many many thanks in advance!!
>
> Cheers,
>
> Joseph
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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