hi, try this:
Intent intent = new Intent(); intent.setComponent(new ComponentName("gal.com.app", "gal.com.app.gallery")); startActivity(intent); Where gal.com.app is the name of the other package in which the other activity resides and gal.com.app.gallery is the application name appended with the name of the activity in the other package On Oct 2, 11:41 pm, DaminouU <dam.le...@gmail.com> wrote: > Hi, > > I have two .apk file (wit their respective activity). I want to launch > the second one from the first one. How can I do this? > > Just to be clear : > I have project1.apk and project2.apk. > act1 belongs to project1.apk and act2 to project2.apk. > > I would have done > [in the code of act1] > > Intent intent = new Intent(); > intent.setClass(this, act2.class); > startActivity(intent); > > if it was in the same apk but it is not working here. Could you > explain to me the best way to do this ? > > Thanks, > > D. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---