제가 알람 어플을 만들어보고있는 중입니다.
해당 시간이 되면 notification으로 팝업이 뜨게했는데요
팝업한개로는 휴대폰을 확인 못 할 수도있어서 5초간격으로 여러개를 띄우려고하는데 잘 안되네요..
Handler mHandler1 = new Handler();
mHandler1.postDelayed(new Runnable()
{
public void run()
{
notificationManager.notify(12, builder.build()); // 알림 띄우기
}
}, 5000); // 5초후
mHandler1.postDelayed(new Runnable()
{
public void run()
{
notificationManager.notify(412, builder.build()); // 알림 띄우기
}
}, 5000); // 5초후
mHandler1.postDelayed(new Runnable()
{
public void run()
{
notificationManager.notify(1232, builder.build()); // 알림 띄우기
}
}, 5000); // 5초후
이런식으로 했는데 첫번째 팝업이 뜬 후 5초후에 나머지 3개가 동시네 뜨네요 ㅠㅠ 해결방법좀 알려주세요!