Hitting Android hardware back button shows the splashscreen activity
gaurav-chandra opened this issue · 3 comments
gaurav-chandra commented
I used this on genymotion Android 4.3.
It worked beautifully but when I hit the hardware back button, my current activity closed but the splashscreen activity was showing behind it. And after I hit the back button again, only then my app minimised.
triniwiz commented
Thanks i'll look into it 😄
triniwiz commented
Update your AndroidManifest as follows
<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize">
</activity>
<activity
android:name="co.fitcom.SplashScreen" android:noHistory="true">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
gaurav-chandra commented
Thanks @triniwiz This works.