Shows different behaviour in release and debug mode .apk

Posted by Ashique Muhammed on Stack Overflow See other posts from Stack Overflow or by Ashique Muhammed
Published on 2011-11-30T09:42:45Z Indexed on 2011/11/30 9:50 UTC
Read the original article Hit count: 244

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-manifest