Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Wednesday, October 24, 2012

Free Android Source Code for Battery Status/Widget




I'm distributing my Source Code for the Battery Status and Battery Widget that I have shared in the previous posts. You may visit Android Apps page to grab the Source Code. I'm releasing these Source Codes as below license:

Creative Commons License

I'll let you try to combine these separate codes to work as an application containing that can launch and also can work as widget. I'll be posting the full combined Source Code maybe after couple of days. In fact I'm running the combined code on my phone right now. Work like a charm!

If anybody manage to combine, feel free to comment below.

Happy Coding Android!

Previous Related Posts:
Android Sample Code: Battery Status
Android Sample Code: Battery Widget  

:: aerobrainTech ::

Tuesday, May 22, 2012

Android Sample Code: Battery Widget

*If you are new to Android, you should read this post first: Sample Code Battery Status

For a widget to work, below are some important items:
  • AndroidManifest.xml must be altered
  • Must create a layout file for widget provider
  • Must create a layout for widget
  • Main class source code

Thursday, March 29, 2012

Creating Bootable USB Installer for Windows 8

In this post, I will show how to create a bootable USB Installer for Windows 8 (and other OS as well).

STEP 1:
Prepare at least 4GB USB Drive. Format using NTFS filesystem.
Also, make sure the partition is active as shown below:
 

Sunday, February 19, 2012

Android Sample Code: Battery Status

Here I want to share Battery Status Application that output as below:

Before I share my source code for Battery Status Application for Android. Below are the tools that you need to develop an Android Application or Widget:
  1. Android Development Environment - eclipse
  2. Android SDK
  3. Android Virtual Device Manager
*For details on how to do the installation, you may refer to Android Developers page.

For this Battery Status Application, below is the general outline:
  • The layout is using ListView as the main and TextView for the individual row.
  • Upon starting the application, a thread will be created to pull the battery info in 1-second interval. The battery info is being pulled using the BroadcastReceiver.

Saturday, February 4, 2012

Android App Development

Recently I got an Android Phone so I think why not I try to develop Android Apps. Right now I managed to run simple app to display battery level and voltage. I'll be posting more soon on this.

Stay Tuned.

:: aerobrainTech ::