Web site goes back to default page with screen flip- help!

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Web site goes back to default page with screen flip- help!

Postby jcook2004 » Tue May 05, 2009 11:35 pm

Hi Everyone,

I have a g1 app that has an embedded web site(using WebView). When the user clicks a link or button that takes them to a site besides the originally loaded site, everything works fine - the webview is still handling the web site. But when the user is at the new site and flips/rotates the screen, the web site is "refreshed" back to the original site and the user loses their current position. Does anyone have any tips on how to resolve this?

Thanks
JC
jcook2004
Freshman
Freshman
 
Posts: 6
Joined: Sun Nov 02, 2008 8:59 am

Top

nm

Postby jcook2004 » Wed May 06, 2009 7:34 am

never mind guys - I solved it.
For anyone whos interested
override onRetainNonConfigurationInstance() and use getLastNonConfigurationInstance() to get the object that is returned!
jcook2004
Freshman
Freshman
 
Posts: 6
Joined: Sun Nov 02, 2008 8:59 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests