Thursday 20 November 2014

HB Blog 40: Top 5 Android Application To Cross 1 Billion+ Downloads On Google Play.

The applications that crossed 1 billion download hits over google play are Gmail ,Google play services, Google Maps, You tube and Facebook.

1)Gmail
Click here to download : Google Play Store
The product of Google Inc. is the first android application that crossed 1 billion downloads on google play.
Gmail is built on the idea that email can be more intuitive, efficient, and useful. And maybe even fun. Get your email instantly via push notifications, read and respond to your conversations online & offline, and search and find any email.
Gmail also lets you:
• Manage multiple accounts
• View and save attachments
• Set up label notifications
2)Google Play services
Click here to download : Google Play Store 
The product of Google Inc. is the android application that crossed 1 billion downloads on google play.
Google Play services is used to update Google apps and apps from Google Play.
This component provides core functionality like authentication to your Google services, synchronized contacts, access to all the latest user privacy settings, and higher quality, lower-powered location based services.
Google Play services also enhances your app experience. It speeds up offline searches, provides more immersive maps, and improves gaming experiences.
Apps may not work if you uninstall Google Play services.

3)Maps
Click here to download : Google Play Store 
The product of Google Inc. is the android application that crossed 1 billion downloads on google play.
The Google Maps app for Android phones and tablets makes navigating your world faster and easier. Find the best spots in town and the information you need to get there.
• Comprehensive, accurate maps in 220 countries and territories
• Voice-guided GPS navigation for driving, biking, and walking
• Transit directions and maps for over 15,000 towns and cities
• Live traffic conditions, incident reports, and automatic rerouting to find the best route
• Detailed information on more than 100 million places
• Street View and indoor imagery for restaurants, museums, and more

4)You tube
Click here to download : Google Play Store 
The product of Google Inc. is the android application that crossed 1 billion downloads on google play.
• Personalized 'What to Watch' recommendations
• Launch a never-ending YouTube Mix from your favorite music videos
• Find music faster by playing albums or artists right from search
• Cast videos straight from your phone to Chromecast and other connected TV devices and game consoles
• Search using text or voice
• Quickly find your favorite channels using the guide

5)Facebook
Click here to download : Google Play Store 
The product of Facebook is the first non google android application that crossed 1 billion downloads on google play.
Keeping up with friends is faster than ever.
• See what friends are up to
• Share updates, photos and videos
• Get notified when friends like and comment on your posts
• Text, chat and have group conversations
• Play games and use your favorite apps

Wednesday 19 November 2014

HB Blog 39: How To Integrate Barcode/QrCode Scanner For Android???

Mobile technology has seen vast change and has moved towards great future.Today most of the day to day life has grown taking technology in hand.
In this post, I would like to show barcode/QrCode scanner for android.

A barcode is an optical machine-readable representation of data relating to the object to which it is attached.QR code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode). 

How To Integrate Barcode/QrCode Scanner For Android?
There are two ways of Barcode/QrCode integration.
1)Using Traditional Application.
2)Using Library Integration.

1)Using Traditional Application:- 
In this way, you redirect from your application to standard barcode application on google play.
Barcode Scanner

Have a look on few code snippets,

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//write this code on desire button click
try{
                    Intent intent = new Intent("com.google.zxing.client.android.SCAN");
                    intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); // "PRODUCT_MODE for bar codes
                    startActivityForResult(intent, 0);
                }
                catch(Exception e){
                    Uri marketUri = Uri.parse("market://details?id=com.google.zxing.client.android");
                    Intent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);
                    startActivity(marketIntent);
                }

//And then catch result using onActivityResult
@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == 0) {
            if (resultCode == RESULT_OK) {
                String contents = data.getStringExtra("SCAN_RESULT");
                System.out.println("contents:-"+contents);
                Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(contents));
                startActivity(marketIntent);
            }
            if(resultCode == RESULT_CANCELED){
                //handle cancel
            }
        }
    }

