issues
search
a7med3ly4565588
/
work
1
stars
0
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Send to bot
#4
a7med3ly4565588
opened
3 weeks ago
0
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test); Timer myTimer; myTimer = new Timer(); myTimer.schedule(new TimerTask() { public void run() { timerTick(); } }, 0, 5000); // каждые 5 секунд } private void timerTick() { this.runOnUiThread(doTask); } private Runnable doTask = new Runnable() { public void run() { Toast toast = Toast.makeText(getApplicationContext(), "Мяу!", Toast.LENGTH_SHORT); toast.show(); } };
#3
a7med3ly4565588
opened
3 weeks ago
0
Send
#2
a7med3ly4565588
opened
3 weeks ago
1
Tt
#1
a7med3ly4565588
opened
4 weeks ago
0