2
0
mirror of synced 2025-02-04 10:34:10 +00:00

launchMode needs to be set on <activity>

launchMode is not a valid property on the <application> element, see
https://developer.android.com/guide/topics/manifest/application-element.html

It must be set on the activity instead, see
https://developer.android.com/guide/topics/manifest/activity-element.html
This commit is contained in:
Fabian Köster 2017-05-12 21:34:43 +02:00 committed by GitHub
parent c5c8464970
commit fa1b4095f5

View File

@ -73,9 +73,9 @@ Add permissions:
<uses-permission android:name="android.permission.VIBRATE" />
```
Set app [launch mode](https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en) inside application props:
Set app [launch mode](https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en) inside activity props:
```xml
<application
<activity
...
android:launchMode="singleTop"
>