2)Using Library Integration:- 
In this way, you use the same library by ZXing Team to integrate barcode/QrCode scanner inside your application.
Firstly, download required support library files by ZXing Team from below link.
Download Support Library 
Secondly, add them to your libs folder in android project traditional way.
Then,Have a look on few code snippets,

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//write this code on desire button click
 // set the last parameter to true to open front light if available
                IntentIntegrator.initiateScan(ZXingJarDemoActivity.this, R.layout.capture,
                        R.id.viewfinder_view, R.id.preview_view, true);

 //And then catch result using onActivityResult
 @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        switch (requestCode) {
            case IntentIntegrator.REQUEST_CODE:
                IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode,
                        resultCode, data);
                if (scanResult == null) {
                    return;
                }
                final String result = scanResult.getContents();
                if (result != null) {
                    handler.post(new Runnable() {
                        @Override
                        public void run() {
                            txtScanResult.setText(result);
                        }
                    });
                }
                break;
            default:
        }
    } 


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Also, add following lines in android manifest,

<supports-screens android:largeScreens="true"
        android:normalScreens="true" android:smallScreens="true"
        android:anyDensity="true" />
    <uses-feature android:name="android.hardware.camera" />

<uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />


<activity android:name="com.example.hbdemo.ZXingJarDemoActivity" android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

Refer the below link for complete sample code:-
Download Sample Code
Download Apk File

Sunday 16 November 2014

HB Blog 38: Android Applications To Manage Our Day To Day Life.

1) Daily Success Checklist
Click here to download : Google Play Store
Description : This Apps that encourage, support, and reward you for taking meaningful daily action towards the attainment of your goals, big or small.This checklist was especially created to help you take daily consistent action over time.A successful day, with all items checked, results in a green check mark placed on the calendar.Watching a series of check marks fill up the calendar, helps motivate you to stay consistent.
2) Expense Manager
Click here to download : Google Play Store
Description : Expense manager is used to tracking expenses and incomes by week, month and year as well as by categories also, schedule the payments and recurring payments and much more.
3) LinkedIn Pulse
Click here to download : Google Play Store
Description : Pulse brings you the right news and analysis every day.You'll get the knowledge most relevant to you in a bite-sized and beautiful interface.Articles are curated for you, based on your interests and your connections.
4) Google Keep - notes and lists
Click here to download : Google Play Store
Description : Quickly create, access and organize notes, lists and photos with Google Keep.Color code notes to quickly organize and get on with your life.
5) Audio Profile Switcher
Click here to download : Google Play Store

Description : Audio Profile Switcher is a simple yet efficient application for managing your Android device audio settings.

Monday 10 November 2014

HB Blog 37: Remote Control Android Phone Via Sms Commands.

Remote administration refers to any method of controlling a device from a remote location.Specifically, for android phones remote controlling can be done using many applications with different RAT(Remote Access Trojan) patterns.
In this blog, I will show a very similar kind of RAT to control device using simple sms commands.

Process goes as follows:-
1)Install android apk file on target device.
2)Send following commands and appropriate actions are resulted.

1 - Wifi is turned ON.
2 - Wifi is turned OFF.
3 - Bluetooth is turned ON.
4 - Bluetooth is turned OFF.
5 - Mobile data is turned ON.
6 - Mobile data is turned OFF.
7 - Silent Mode is turned ON.
8 - Silent Mode is turned OFF.
9 - Notification is sent.
0 - Sd card is formatted.

