Wednesday 5 December 2012

How Converting Java (J2ME) Applications To Android .apk Format Can Be Done Easily

Now the world is now or is already gotten used to Android but if you are new or old to Android phones this tutorial is for you. I recently discovered what i thought was impossible on a good friend's blog Don Caprio which is to convert Java application .jar to Android .apk format, we must all know that a java applications can not run on a Android phone without the use of a Emulator, but you can now convert a Java .jar files and applications to Android .apk format easily.
how to convert java .jar applications to Android .apk format easily

Android .apk Files Or Applications And What They Consist Of

When Google started creating Android applications, they use an extension which is the .apk format, now this .apk format is just disguising extension just for Android but its nothing, Android .apk files are zipped archives files but saved in a different extension, you don't believe me? Yea I did not believe too until I tried it myself and confirmed it. You too can try and confirm it, get an Android .apk format application on a computer, then rename the extension to .zip format and see how to changes to a zipped file. When you open the zipped file it consist of a file named classes.dex which is the main file of the application consisting of all the java files, now you hear java files; yes java makeup and Android application. Now this classes.dex files can also be disassembled, this can be done through some process because the java files in the classes.dex files are compiled differently.

What You Will Need To Disassemble the classes.dex File

To disassemble the classes.dex you will need to get this two files
  1. Dex2Jar from http://code.google.com/p/dex2jar/
  2. A regular Java decompiler, such as JD from http://java.decompiler.free.fr 
  • Unzip the Dex2Jar
  • In the Dex2jar directory, paste the classes.dex file you got from the application.
  • Open CMD, go to dex2jar directory using cd, and type dex2jar YourApp.apk
  • You will automatically get a .jar. Use jd gui to decompile it.
Now you believe me when I say java application can be convert to Android .apk format? Yea you do!

How To Convert Java .Jar/.Jad Applications To Android .apk Format

I found out two sites which can perform this process from the post and the process which is to convert a .jar or.jad to .apk format and make it work well on your Android Phones
  1. Netmite: This site perform this service for free, which is quite cool for this purpose, the website is very easy to understand, all you have to do is to upload the .jar and .jad format to get your .apk format application. If you don't know how to get your .jad file use this JADMaker.
  2.  Upontek: This website offers the same service but theirs is not free, but they also have other features that will interest coding and application writer.
Source : Don Caprio

Any question please comment below and for more update like our page, follow on twitter and also subscribe to get updates directly to your email. Subscribe below!!!

Need something Else search below!! 
SEARCH HERE FOR MORE PLEASE SHARE THE POST BY CLICKING THE BUTTONS BELOW

0 comments:

Post a Comment

I will Love to hear your comments