Jump to content


Photo

Rotate Phone with android app


  • Please log in to reply
3 replies to this topic

#1 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 212 posts
  • LocationFlorida, USA

Posted 11 November 2017 - 10:18 PM

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.

 

 


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#2 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 212 posts
  • LocationFlorida, USA

Posted 08 December 2017 - 02:40 AM

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?


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#3 Mohammed Nasman

Mohammed Nasman

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 182 posts
  • LocationGaza - Palestine

Posted 08 December 2017 - 08:07 PM

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


  • 0

#4 Abaksoft

Abaksoft

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 629 posts
  • LocationAlgeria

Posted 09 December 2017 - 09:56 AM

Very simple   :)

Set your 2 properties (UnimForm)  :   

 

- Scrollable = True

- ScrollRange = 500 or 1000 ...

 

Attached Files

  • Attached File  p1.png   12.16KB   8 downloads

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users