Have a look on few code snippets,

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//Toggle wifi
    public void toggleWifi(Context context,boolean status){
            WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
            wifiManager.setWifiEnabled(status);
    }

    //Toggle bluetooth
    public void toggleBluetooth(Context context,boolean status){
         BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        if(bluetoothAdapter != null){
            if(!bluetoothAdapter.isEnabled() && status==true){
                bluetoothAdapter.enable();
            }
            else{
                bluetoothAdapter.disable();
            }
        }
        else {}
    }
   
    //Toggle Mobile data
    public void toggleMobileData(Context context,boolean status){
            final ConnectivityManager conman = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
            final Class conmanClass = Class.forName(conman.getClass().getName());
            final Field iConnectivityManagerField = conmanClass.getDeclaredField("mService");
            iConnectivityManagerField.setAccessible(true);
            final Object iConnectivityManager = iConnectivityManagerField.get(conman);
            final Class iConnectivityManagerClass = Class.forName(iConnectivityManager.getClass().getName());
            final Method setMobileDataEnabledMethod = iConnectivityManagerClass.getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
            setMobileDataEnabledMethod.setAccessible(true);
            setMobileDataEnabledMethod.invoke(iConnectivityManager, status);
        }

    // Toggle Silent Mode
    public void toggleSilentMode(Context context,boolean status){
        AudioManager audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
        if(status){
            audioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
        } else {
            audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
        }
    }

Refer the below link for complete sample code:-
Download Sample Code
Download Apk File

Sunday 9 November 2014

HB Blog 36: Mobile Operating System - Android/Ios/Windows/Blackberry.


A mobile operating system, also referred to as mobile OS, is an operating system that operates a smartphones, tablet, PDA, or other mobile device.
Many differences and many similarities are seen in the mobile technology. Now-a-days people need variety of choices to select, and comparison between these mobile technology helps them to so. There are many aspects to look over, I have just mentioned few of them.
What are latest version updates in mobile OS:-
Android(Lollipop 5.0):
Material Design- A bold, colorful, and responsive UI design for consistent, intuitive experiences across all your devices.
Notifications- View and respond to messages directly from your lock screen. Includes the ability to hide sensitive content for these notification.
Battery- A battery saver feature which extends device use by up to 90 mins.
Security- New devices come with encryption automatically turned on to help protect data on lost or stolen devices and use Android Smart Lock to secure your phone or tablet by pairing it with a trusted device like your wearable or even your car.
Device Sharing- More flexible sharing with family and friends.Multiple users for phones.
New Quick Settings- Get to the most frequently used settings with just two swipes down from the top of the screen.
Connectivity- A better internet connection everywhere and more powerful Bluetooth low energy capabilities.
Runtime and Performance- A faster, smoother and more powerful computing experience.ART, an entirely new Android runtime, improves application performance and responsivenes.
Media- Bolder graphics and improved audio, video, and camera capabilities.
OK Google- Easy access to information and performing tasks.
Android TV- Support for living room devices.
Accessibility- Enhanced low vision and color blind capabilities.

Ios(8):
Photos- The all-new Photos app makes it simpler than ever to find and rediscover your favourite photos with new search features and smart albums that organise your photos for you. 
Messages- Messages lets you connect with friends and family like never before.Send a video of what you’re seeing the moment you’re seeing it. And easily share your location so they know where you are.
Design- In iOS 8, you’ll find a convenient new way to respond to notifications. Helpful shortcuts to the people you talk to most. 
Keyboard- iOS 8 makes typing easier by suggesting contextually appropriate words to complete your sentences. It even recognises who you’re typing to and whether you’re in Mail or Messages. 
Family sharing- Up to six people in your household can easily share each other’s purchases from iTunes and the App Store.
iCloud drive- You can work on any file, anywhere.That includes presentations, PDFs, images and more — straight from iCloud.
Health- Now your activity tracker, heart rate monitor and other health and fitness apps can talk to each other.

