Log your Android resources on Cosm!

Being inspired from CosmX (announced at Cosm Blog as a recent hack day project) that updates a Cosm feed with your system’s current CPU usage, I have developed a similar Android app.

The app logs CPU usage, available memory, data usage (transmitted and received Kb) and battery level:

When you start the app it asks for a Cosm Feed ID and a key (with update and create permissions). Users can also configure what resources will be logges and how often the feed will be updated (1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours).

The CPU usage and available memory are polled every 10 seconds and a total average is calculated and used for updating the feed.

Thinking of adding more features like call duration and number logs, etc. especially if users like it and find it useful. A background service is used to monitor and log the resources, users can start/stop the service through the application main interface.

You can download the apk and Android source files from: http://code.google.com/p/cosm-android-logger

You can also get the application throug Android Play:

QRCode

https://play.google.com/store/apps/details?id=doukas.cosm.androidresources

EDIT (29/6/12): Entering the Cosm key manually really sucks, so I have updated the app to use a QR code reader for that purpose. Simply go to http://goqr.me/ or any alternative and generate a QR code with your key. Then simply use the ‘Read QR code’ button ;-)

11 thoughts on “Log your Android resources on Cosm!

    • Hi! Glad you like it, :-)

      Can you check if the app is running on the background? (Settings, applications, manage running services) or try restarting the service from the application menu!

  1. Yes, it is running but quite often shutting down (there must be a reason for this?
    ). Don’t know the reason, but seems anyway that no data is relayed to cosm.
    I wish there was a tutorial for getting started with the source file :-D

    • Well, indeed in some cases it stops running after some (random) period of time, could be memory issues, don’t really know. Haven’t spent much time on the implementation, I just made the app as a ‘proof of concept’. If you need any help with the source code just let me know :-)

  2. Have found the bug (sorry abt that), now it should be working fine. I have uploaded the new version to Google Play, it might take some time until it reaches your devices as an update. Thanks!

  3. Hi. Great App really useful, and helped me alot with understanding how mqtt is used in conjunction with android and cosm. I have a suggestion, regarding, app extension, I was thinking of IOIO OTG, is there a possibility that one day reading IOIO OTG data or triggering events be a possible option? I would like to participate. I am a tester of profession and am currently learning java, android sdk and know a little bit of python. An also, was thinking to forward Torque data and push it on cosm. Maybe in the future, enginners can have a look at car behaviour based on real live feeeds from all over.Give me a feedback, looking forward to. One again, great app and, Cheers.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>