how to run application even it is closed Blackberry -
how can make alarm application in blackberry?
this means have time picker user selects time, save time , show dialog when system time matches time.
i have used realtimeclocklistener
, method clockupdated()
give me time @ every minute. when closed app method closed
i want execute method if app closed or not
public void clockupdated() { int hour = calendar.getinstance().get(calendar.hour_of_day); int minute = calendar.getinstance().get(calendar.minute); //system.out.println("----"+calendar.getinstance().get(calendar.am_pm)); string = ""+calendar.getinstance().get(calendar.am_pm); }
you have use alternate entry point , start background application on device startup listening realtimeclocklistener event. use persistence store , share alarm time data.
see running in background part 1 , part 2 , creating always-on experience more details.
Comments
Post a Comment