Intent i = new Intent("android.intent.action.MAIN");
ComponentName n = new
ComponentName("com.google.android.maps.mytracks",
"com.google.android.apps.mytracks.MyTracks");
i.setComponent(n);
startActivity(i);

will do it.

On May 6, 2:56 am, Anders Widen <[email protected]> wrote:
> I know how to update my own programs, and I know how to open programs
> using the a predefined Uri (for sms or email for example)
>
> I need to know how I can create an Intent to open MyTracks or any
> other application that I don't know what intents they listen to.
>
> I got this info from DDMS, but I havn't been succesful in turning this
> to an Intent I can use. This is taken from when opening MyTracks
> manually.
>
> Thanks for your help
>
> 05-06 11:22:24.945: INFO/ActivityManager(76): Starting activity:
> Intent { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x10200000
> cmp=com.google.android.maps.mytracks/
> com.google.android.apps.mytracks.MyTracks bnds=[243,338][317,417] }
>
> 05-06 11:22:25.005: INFO/ActivityManager(76): Start proc
> com.google.android.maps.mytracks for activity
> com.google.android.maps.mytracks/
> com.google.android.apps.mytracks.MyTracks: pid=1176 uid=10063
> gids={3003, 1015}
>
> 05-06 11:22:26.995: INFO/ActivityManager(76): Displayed activity
> com.google.android.maps.mytracks/
> com.google.android.apps.mytracks.MyTracks: 1996 ms (total 1996 ms)
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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

Reply via email to