PhoneGap / Android multiple actions created

Each time I click the icon of my PhoneGap application on the Android desktop computer, a new Activity / WebView is created. If I press the BACK button, then the last activity / WebView will be closed, and I will see the previous one.

I do not want PhoneGap to launch multiple Activity / WebView. I want my application to have only one Activity / WebView.

PhoneGap Version 3.3.0-0.19.3 Nexus 5 KitKat

+4
source share
1 answer

Add attribute android:launchMode="singleTop"to tag <activity />inAndroidManifest.xml

+6
source

Source: https://habr.com/ru/post/1525714/


All Articles