Easily Generate and Export Material Design Palletes

For many people, it can be pretty difficult to create a palette of complementary colors. … more

Android One Expanding to Bangladesh, Nepal, and Sri Lanka

At Google I/O 2013, Google proudly announced that the Android operating system was … more

Android 5.0.2 Fixes 2012 Nexus 7! Sony’s Making a Google Glass Competitor? – XDA TV

Android 5.0.2 Lollipop is available for the … more

Early Lollipop Ports for Micromax A116 and A117

It feels like it was only yesterday when Google announced the mysterious Android L.After … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP rlees85

29th October 2013, 11:52 PM   |  #1  
OP Senior Member
Thanks Meter: 42
 
121 posts
Join Date:Joined: Mar 2008
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:	1804
Size:	78.4 KB
ID:	2358406   Click image for larger version

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

Name:	Screenshot_2013-10-29-21-35-42.jpg
Views:	1274
Size:	28.7 KB
ID:	2358408  
Attached Files
File Type: apk BattTemp.apk - [Click for QR Code] (480.4 KB, 716 views)
Last edited by rlees85; 30th October 2013 at 10:18 AM.
The Following 8 Users Say Thank You to rlees85 For This Useful Post: [ View ]
9th January 2014, 08:17 AM   |  #2  
Junior Member
Flag Surabaya
Thanks Meter: 1
 
16 posts
Join Date:Joined: Dec 2013
Donate to Me
More
Thumbs up
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
9th January 2014, 03:23 PM   |  #3  
Member
Flag San Jose
Thanks Meter: 5
 
69 posts
Join Date:Joined: Mar 2009
More
it seems to be working fine on stock, thanks for the app
26th January 2014, 02:52 AM   |  #4  
Member
Thanks Meter: 6
 
42 posts
Join Date:Joined: 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.
27th January 2014, 04:02 PM   |  #5  
sunbriel's Avatar
Senior Member
Thanks Meter: 693
 
1,363 posts
Join Date:Joined: Aug 2011
More
Quote:
Originally Posted by Qthink

Working good on xz stock jb 4.3

I second that.

Sent from my eXposed C6603
29th January 2014, 06:41 PM   |  #6  
Haldi4803's Avatar
Senior Member
Thanks Meter: 378
 
1,490 posts
Join Date:Joined: Oct 2010
More
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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes