Posts

Showing posts from October, 2011

Extracting Java class from .apk files in Android

Extracting Java class from .apk files is a few step work as follows: Need : dex2jar and Java Decompiler Step: 1- Extract .apk(HelloAndroid.apk) file and got the folder (HelloAAndroid). In this folder there is a "classes.dex" 2- Get the tool dex2jar - A tool for converting Android's .dex format to Java's .class format. 3- Extract that there is bat file named as "dex2jar". 4- Open the command prompt(for windows). Goto the extracted dex2jar folder and do this > dex2jar.bat <classes.dex> Like this: > dex2jar.bat "C:\Documents and Settings\subrat_m\My Documents\HelloAndroid\classes.dex" This is done with a "Done" message. 5- Then there is Executable jar file is created as " classes_dex2jar " . Just extract this file  and you can find all the " .class " files. 6- Use any  Java Decompiler  to convert the .class files into .java files. Happy coding ....

Creat Emulator in Android 4.0

Image
Android 4.0 SDK already released.  I have updated my Eclipse and install the needed plugins. But while creating the Emulator it gives a error as " Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. " This can be solved by updating the System images as below: 1. Open Eclipse and open the "Open SDK Manager". 2. Check "Android 4.0" and select " ARM EABI v7a System Image " 3. Install that package . After instalation , a  xxx\Android SDK\Android SDK\system-images\android-14\ armeabi-v7a folder created with " userdata.img ". Then again create the Emulator with Android 4.0 . Now it will create sucessfully. Happy Coding. Enjoy the new Android ICS UI