EA - Allware Forums
»
Software
»
Android
»
Notification code opens new instance of Activity
Posición: Administration
Grupos: Administrators
Registrado: 27/09/2010(UTC) Mensajes: 27   Fue agradecido: 1 vez/veces in 1 publicación(es).
|
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
»
Notification code opens new instance of Activity
Salto de foro
No puedes iniciar nuevos temas en este foro.
No puedes responder a temas en este foro.
No puedes eliminar sus temas en este foro.
No puedes editar sus temas en este foro.
No puedes crear encuestas en este foro.
No puedes votar las encuestas en este foro.
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