Use this function:

public int  startActivity(String packageName, String className) {
         Intent intent = new Intent("android.intent.action.MAIN");

         intent.setClassName(packageName, className);
         intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
         startActivity(intent);
         return 0;
 }


On Jul 6, 11:03 am, tstanly <tsai.sta...@gmail.com> wrote:
> hi all,
>
> I design two apk for a.apk and b.apk,
> but now I want to invoke b.apk from a.apk,
>
> to do that,I will put a Button in a.apk,
> when user click the button,then goes to b.apk.
>
> how can I do that?
>
> thanks!
--~--~---------~--~----~------------~-------~--~----~
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