BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-25-2010, 09:35 AM   #1
Preeti_21
New Member
 
Join Date: Aug 2010
Model: nil
PIN: N/A
Carrier: NIL
Posts: 2
Default Low battery detection

Please Login to Remove!

Hi
I am newbie in blackberry java development.I am currently working in Blackberry JDE 5.0 version(RIM).

I want to implement a feature which will check for the device battery.Like i have to check if the device battery has reached a critical level.Can anyone help me by providing some sample code or references as to how it can be implemented.

Thanks in advance
Offline  
Old 08-25-2010, 01:29 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

How about DeviceInfo.getBatteryLevel()

It's in the javadocs.
Offline  
Old 08-31-2010, 10:56 AM   #3
romah
Knows Where the Search Button Is
 
Join Date: Jun 2010
Model: 8530
PIN: N/A
Carrier: Sprint
Posts: 48
Default

You will get the answer in the link below...

Displaying the top banner in BlackBerry - BlackBerry Support Community Forums

Last edited by romah; 08-31-2010 at 10:57 AM..
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


10 x  SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW picture

10 x SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW

$329.95



LOT OF 10 SIEMENS QA115AFCN 15A AFCI PLUG ON NEUTRAL (NO PIGTAIL WIRE) NEW picture

LOT OF 10 SIEMENS QA115AFCN 15A AFCI PLUG ON NEUTRAL (NO PIGTAIL WIRE) NEW

$358.99



LOT OF 10 SIEMENS Q115DF 15A DUAL FUNCTION AFCI/GFCI BREAKERS NEW picture

LOT OF 10 SIEMENS Q115DF 15A DUAL FUNCTION AFCI/GFCI BREAKERS NEW

$439.99



Siemens 3RT1046-1AP60 Contactor picture

Siemens 3RT1046-1AP60 Contactor

$387.00



Q2020NC (Box of 12, no clip) - Siemens 20 Amp Tandem Breaker picture

Q2020NC (Box of 12, no clip) - Siemens 20 Amp Tandem Breaker

$161.99



SIEMENS 6ES7 214-1AG40-0XB0 / 6ES72141AG400XB0 SIMATIC S7-1200 CPU 1214C picture

SIEMENS 6ES7 214-1AG40-0XB0 / 6ES72141AG400XB0 SIMATIC S7-1200 CPU 1214C

$199.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.