lunedì 24 dicembre 2012

myBattery for Windows Phone

MyBattery" is out, and it's free for some days!

Do you want to see your battery level in the live tile or in the lock screen?
NOW YOU CAN.. with the best app for this category!
Just pin the tile and check your battery level.


Features:
  • Modern UI with animations.
  • Battery percentage.
  • Remaining charge time.
  • Charts: from daily to all history.
  • Swap chart color.
  • Choose your images: colored or not.
  • Notifications in the Lock screen.

Windows Phone API limitations:
  • The live tile and the lock screen can be updated approximately every 30 minutes.
  • The live tile and the lock screen can show percentage from 0 to 99.
  • The notification icon in the lock screen can't change.



Check the marketplace now: Download myBattery


QRCode

domenica 2 dicembre 2012

Windows Phone - Battery API

One of the new additions with the Windows Phone SDK 8.0, is the ability to query the battery charge.

Here the simple code:
Battery battery = Battery.GetDefault();
var percentage = battery.RemainingChargePercent;
var remainingTime = battery.RemainingDischargeTime;

And the event:
battery.RemainingChargePercentChanged += (s, args) =>
{
 // your code here
};

Enjoy!