Android Question [SOLVED] Auto reload Webview

GMan

Well-Known Member
Licensed User
Longtime User
I have a little app for a forum which simply loads the mobile version of it.

for more service i want to make it possible to enter a temporary (should not be stored anyway) time, after which the webview should reload itself.

How can i solve this ?

If have no experiences with timers, a simple code snippet would let me help to get in touch with that.
 

NJDude

Expert
Licensed User
Longtime User
The attached sample reloads a webview every 20 seconds, you can change that of course, however, you have to take in consideration that the reloading will happen even if the user is browsing and will interrupt that process.
 

Attachments

  • Sample.zip
    10.6 KB · Views: 606
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Thx NJDude,

will test it right now.
If the useres makes some input the timer should stop, but this is on the Agenda when the timer runs :)
Next then i want to catch the ENTER key, so that the App can add a signature if enabled.
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Works fine - i added a request in The TimerTickEvent (forgot that B4A is so near to VB ;-)) which checks the temporary refresh interval and, if > 0, takes this number * 1000 in seconds.

So, this is solved and for the quiestion for the CheckKeypad and ENTER Key will be placed in a new thread (I'm sure i need help :confused: )
 
Upvote 0
Top