Android Question APP RESETS ON ROTATE ?

rfhall50

Member
Licensed User
Longtime User
Have been working on a new app for some time. Took it out in the field to use today. Had it all ready to use, set it down it for a while. When it was picked up again I started getting all sorts of errors. Put it away and went the pencil and paper route.

When I got back to the motel tonight I started trying to figure out what went wrong. Let it go to sleep, woke it up, all OK. Then I accidentally rotated from ladscape to portrait and it reset. All previous testing was on my desk in a landscape position. In reading the posts, I started getting bits and pieces that pointed to rotation as the source of the problem.

QUESTIONS:
  • What is the logic that causes the app to reset on rotation?
  • I assume locking the "rotation" in landscape (what it was designed for) will prevent the app from resetting (?)
  • Is there a setting to prevent resetting on orientation change ?
Thank y'all for all the help that has gotten me this far!

Bob Hall
 

NJDude

Expert
Licensed User
Longtime User
That's how Android works, indeed, if your app is designed for a particular orientation then lock it.

I would advise you to read THIS thread and also the Beginner's Guides, you can get the links in my signature below.

On an unrelated issue, good trigger discipline you have there.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…