Too many Activities being started when launching an Android Application?

Try this config: application android:icon="@drawable/icon" android:label="@string/app_name.

Ok. Thanks. Do second and third Activity look as child activity?

– AndroiDBeginner Dec 24 '09 at 2:40 Yes, you can start them latter using Intents. – alex2k8 Dec 25 '09 at 1:01.

Think of an Intent as message used to start an Activity to do something. So I can create an Intent to view a web page and an application with an Activity which knows how to view a web page - most likely the browser - can intercept his Intent as act on it. You tell Android which Activities can act on which Intents using the part of your Manifest.

The MAIN Intent is a special one. This is sent to an application when it is launched and basically it says "Go! " So the Activity which shoud be displayed first needs to intercept this by having a correctly defined .

As you had all three Activities with MAIN in their filter they all responded to the request to start your application. So you should have that only for FirstActivity.

Wow, thanks for your great detail post. I got it. – AndroiDBeginner Dec 24 '09 at 11:42.

One of the other problems with using for more than one activity is that the Phone's launcher menu will display more than one icon... From the docs: CATEGORY_LAUNCHER The activity can be the initial activity of a task and is listed in the top-level application launcher.

You can see property action android:name= property is "android.intent.action. Category android:name= is "android.intent.category. LAUNCHER" for all activities.

When application starts up, it calls FirstActivity. Then calls useless Activity such as ThirdActivity or SecondActivity. In this case, is my manifest.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions