main activity repeatedly created

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

main activity repeatedly created

Postby zet » Fri Mar 27, 2009 10:17 pm

hi,
i have problem with intent history stack. When i launch my application and then press Home button and launch it again, it creates main intent again. So when i press Back button, i move again in the same window and i must press it again to exit the application.

do you know, where could be a problem?

thanks,
zet
zet
Freshman
Freshman
 
Posts: 4
Joined: Fri Mar 27, 2009 9:49 pm

Top

Postby zet » Sat Mar 28, 2009 7:06 pm

I will answer myself. I had to put this to manifest into activity TAG:
android:launchMode="singleTop"

and now it works fine
zet
Freshman
Freshman
 
Posts: 4
Joined: Fri Mar 27, 2009 9:49 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 11 guests