How we can convert apk file to jar file in android?
A:
They are both just special zip files. Change the file extension, remove everything but classes.dex and copy the generic META-INF/ from another android jar.
That literally answers your question. If the contents of the classes.dex will be useful or not is a different one.
Chris Stratton
2010-10-27 16:23:05
+1
A:
Really, you can't, as an APK is not the same as a java jar file, it is a Dalvik package. When compiling, the byte code gets turned in to Dalvik Executable (.dex). The dex file is not java byte code, it is a different format.
You can read more about Dalvik on Wikipedia.
Ryan Conrad
2010-10-27 16:24:55
A:
I believe you can change the extension to .zip, and just unzip it, then save it how you want it.
At least I've heard as much. Never tried it though.
James
2010-10-27 16:39:47