Shows different behaviour in release and debug mode .apk
- by Ashique Muhammed
My android application get restarted when I take the application from home screen, but this not a consistent. Some time it works perfectly (resume with the last visited activity). My application contains a splash screen activity and 5 activities in tab layout.
Usage
Start application
After splash screen the application shows one of the activity in tab
Press home button
Try to invoke application from home screen
Application gets restarted, it is not happening always.
I am working on actual device. Android version 2.3.3
Here is the root activity in my manifest file.
<activity android:name="com.nes.smrt.gui.Survey"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait"
android:alwaysRetainTaskState="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Any help would be greatly appreciated!