Jump to content
uniGUI Discussion Forums
RobYost

Rotate Phone with android app

Recommended Posts

When I rotate my phone when using the android app I wrote it goes back to the sign in form.

 

If I rotate while in a browser it does not.

 

My android app is very simple it only has one control on it; a WebView.

 

Does anyone know where to start looking?  Or is there a setting in UniGui that will disallow the restart.  I have an option on my main form to log out, so if I could disable it elsewhere.

 

 

Share this post


Link to post
Share on other sites

I am still having this problem.

 

When running my program on a browser it works fine.

 

But if I run it in an Android App that I wrote it rotating the phone from portrait to landscape causes the program to go back to the login screen.

 

The app is very simple.  A single WebView that redirects to my website (https://secure.simple-landlord.com/m)

 

Does anyone have any ideas how to figure out this problem?

 

Where should I put the logging?

 

What are the possible ways that the program would restart?

Share this post


Link to post
Share on other sites

I'm not good at Android development, but if I'm not wrong, when you rotate the phone, the activity recreated, and that cause it to reopen the link again so switch to the login screen.

 

it may require you to save state for the activity, so it will resume it, or if there's something to prevent the activity to not be created when rotating the phone

Share this post


Link to post
Share on other sites

Very simple   :)

Set your 2 properties (UnimForm)  :   

 

- Scrollable = True

- ScrollRange = 500 or 1000 ...

 

post-1785-0-34608400-1512813319_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×