04-24-2009 04:14 AM
Hello,
I get this error when compiling:
C:\...MyFile.java:662: non-static method isSystemLocked() cannot be referenced from a static context if(!Backlight.isEnabled() && ApplicationManager.isSystemLocked()){ ^
where did I go wrong?
Solved! Go to Solution.
04-24-2009 04:25 AM
Try like this..
ApplicationManager.getApplicationManager().isSyste
04-24-2009 04:53 AM
Perfect! Thank you!
But what does the 'locked' refer to? The standby mode or the keylock?
04-24-2009 05:04 AM - edited 04-24-2009 05:05 AM
It determines if the system is currently locked or not. According to you, its keylock.
For more information refer, http://www.blackberry.com/developers/docs/4.7.0api
You can refer the API's before asking such like questions.
04-24-2009 05:08 AM
You're totally right, but it no-where states that it's the keylock and not the system lock (standby).
So is there a way to get the same API but for standby-lock?
04-24-2009 05:27 AM - edited 04-24-2009 05:28 AM
Relevant posts for your reference:
http://supportforums.blackberry.com/rim/board/mess