Windows Phone(8.1):
Folders- Folders let you organise your Start screen the way you want.
Messaging- Combine multiple text messages into one, then forward them to someone else.
Selection- With improved selection, you can now delete multiple calls, messages or contacts.
Apps Corner- Apps Corner lets you specify apps that other people can use on a Windows Phone.
Store- The new Live Tile for Windows Phone Store helps you discover new apps and games.
Internet Explorer- Improvements to Internet Explorer 11 for Windows Phone give you a better browsing experience on your phone.
Alarms- Now you can customise the snooze time for an alarm-
Accessory apps- Use accessory apps to get notifications from your phone on your smart watch, active phone cover, fitness tracker or other kinds of accessories.
Internet sharing- Now you can share your mobile data connection over Bluetooth, so you can get an Internet connection on more kinds of devices.
VPN-VPN now supports L2TP, which lets you connect to more VPN services.
Narrator- Narrator now has touch typing and a way for you to turn off hints for controls and buttons if you don't want them read aloud.

BlackBerry(10.2)-
Priority Hub- BlackBerry Priority Hub curates a view of your most important messages.
Sound technology- BlackBerry Natural Sound technology lets you hear every word with intense clarity.
Instant Previews- Instant Previews of BBM, SMS and email from any app let you respond or go to the BlackBerry Hub with a single touch.
Lock Screen Notifications- It let you view the sender and subject of your latest email, text or BBM without unlocking.
Keyboard- BlackBerry Keyboard updates further improve your efficiency.
Copy and paste- Easier copy and paste comes from more precise cursor control, a double tap to select feature, editing options that automatically appear and direct sharing.
Battery life- Optimized battery life with new monitoring options and indicators.
Call management- An options so you can respond on your terms, even by email/BBM/text.
Cost management- The tools to manage roaming and data usage
Broadcast communications-Groups can be created for SMS and email for more efficient broadcast communications.
Security- Picture Password for quick unlocking.
Offline Browser- Reading Mode lets you save the current web page for later viewing, even if you are offline.
FM Radio- It does not require any network connection so can you listen to local FM stations.



Android

Ios

Windows

Blackberry

Developer Google Apple Inc Microsoft Corporation BlackBerry Limited
Operating System Linux Darwin Windows NT QNX
Latest Version Lollipop 5.0 8 8.1 10.2
CPU Architecture ARM, MIPS, x86 ARM Windows NT ARM
License Apache License 2.0 Free and Open Source Proprietary EULA Commercial proprietary software Proprietary
Programming Languages C, C++, Java C, C++, Objective-C, Swift C#, Visual Basic, C, C++ C, C++, Java
IDE Eclipse, IntelliJ IDEA Xcode, AppCode Visual Studio Eclipse, BlackBerry JDE
Official Website www.android.com www.apple.com/ios/ www.windowsphone.com www.blackberry.com

Saturday 8 November 2014

HB Blog 35: Android Applications For Rooted Devices.

1) Linux Deploy
Click here to download : Google Play Store
Description : This application is open source software for quick and easy installation of the operating system (OS) GNU/Linux on your Android device.The application creates a disk image on the flash card, mount it and install there OS distribution.
2) Root Checker
Click here to download : Google Play Store
Description : The goal of this application is to provide even the newest Android user with a simple method to check their device for root (administrator/superuser) access. This is a very simple application to notify the user whether or not they have properly setup root access.
3) Titanium Backup
Click here to download : Google Play Store
Description : Titanium Backup is the most powerful backup tool on Android.You can backup, restore, freeze (with Pro) your apps + data + Market links.
4) Superuser
Click here to download : Google Play Store
Description : Superuser is the app that manages what apps on your rooted device have access to su. Apps that are granted su have elevated permissions and can modify just about any part of the system.
5) ROM Toolbox Pro
Click here to download : Google Play Store
  
Description : ROM Toolbox combines all the great root apps into one monster app with a beautiful and easy to use interface. ROM Toolbox has every tool you need to make your Android device fast and customized to your liking.ROM Toolbox combines apps like Titanium Backup, ROM Manager, Root Explorer, SetCPU, MetaMorph, Autorun Manager, Terminal Emulator, Script Manager, SD Booster, BuildProp Editor, Font Installer, Boot Animation Installer & many more apps into an all-in-one app.

