How can I load state do?

Basically, I use a code example to lock a device. Now, I think, if the device can detect the State of charge can lock the phone. Therefore, my code is as follows: (I have not write locking code yet)

If (batteryInfo.chargingState () == BatteryChargingState.Charging) {}

}

After compilation, it gave me an error that says "error: wait before create primary expression '.' token '.

I don't know how to solve this problem. Can someone help me? Thank you.

Hello

Use ':' instead of a point:

if(batteryInfo.chargingState() == BatteryChargingState::Charging) {
               }

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Toshiba 40L1353DB - HDMI cross

    Hello I am trying to establish if the Toshiba 40L1353DB supports 5.1 audio channels "passthrough" of connected external devices plugged into the HDMI to the TV.In addition, there is a list of all Toshiba TVs that support this feature? Thank you very

  • Satellite A300 - too bright screen and lack of contrast

    Is it irritates me immensely No matter what I do, there seems to be no way to add contrast and reduce the brightness of the screen on my laptop.For example, blacks show that blacks... just slight shades of gray I am a photographer, I like my photos a

  • CSV starts in column b after a line break

    Hi guys,. I'm building a CSV with 4 rows of data added each time the vi is executed. For some reason lines 2-4 start in column B, not as they should. I tried to remove the first index of the array, but that did not help. All incoming bays are the sam

  • Property VBProject workbook Excel ActiveX

    Hi all I created different LabVIEW VI that import data from excellent, but I would like to create one that runs a macro (cannot use the Toolbox of report generation).  I have the code base, but I don't know how to access the workbook VBProject proper

  • How to read video clips with LabVIEW in Windows 7?

    I already had the opportunity to play a video clip of my LabVIEW program.  Now, with the same program in the two operating systems, Windows XP and Windows 7, both versions work, but the version of Windows 7 will not be saved.  Trying to save it, I ge