Android Question Timer for trying an app

yfleury

Active Member
Licensed User
Longtime User
Hi all

I want the user have 10 minutes to try my app and if they want it, he can buy it in app.

Is it ok to
B4X:
    Timer1.Initialize("Timer1",600000)

and check for only 1 tick event (after 10 minutes) and suggest to buy unlimited time?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes. However for a more robust solution you need to think of the expected case where the app is not always in the foreground.

It might be better to use a timer with 10 seconds interval that is only enabled when the activity is in the foreground and saves the number of ticks to a file each tick event.
 
Upvote 0
Top