Starting another android activity

allelopath
allelopath used Ask the Experts™
on
In this link:
http://developer.android.com/training/basics/firstapp/starting-activity.html
it explains how to start one activity from another. So if I have a menu activity and a game activity, then the menu activity is the parent, because the game activity goes 'up to' the menu.

In that link they are editing an manifest xml file. Is this file in the menu activity project or the game activity project?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
In that tutorial you are working in one Project. Just continue adding the code from Tutorial Two into Tutorial One's code. Use the manifest.xml file from Tutorial One.

Once you get the concept of Intent and Activity, you will find yourself understanding how the GUI screens flow in Android.

If something isn't working, please post some follow up questions.
Commented:
The manifest they are editing is the AndroidManifest.xml file. I suspect that is what you are after. This file is in the root of project. Does this help?

Author

Commented:
In my environment I have 2 projects in Eclipse: one for the menu, one for the game itself. I would like to maintain this separate structure. Is this possible?
Supposedly, it is possible to call another App from existing App.

https://groups.google.com/forum/?fromgroups=#!topic/android-developers/P37fvUBLFjw

Here's an example that might point you in the right direction:

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial