this is my code for setting alarm:
public void SetAlarm(Context context, int tag, long time){
AlarmManager am=(AlarmManager)context.getSystemService(Context
sorry guys, the problem was in PostManager
. in PostManager
, i was checking a session cookie with another string. so what happen? here is the answwer. before 4 hour the session cookie remain on cookiemanager so the checking by .equal(another_string)
work fine. but i think after 4 hours the session cookie expire and .equal(another_string)
throw a NullPointerException. so i have just check that the cookie i have get, is null or not. this solve my problem. again sorry guys.