Build APK - General Questions and Answers

I can find how to build a Apk from javascript code, I wrote an app in Droidscript but now i want to copile it. How can i build apk from javascript?

Related

[Q] Question on APK versions

How can I determine the version of the class within an APK if the manifest does not have any version information?
This is odd for me being a Java developer - we always list the version information within our manifest in a JAR/WAR/EAR file... It seems in the android world its almost NEVER there..
Thanks
stanglx said:
How can I determine the version of the class within an APK if the manifest does not have any version information?
This is odd for me being a Java developer - we always list the version information within our manifest in a JAR/WAR/EAR file... It seems in the android world its almost NEVER there..
Thanks
Click to expand...
Click to collapse
the manifest HAS to have a version in order to be posted in the Market, and an updated version in order to be uploaded. If it's not been posted in the market that's a hard one.... just poor developers out there...
Eclipse won't let me build an app unless the version has been changed....
Its funny... I was so focused on a JAR/EAR/WAR manifest and forgot this was android!!! Haaa...
Just for anyone else asking the same question:
The manifest for APK is AndroidManifest.xml
And you can parse this using a utility called axml2xml.pl to obtain version number. OR better yet use apktool to decode the entire APK.
Thanks... Justs need someone to get the juices flowing...
jerdog said:
the manifest HAS to have a version in order to be posted in the Market, and an updated version in order to be uploaded. If it's not been posted in the market that's a hard one.... just poor developers out there...
Eclipse won't let me build an app unless the version has been changed....
Click to expand...
Click to collapse

compiling app?

hi i have this app in market that cost money but also a open source code so i can download all files of apk..
but how i complie them into an apk type?? what program and what do i do with it?
Try apktool

[Q] How to ad admob ads on a decompiled apk

I have an apk of mine which I have created using eclips but unfortunately I didn't added any admob ads on it..Now I have browsed xda forum and found an post about how to recompile and decompile of an apk ...From that trick I managed to decompiled my apk ..Now I want to ad admob ads on it.but don't know how

[Q] how to get apktool working on android ?

How do I get apktool working on android ? Where do I download latest working version ? I had apktool working but now I flashed custom rom and I installed it again and it won't work. It won't install framework and doesn't decompile the whole app
code.google.com/p/android-apktool/
Yes, it wont decompile whole app successfully sometimes, so it's better to edit the smali code which can be wholly decompiled successfully.
Hope this can help you
henry0504 said:
code.google.com/p/android-apktool/
Yes, it wont decompile whole app successfully sometimes, so it's better to edit the smali code which can be wholly decompiled successfully.
Hope this can help you
Click to expand...
Click to collapse
it's not decompiling any apps all the way.
I don't know what to download from there.
I tried both from here.
http://pan.baidu.com/s/1qWyPYVE
When I try recomepile it won't do it
I think the files in your link is not apktool...
Apktool is a jar file for decompiling and recompiling apks.
Use with cmd, example:
apktool.jar d filetobedecompile.apk
apktool.jar if frameworktobeinstall.apk
apktool.jar b filetoberecompile
It's definitely not an apk so far, so you should go to the official page on google code and download the official jar file.
Hope this can help you. Hit thanks!
henry0504 said:
I think the files in your link is not apktool...
Apktool is a jar file for decompiling and recompiling apks.
Use with cmd, example:
apktool.jar d filetobedecompile.apk
apktool.jar if frameworktobeinstall.apk
apktool.jar b filetoberecompile
It's definitely not an apk so far, so you should go to the official page on google code and download the official jar file.
Hope this can help you. Hit thanks!
Click to expand...
Click to collapse
Are those commands I can use in terminal emulator ? Does it change a jar file to apk or let me run jar files ? I don't know how to get terminal emulator working. I tried a java app that says it can run java files but the app wouldn't run. @henry0504
forum.xda-developers.com/showthread.php?t=1989533
I don't have a computer @henry0504
That's the first time I heard somebody didn't own a computer....
I am shocked that I heard it in xda…
You should own one bro
henry0504 said:
That's the first time I heard somebody didn't own a computer....
I am shocked that I heard it in xda…
You should own one bro
Click to expand...
Click to collapse
Do you know any other way ? I tried different apps that are suppose to run Java apps and they close when I try running the app or I couldn't get it to run the java app.
ryan012 said:
Do you know any other way ? I tried different apps that are suppose to run Java apps and they close when I try running the app or I couldn't get it to run the java app.
Click to expand...
Click to collapse
I don't get what you really mean, but you can try JBED for running java file on Android.
But I strongly recommend you to use computer to decompile apks. If you don't have one, you can't decompile apks and use apktool.
henry0504 said:
I don't get what you really mean, but you can try JBED for running java file on Android.
But I strongly recommend you to use computer to decompile apks. If you don't have one, you can't decompile apks and use apktool.
Click to expand...
Click to collapse
any way to run the java app. I tried that app, it won't run.
To decompile app on android you can try ninja morph
Sent from my Xperia Live with Walkman using XDA Premium 4 mobile app
android yoyash said:
To decompile app on android you can try ninja morph
Sent from my Xperia Live with Walkman using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That app isn't bad. I like zarchiver, app better

Apk to java source code using smali

I am using aide for android. I decompile an app using smali then made some modifications, before i made some modifications it shows thousands of errors "unexpected end of declaration"! What is the problem! Can you help me build my mod then send it on my email? [email protected]
Here is the source code! https://www.dropbox.com/s/kxn3nlp0i9m0o71/FMTransmitter.zip?dl=0

Categories

Resources