Solved

Starting another android activity

Posted on 2012-12-21
4
391 Views
Last Modified: 2012-12-28
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?
0
Comment
Question by:allelopath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Assisted Solution

by:PCableGuy
PCableGuy earned 350 total points
ID: 38714949
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.
0
 
LVL 10

Accepted Solution

by:
Gregg earned 150 total points
ID: 38714950
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?
0
 
LVL 1

Author Comment

by:allelopath
ID: 38718563
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?
0
 
LVL 12

Expert Comment

by:PCableGuy
ID: 38719235
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);
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
If you use the Google Now Launcher, as an aftermarket add on, have a Samsung Note 5 and are worried about power consumption be wary of using the ultra power saving mode.  Here is what happened to me when I made the mistake of trying this out...
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question