remine focus on the main activity (while switching activities)
Posted
by rayman
on Stack Overflow
See other posts from Stack Overflow
or by rayman
Published on 2010-05-20T13:25:32Z
Indexed on
2010/05/21
3:00 UTC
Read the original article
Hit count: 192
android
|android-sdk
Hi, Ive got two activities in the same application. the first one is with gui(main activity) the second one is a listener which works infinite without gui.
Wierd problem occurs:
i am running the second activity with a diffrent thread so i could keep on manipulate the gui..
but for some reason, the gui losing it's focus for some reason, only when i press 'home' and come back to it, then i can continune maniuplate the gui.
it feels like after i launch the second activity, the gui activity(the main) is losing the focus. how come?
in my mainactivity i have:
setContentView(R.layout.main);
and its setted as the launcher in the manifest.
thanks,
ray.
© Stack Overflow or respective owner