Android Question service start from database php help

jchal

Active Member
Licensed User
Longtime User
hi all
i need to stat a service for every user at a difrent time interval cansomebody help me with php that i have to generate?
my code is the following
B4X:
Sub Service_Start (StartingIntent As Intent)
'runs the gps service every one minute, this is what i want to change and to have it from database
      StartServiceAt("", DateTime.now + 1 * DateTime.TicksPerMinute,True)
     
      ToastMessageShow("Turning GPS ON", True)
   
     
      GPS1.Start(0,0) 'Listen to GPS with no filters.

     
      count = 0
End Sub
my database is userid, username, password, timeinterval
what is the php i have to generate?
 

jchal

Active Member
Licensed User
Longtime User
hi erel
i was thinking of storing the interval in the database and retriveti from there with the user information, when i retreve it from the data base i need to write some php rigth?
 
Upvote 0
Top