Added system ok but as far as I know, powerUp listener not pulling

Hey. My application, in main(), adds a listening on starting system to cold (battery replaced), without error. However, the powerUp method below does not pull when I switch off my BB and sur-Appuyez the red end button for 5 sec and press once again (a warm start). How do you get powerUp to call? Code is below.

MSL MySystemListener = new MySystemListener();
MonthlySpend ms = new MonthlySpend();
ms.addSystemListener (msl);

private static class MySystemListener implements SystemListener
{
public void batteryStatusChange(int a) {}
public void batteryGood() {}
public void batteryLow() {}
public void powerOff() {}
       
public void powerUp() {}

PerformAnyReset... schedule, calls so if not reset, don't program twice
If (!.) PerformAnyResetWhichWasScheduledWhilePhoneWasSwitchedOff())
ScheduleTotalResetForStartDateOfNextBillingCycle();
                               
SetIconAndTitle();
ScheduleIconUpdateOvernight();
        
        
String logMessage = "Warm" started
If (EventLogger.logEvent (0x4c9d3452d87922f2L, logMessage.getBytes (), EventLogger.ALWAYS_LOG)) {}
System.out.println ("Log successful!");
}

Hey - fixed. The application itself must be a SystemListener, not another class

J

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for