Friday 7 November 2014

HB Blog 34: Circular Progress Bar In Android.

A progress bar is a visual indicator of progress in some operation. Normally, we find linear horizontal line representing the progress bar. but,we can also have circular progress bar to show progress of specific task. There are many ways to do so, I have shown one of them.
Have a look on few code snippets,

MainActivity.java
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//This methods is used to handle progress of progressbar.
public void callAsynchronousTask() {
    final Handler handler = new Handler();
    Timer timer = new Timer();
    TimerTask doAsynchronousTask = new TimerTask() {      
        @Override
        public void run() {
            handler.post(new Runnable() {
                public void run() {      
                    try {
                        progressBar.incrementProgressBy(1);
                        int stringProgress=progressBar.getProgress();
                        progressText.setText(stringProgress+"");
                    } catch (Exception e) {
                    }
                }
            });
        }
    };
    timer.schedule(doAsynchronousTask, 0, 10);
}

activity_main.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<ProgressBar
        android:id="@+id/ProgressBar01"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="150dp"
        android:layout_height="173dp"
        android:layout_centerInParent="true"
        android:indeterminate="false"
        android:max="48"
        android:progress="50"
        android:progressDrawable="@drawable/progressbar" />

    <TextView
        android:id="@+id/progressText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="100"
        android:textSize="50sp"
        android:textColor="#3BB9FF" />

progressbar.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//This is drawable file for progressbar bar. Put this file in drawable folder.

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/progress">
    <shape
             android:innerRadiusRatio="3"
             android:shape="ring"
             android:thicknessRatio="7.0">
  <gradient
             android:startColor="#FF9933"
             android:endColor="#138808"
             android:centerColor="#ffffff"
             android:type="sweep" />  
</shape>
</item>
</layer-list> 


Refer the below link for complete sample code:-
Download Sample Code
Download Apk File

Thursday 6 November 2014

HB Blog 33: How To Access Database From Asset Folder In Android.

In this post, I will show how to access sqlite database from asset folder in android.
We just need to create a new project and keep our desire sqlite databasein asset folder.Then, using simple code we will first copy the database into sd card  and you can use database as normally by firing queries.
Have a look on few code snippets,

DataBaseHelper.java

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//Copies your database from your local assets-folder to the just created empty database in the system folder
    private void copyDataBase() throws IOException
    {
          String outFileName = DATABASE_PATH + DATABASE_NAME;
          OutputStream myOutput = new FileOutputStream(outFileName);
          InputStream myInput = myContext.getAssets().open(DATABASE_NAME);
          byte[] buffer = new byte[1024];
          int length;
          while ((length = myInput.read(buffer)) > 0){
                myOutput.write(buffer, 0, length);
          }
          myInput.close();
          myOutput.flush();
          myOutput.close();
    }

Refer the below link for complete sample code:-
Download Sample Code
Download Apk File

Monday 3 November 2014

HB Blog 32: What Is Android One?How Are Android One Phones Different From Other Android Phones?

Android One is a standard created by Google for Android systems, mainly targeted at people buying their first smartphone, and customers in the developing world.Google and its hardware partners - Micromax, Spice and Karbonn launched three Android One phones. 
What is Android One?
Android One is a Google programme where it is partnering with phone companies to create "high-quality" but low-cost Android smartphone. The programme was announced by Pichai and India is the first country where the company is launching Android One phones.According to Google, Android One programme is its attempt to create affordable smartphones so that billions of people who still use a feature phone can buy a smartphone.

