Hi,
I have two activities A and B
<activity android:name=".A"
android:label="@string/A"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:taskAffinity=".A"
android:configChanges="keyboardHidden|orientation|locale"
android:theme="@android:style/Theme.Dialog"
android:excludeFromRecents="true" >
<intent-filter android:priority="101">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
A is of category home with higher priority than normal Home Screen activity.
This is basically done
to launch this A as soon as phone powers up.
>From A i launch B using startActivity.
Now press Home key, i see that A which was already there gets destroyed and
again A's onCreate is called immediately followed
by onNewIntent.
I was of the view that if already activity is there then only onNewIntent is
called.
Can anybody please help me in this? I want to understand why pressing home
key caused "A" to destroy first and then
onCreate and onNewIntent are called simultaneously.
How ever this happens only the first time Home key is *pressed after power
up*, after that if "A" is already there
control goes to onNewIntent properly.
Thanks....
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en