I would like to know if there is any problem with the App's performance in using 2 handler.postDlay()
at the same time, type calling the 2 in functions: inside the OnCreate Td1 (); Td2 ();
public void Td1(){
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
handler.postDelayed(this, 5 * 1000);
}
}, 5 * 1000);
}
public void Td2(){
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
handler.postDelayed(this, 5 * 1000);
}
}, 5 * 1000);
}