GMan Well-Known Member Licensed User Longtime User Jan 20, 2014 #1 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.
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 Jan 20, 2014 #2 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 Sample.zip 10.6 KB · Views: 726 Upvote 0
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.
GMan Well-Known Member Licensed User Longtime User Jan 20, 2014 #3 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
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.
GMan Well-Known Member Licensed User Longtime User Jan 20, 2014 #4 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 ) Upvote 0
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 )