1

Possible Duplicate:
Open another application from your own (intent)

I want to create an application that will launch multiple games installed on my android device. And user should be able to switch between different games.

Basically I want a look like fragments in which there is a sidebar containing the names of different games and upon clicking the names of the game, that game should start.

Presently I am getting a security exception that my application is requesting code from other application.

Any help appreciated.

Edit: Can this be achieved if i have root access on my device?

Community
  • 1
  • 1
Jaynesh Shah
  • 158
  • 1
  • 1
  • 14
  • Why you want to achieve this? What is the purpose of having all app icon on screen? BTW see this : http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent – TeaCupApp Sep 17 '11 at 05:32
  • @SkeetOverFlow: I want to create an interactive application that would allow users to play different games from within my application. – Jaynesh Shah Sep 17 '11 at 05:37
  • That's not how Android works. You can't write a wrapper around other people's apps. You can launch an app that's installed on the device, but then you lose control over what happens afterwards. – Yevgeny Simkin Sep 17 '11 at 05:46
  • Can this be achieved if i have root access on my device? – Jaynesh Shah Sep 17 '11 at 06:24

1 Answers1

2

Can you please refer the links to achieve it. http://ashwinrayaprolu.wordpress.com/2011/03/17/launching-different-applications-from-android-activity-using-intent/

Launch an application from another application on Android

Community
  • 1
  • 1
Senthil Mg
  • 3,301
  • 4
  • 32
  • 49
  • Thanks for your reply. Yes this is quite possible. But the problem is as i do startactivity, i lose the view of my application, due to which i am not able to start another game from my application if i want. – Jaynesh Shah Sep 17 '11 at 05:41
  • That's correct... once you launch another application, your application is not coming back until the user hits the back button or relaunches your app. – Yevgeny Simkin Sep 17 '11 at 05:45
  • Make an System wide variable which set to true and false while exiting third party app to go back and restarting your app :) (sarcasm/> – TeaCupApp Sep 17 '11 at 05:52
  • Can this be achieved if i have root access on my device? – Jaynesh Shah Sep 17 '11 at 06:25