force single instance of app
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity android:name=".main.MainActivity"
- android:launchMode="singleTop">
+ android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
-
<category android:name="android.intent.category.LAUNCHER" />
-
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
