What code can cause Blackberry to consume a lot of battery power?

I'm not a Blackberry programmer at all, but I was asked to investigate what one of our Blackberry apps can do to make the device overheat and completely discharge the battery in less than an hour.

As far as we can determine, this only happens with the program on one device (Bold 9700), so we are completely not sure that this is really caused by our program. The application periodically polls one or more servers / services, and we know that this negatively affects the battery life. However, this particular problem is much more extreme than usual, while the polling process continues.

Can someone point me to any good links or resources, assuming this is an unusual issue with Blackberry apps?

+4
source share
3 answers

Try connecting the problem device to JDE or Eclipse in debug mode, then use profiling tools to profile CPU usage. If it gets into some kind of closed loop, you should see the code causing the problem.

+1
source

I would consider specific phone features that may be unsuccessful.

An example (this is a far-fetched example), let's say your application uses GPS, and the 9700 does not support or supports the GPS mode that you ask to use. In your program, if you are fixated on the condition that gps should be ready to continue, erroneous results may be hidden and may have some hardware consequences.

0
source

Once I set the Google Latitude on my Black Berry Curve 8530, I noticed that since then the device’s battery has been draining every morning, although I left it fully charged at night. If you installed any GPS related software or other active software that runs in the background, try uninstalling it.

0
source

All Articles