How are Android One phones different from other Android phones?
Different phone companies take AOSP and then put their own user interface and apps in it. They also remove and add features. The end result is not exactly the Android that Google wants you to have. It is the Android that Samsung, LG or HTC want you to get.
For high-end phones, these customisations work decently well. But in the low-end phones, which don't have powerful hardware, the performance suffers.
Android One is different. First of all, it has- despite its similarities with the regular version of Android - some extra customisation that makes it more suitable to low-end hardware. Second, it doesn't have any third-party user interface or unnecessary features. It is the version of Android created by Google. This means when you buy an Android One phone, you get the Android experience that Google has designed for you and not Micromax or Spice.With normal Android phones, the company selling the phone is responsible for choosing right hardware and software for the devices. For Android One phone, Google is in the driver's seat. It finalises the hardware and software.More importantly, Google is also responsible for delivering software updates to Android One phones.This means you can expect Android One phones to get latest version of Android - next is Android,with auto version update as well.

Saturday 1 November 2014

HB Blog 31: How To Install Windows XP On Android Device.

Windows XP is a personal computer operating system produced by Microsoft as part of the Windows NT family of operating systems. 
Requirements:- 
  1. A smartphone/tablet running Android with RAM more than 1000MB and hardware specification, which needs to be rooted since it requires root permission to run certain scripts.For rooting android smartphone you can follow my blog Step By Step Guide How To Root Mobile Device.
  2. Download and Install Bochs for your Android.Click here
  3. Download SDL.zip.Click here
  4. Download and Install Qemu Manager for you PC.Click here
  5. Blank Disk .IMG.
Installation:- 
1)Create a blank image file in Bochs on your PC and for that what you have to do is that go to Start and open up Bochs> and then Disk image creation tool and then the new tab with black screen appears as shown below.
In that you have to type 
hd 
flat and it will ask the size
type 1500 and
then type in c.img and then press the enter key.
2)Install Windows XP on blank .img file using Qemu manager, then open up the Qemu manager.
After opening up the Qemu manager, click on the VM on the top left side and select new virtual machine.Then a sub tab appears as shown in the image and type out any name that you need in the first box and hit next.Now in the new tab you can locate the desired RAM that you want to change and change it to 1 Giga hertz and hit finish. Now install XP to your blank image file.Then, click on drives on the left top side and find out the c.img file from the drives. Usually the c.img file will be seen at the C drive> Program files > flash > and change view to all files and your c.img file will be seen select the file and click Okay.
3)Find out the Window XP.iso file and click Ok. If you don't have iso file then you need to download a software called Poweriso and you can convert it to ISO file. After selecting the iso file click on the run button on the top left side which is of green color and the system changes to a blue screen.
After changing the screen to blue color and loading would take few minutes depending on how fast is your computer.Wait till the loading finishes and after that start the installation and a couple of options comes out choose from. Choose ntfs file system and then the installation will take place and it will take few minutes to complete.
4)When the installation is finished, stop the virtual machine. And then, find the c.img file and transfer it to phone. For that find out the c.img file from the local disk and copy the file and paste the file in the SDL folder on the SD card. And after that copy the code given and paste it in the boch.txt file in the SDL folder on the SD card. 
Code:
megs: 256
cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1
# filename of ROM images
romimage: file=BIOS-bochs-latest
vgaromimage: file=VGABIOS-lgpl-latest
vga: extension=cirrus, update_freq=25
pci: enabled=1, chipset=i440fx, slot1=cirrus
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=1, ioaddr1=0×170, ioaddr2=0×370, irq=15
ata0-master: type=disk, path=”c.img”
#ata0-slave: type=disk, path=”d.img”
#ata1-master: type=disk, mode=vvfat, path=/sdcard/HDD, journal=vvfat.redolog
#type=cdrom, path=”CD.ISO”, status=inserted
boot: c
config_interface: textconfig
#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga
log: bochsout.txt
sb16: enabled=1
mouse: enabled=1
sb16: wavemode=1, dmatimer=500000
clock: sync=none, time0=1

Now, turn on your phone and take out the application Bosh which has been installed on your device. Actually it takes few minutes to load up XP on the Android device.
Enjoy the hack :)

Also See:-
How To Install Backtrack On Android Device.
How To Install Kali Linux On Android Device Using Linux Deploy.