- Home /
Android activity is restarting instead of pause/resuming...
So i create a launcher activity from the AndroidManifest.xml (not unity) ... that activity runs first and then i start Unity. Specifically I'm implementing the ADC library from EA which downloads extra content the first time somebody starts the game.
The problem i have is that if the user powers down while that launcher activity is in progress, when they turn the device back on it will restart the activity from the beginning...
my (borrowed) manifest code to launch it looks like this...
<activity android:name="com.chillingo.fleecelightning.android.ww.ContentDownload" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
thanks, Ross
Your answer
Follow this Question
Related Questions
Disable permission dialog in Unity 5 2 Answers
How can I replace correctly the main activity on the Android Manifest? 0 Answers
Parse push notification doesn't show 0 Answers
I use Unity 5.2.2. Android Manifest It gives error. What can I do ? 0 Answers
How force the app to landscape in Android with a Manifest.xml? 1 Answer