5,594,386 Members 34,779 Now Online
XDA Developers Android and Mobile Development Forum

[APP|APK] BattTemp - Battery Temperature Monitor for Xperia Z

Tip us?
 
rlees85
Old
(Last edited by rlees85; 30th October 2013 at 09:18 AM.)
#1  
Senior Member - OP
Thanks Meter 33
Posts: 101
Join Date: Mar 2008
Default [APP|APK] BattTemp - Battery Temperature Monitor for Xperia Z

BattTemp - Battery Temperature Monitor for Xperia Z
(no I couldn't think of a better name!)

Current Version: 3.0
Last Updated: 29/10/2013
For: Xperia Z hence why it is posted here and not the DevDB

Note: Currently only tested on Cyanogenmod! May not work on Stock!

This is a very simple application for keeping tabs on battery temperature. I am a very beginner Android developer and have started to make some simple apps, this being one of the more useful ones. I just thought it would be cool to have the battery temperature in the notification bar, plus there are lots of threads on here mentioning about glue lifting/etc when temperatures are high, plus other more catastrophic overheating stories involving complete failure caused by (extreme) overheating.

There is a much better app for doing this in Google Play but my app is free and also works below 10c unlike the one by Dustinmj (I tested mine in the fridge down to -1C, as you do).


Known Issues - Please read before downloading!

1: Possible memory leak, starts running using ~5mb RAM and can increase by ~0.1mb every 30 seconds until it reaches around ~20mb. After some time this seems to reset back down to ~5mb. I cannot repeat this on the emulator no matter how hard I try. This may even be normal behavior, the Google Keyboard and other apps also do the same.


FAQ - Please read before downloading!

Q: Do you take any responsibility if this breaks my phone/Android device?
A: NO although I would be interested to know how.

Q: What license does the app have?
A: None... its not GPL/OpenSource and it is free... It is just a beginner learning to program. Feel free to pass it along/make changes/etc as long as you do not take credit for the original app.

Q: Does this work on Stock?
A: Not sure - PLEASE let me know!

Q: Does this work on my Nexus/Galaxy S4/Zanussi fridge freezer/other devices?
A: Doubtful, maybe if it has a Qualcomm chip. If (in the unlikely event) you are keen to run this app on your non-Xperia Z device it can be made possible quite easily.

Q: How often does the temperature update?
A: In the notification bar every 30 seconds. In the app itself (when open) every 10 seconds.

Q: Will this drain my battery?
A: Tests conclude it does not. All services, alarms, updates, etc are configured to NOT run when phone is in sleep. This app should never wake the phone. The app will stop updating when phone is sleeping and update as soon as phone is awake again. If you find a drain, please let me know!

Q: Whats with all the pretty colours?
A: So it might not be to your taste, I know it isn't the year 2000 anymore (or IOS for that matter), but I happen to like colours... The application notification is coloured in the following way:

Freezing and below
Cold (1-5C)
Cool (6-15C)
Optimal (16-29C)
Warm (30-39C)
Hot (40-44C)
Overheat (45C)

You should not charge li-ion batteries below 0C or above 45C. Within 5 degrees of each isn't really recommended much either...

Q: What logcat filters does this application use?
A: uk.org.bitservices.BattTemp.BSBootRecv and uk.org.bitservices.BattTemp.BatteryStats

Q: Why you sharing this junk?
A: I wrote this purely to "have a play" with Eclipse and Android development and the app itself purely for my own purposes. I am just posting it here in case anyone else may find it useful... if not, still nothing lost


Permissions - and why!

START ON BOOT: If the application service is started, it will resume the notification on boot. This permission allows this to happen.


Download - and how to use.

Download and install the APK (look in Attachments!)

To view temperature of battery, run the application.

To enable the notification bar icon, run the application, press the settings button and press 'Start Service'. Please note this will be persisted even after a reboot. To remove the icon go back into the application, press settings and press 'Stop Service'. Nice and simple
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-10-29-20-50-39.jpg
Views:	1628
Size:	78.4 KB
ID:	2358406   Click image for larger version

Name:	Screenshot_2013-10-29-21-18-02.jpg
Views:	1358
Size:	29.0 KB
ID:	2358407   Click image for larger version

Name:	Screenshot_2013-10-29-21-35-42.jpg
Views:	1145
Size:	28.7 KB
ID:	2358408  
Attached Files
File Type: apk BattTemp.apk - [Click for QR Code] (480.4 KB, 510 views)
The Following 8 Users Say Thank You to rlees85 For This Useful Post: [ Click to Expand ]
 
Smankusors
Old
#2  
Junior Member
Thanks Meter 1
Posts: 16
Join Date: Dec 2013
Location: Surabaya

 
DONATE TO ME
Thanks, your app is also working on my Xperia SP
And my Xperia SP is using Stock ROM
Your app is working on Stock ROM
 
sojo_2
Old
#3  
Member
Thanks Meter 4
Posts: 54
Join Date: Mar 2009
Location: San Jose
it seems to be working fine on stock, thanks for the app
hello me, it's me again
 
Qthink
Old
#4  
Member
Thanks Meter 5
Posts: 38
Join Date: Feb 2013
Working good on xz stock jb 4.3
Sugest may be you should put link to this page on app to make easy share.
 
sunbriel
Old
#5  
sunbriel's Avatar
Senior Member
Thanks Meter 672
Posts: 1,266
Join Date: Aug 2011
Quote:
Originally Posted by Qthink View Post
Working good on xz stock jb 4.3
I second that.

Sent from my eXposed C6603
 
Haldi4803
Old
#6  
Haldi4803's Avatar
Senior Member
Thanks Meter 166
Posts: 936
Join Date: Oct 2010
haven't tried yet. But battery temp alone is not that important.
It would be awesome if you could include SoC temperature as well. Trickster Mod app and others do show SoC (CPU) temp.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes