S
S
Sebastian Pereira2014-08-04 14:56:38
Android
Sebastian Pereira, 2014-08-04 14:56:38

Android: How to execute a script once every XX minutes?

Hello. I have 3 lines of code:

su
netcfg rndis0 dhcp
netcfg usb0 dhcp

Very simple. But I have to do it once in a time interval. found this solution:
stackoverflow.com/questions/15879452/run-script-wi...
But done through a button, tell me please. How can I change this to "interval".
Sorry, not experienced in android programming.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bimeg, 2014-08-04
@bimeg

Here is this thing AlarmManager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question