EA - Allware Forums
»
Software
»
Android / Kotlin
»
Notification code opens new instance of Activity
Rank: Administration
Groups: Administrators
Joined: 9/27/2010(UTC) Posts: 34 Thanks: 3 times Was thanked: 3 time(s) in 3 post(s)
|
Trying to use notifications to return to my App, I found that when clicking the notification message Another Activity Instance was launched.
The way this was solved (I needed to return to the opened instance) was to add to the Activity tag in the AndroidManifest.xml the folowing code: android:launchMode = "singleInstance"
example:
<activity android:name="MyActivity" android:launchMode = "singleInstance" android:configChanges="orientation" android:label="@string/app_name">
|
|
|
|
EA - Allware Forums
»
Software
»
Android / Kotlin
»
Notification code opens new instance of Activity
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The EA - Allware Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close