Friday, 23 November 2012

How to get the Xml resource file from apk

  Download the apktool, apktool installer from following link        brut1.tar.bz2

         apktool xx.tar will give you apktool.jar                                                                      
         apktool-install-XX.tar will give you apktool.bat. This bat file uses apktool.jar so both should be in      same folder.

download framework-res.apk file and put it in same folder.  

Now open the command prompt:

Navigate to the root directory of APKtool.bat and type the following command:


d:raj\apktool\ apktool if   framwork-res.apk      

d:raj\apktool\ apktool d   sample.apk  



how to extract the apk to get source code easy way

Step 1:
Get the apk (sample.apk) to specified(sample_1) folder and rename it to zip format ( unzip(extract) that file with in the folder.

Step 2:
download the dex2jar from this link:
copy this zip to sample_1 and unzip(extract) that file with in this folder..

Step 3:
download the  java de compiler from this link:

        copy this to sample_1  and unzip(extract) that file with in this folder.

Step 4:

Open the dex2jar folder, copy source apk file within dex2jar folder.

Step 5:
Open the command prompt(browse your dex2jar folder)  Type  following code in command prompt

D:sample\dex2jar\dex2jar.bat sample.apk

You will get sample_dex2jar.jar file within sample_1

Step 6:

Run the jd-gui.exe.

Click  File-->select the sample_dex2jar.jar where it is stored.

      Now you will get the all java code.

Thursday, 22 November 2012

ADB server didn’t ACK, failed to start daemon

             These error Can be solved by using following step.

Step 1: CTRL+Shift+Esc to open the task manager , which has adb.exe within  process tab and end (kill) that process

Step 2: Now, close the eclipse, which is currently running on my computer.

Step 3: Again, restart eclipse then solved that problem.

Sunday, 18 November 2012

How to install external apk to our Android Emulator Easy way?

    Step 1: Get the apk you want to install.

    Step 2: Select the the DDMS option in your Eclipse.

    Step 3: Go to File Explorer(Refer the image)

   Step 4: With in the File Explorer select Data-->apps. There is a list of application installed in our emulator.

   Step 5: Select any one from there.

   Step 6: Now, Click the mobile icon(on the Right side of our File Explorer) to push the apk file to Device.

  Step 7: Now, select the apk you want to install from your computer.

  Step 8: apk will install successfully, now go to your emulator(search the
              app now install) there is a application which we install now.


Wednesday, 7 November 2012

PC Keyboard not Working in Emulator after Upgrade Android os version to 4.1 (Jelly Bean)

Step :1
          Windows-->AVD Manager-->  Select the emulator you want to edit.

Step :2
          Click Edit--->Hardware---->New--->Click Accelerometer Dropdown-->select Keyboard support      --> Ok.

Step :3
        On hardware -->Value--->Change to "yes"(Default "no"). ---->Edit  AVD..

Step :4
       Start The Emulator again..

  Now Pc Keyboard will work in JellyBean(4.1) Emulator.


Thursday, 21 June 2012

SQLite Database Browser to open table from Android application

Just download the SQLite Database browser from above link.

Install the SQLite Database browser

* Open the android DDMS

* Select file Explorer

* Data ---->data -->select your package name--->open database folder.

* Select the database ...Click the save icon(first from left) on file explorer menu.

* Save it .. where you want

* Open the SQLite browser click open your database your db .

* Click browse Data tab.. select your table name from the drop down list(near search icon).

*Table will open.

Thursday, 29 March 2012

Emulator  Keyboard Commands

Table 1 summarizes the mappings between the emulator keys and the keys of your keyboard.
Table 1. Emulator keyboard mapping
Emulated Device Key Keyboard Key
Menu (left softkey) F2 or Page-up button
Star (right softkey) Shift-F2 or Page Down
Back ESC
Call/dial button F3
Hangup/end call button F4
Search F5
Power button F7
Audio volume up button KEYPAD_PLUS, Ctrl-F5
Audio volume down button KEYPAD_MINUS, Ctrl-F6
Camera button Ctrl-KEYPAD_5, Ctrl-F3
Switch to previous layout orientation (for example, portrait, landscape) KEYPAD_7, Ctrl-F11
Switch to next layout orientation (for example, portrait, landscape) KEYPAD_9, Ctrl-F12
Toggle cell networking on/off F8
Toggle code profiling F9 (only with -trace startup option)
Toggle fullscreen mode Alt-Enter
Toggle trackball mode F6
Enter trackball mode temporarily (while key is pressed) Delete
DPad left/up/right/down KEYPAD_4/8/6/2
DPad center click KEYPAD_5
Onion alpha increase/decrease KEYPAD_MULTIPLY(*) / KEYPAD_DIVIDE(/)

Tuesday, 27 March 2012

Rotate bitmap Image in android

rotate.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                if (i >= 360) {
                    i = 0;
                i = i + 90;

                Matrix mat = new Matrix();
                mat.preRotate(i);// /in degree

                // Bitmap
                mBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),
                        bitmap.getHeight(), mat, true);