Hi,
I have a game application which consists one main activity called
GameActivity and a CreateAccountActivity (I have more but they are not
relevant).
the GameActivity i defined to be singleTask, because I want only on
instance of this main activity.
when the game launches for the first time, I launch the
CreateAccountActivity with startActivityForResult.
the issue is this, when i hit the home screen button and then trying
to launch the game, the game is not launching, instead I see in the
logs that the CreateAccountActivity is destroyed then GameActivity
get onActivityResult (the result is RESULT_CANCELD of course, so the
GameActivity is destroyed too) and then the GameActivity onNewIntent
is called and destroyed again (I don't do anything in onNewIntent).
here are the logs when i tap my app after returning to the home
screen:
12-28 14:30:11.910: V/WindowManager(24745): Dsptch > Window{47ce9868
com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher
paused=false}
12-28 14:30:11.910: V/InputDevice(24745): ID[0]=0(0) Dn(0=>1)
12-28 14:30:11.973: D/dalvikvm(7770): GC_EXTERNAL_ALLOC freed 313
objects / 12648 bytes in 25ms
12-28 14:30:12.004: V/InputDevice(24745): ID[0]=0(0) Up(1=>0)
12-28 14:30:12.039: D/dalvikvm(7770): GC_EXTERNAL_ALLOC freed 88
objects / 2680 bytes in 25ms
12-28 14:30:12.110: D/dalvikvm(7770): GC_EXTERNAL_ALLOC freed 24
objects / 864 bytes in 25ms
12-28 14:30:12.157: V/WindowManager(24745): Dsptch > Window{47ce9868
com.sec.android.app.twlauncher/com.sec.android.app.twlauncher.Launcher
paused=false}
12-28 14:30:12.157: I/ActivityManager(24745): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.*****.tq/.GameActivity }
12-28 14:30:12.161: D/Launcher.Workspace(7770): WorkspaceDraw:
Workspace drawWallpaperImage()
12-28 14:30:12.168: I/CreateAccountActivity(9369): onDestroy
12-28 14:30:12.172: I/Launcher(7770): onPause()
12-28 14:30:12.184: W/Launcher(7770): WallpaperManager setVisibility
visible true
12-28 14:30:12.203: I/GameActivity(9369): Game activity
onActivityResult
12-28 14:30:12.203: I/GameActivity(9369): disconnecting from main
server
12-28 14:30:12.203: I/ConnectionManager(9369): Disconnecting...
12-28 14:30:12.207: I/GameActivity(9369): Game activity onNewIntent is
called
12-28 14:30:12.215: I/Launcher(7770): onWindowFocusChanged(false)
12-28 14:30:12.219: I/Launcher(7770): onResume(). mIsNewIntent : false
12-28 14:30:12.219: E/Launcher(7770): MTP-LAUNCHER: media scanning not
yet finished .
12-28 14:30:12.219: I/Launcher(7770): onResume() ended
12-28 14:30:12.219: I/Launcher(7770): onWindowFocusChanged(true)
12-28 14:30:12.223: W/InputManagerService(24745): Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@47d9fa18
12-28 14:30:12.227: D/Launcher.Workspace(7770): WorkspaceDraw:
Workspace drawWallpaperImage()
12-28 14:30:12.235: I/GameActivity(9369): Game activity destroyed
12-28 14:30:12.762: D/BatteryService(24745): update start
12-28 14:30:12.770: D/BatteryService(24745): updateBattery level:100
scale:100 status:5 health:2 present:true voltage: 4240 temperature:
360 technology: Li-ion AC powered:false USB powered:true icon:17302163
12-28 14:30:12.801: I/StatusBarPolicy(24745): BAT. status:5 health:2
12-28 14:30:12.801: D/WifiService(24745): ACTION_BATTERY_CHANGED
pluggedType: 2
12-28 14:30:13.231: W/Launcher(7770): WallpaperManager setVisibility
visible false
12-28 14:30:13.375: D/Launcher.Workspace(7770): WorkspaceDraw:
Workspace drawWallpaperImage()
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en