App Inventor Java Code

App Inventor Java CodeI have been asked numerous times to show the App Inventor Java Code. So here is a zipped archive for all the class files. You can take those classes and easily open them with a program called JD GUI. There are versions of it for every OS.

I got the code pretty easily with 2 programs being the apktool and Dex2Jar. They can convert APK files into the class files most of the time. After you install them you issue the following commands in your terminal or command prompt:

  • apktool d yourAPKFile.apk
  • jar xvf yourAPKFile.apk classes.dex
  • Windows : d2j-dex2jar.bat classes.dex
  • OSX or Linux : d2j-dex2jar.sh classes.dex (May have to type sh d2j-dex2jar.sh classes.dex)
  • jar xvf classes-dex2jar.jar

That generates all the class files for your apk file. I hope that helps 🙂

If you know anyone that is interested in doing this feel free to share on Google Plus here [googleplusone]

14 thoughts on “App Inventor Java Code”

  1. hello bro i want to store 1000 of strings in an array each string may have around 160 chars
    see i have a textview and a button, wenevr a button is pressed diffrent strings shud be generated in textview

    1. i was thinking to store dat in database but i dont knw how to display different strings wen button is pressed.
      #Android

  2. yeahh.but SQLITE is a serverless database so i hav to make use of mysql/php n store over der
    make tutorial on this concept for generating string stored in db on webserver or without webserver ASAP.
    by the time any Algortihm will also do so that i can make a try.

  3. Hello Derek,
    I’ve got a bit of a problem and, for all I’ve read so far, you really seem the best person on the planet to whom I could ask…
    I’ve spent the last three years of my ife creating an app with AppInventor and finally got it just right and published it. Many people have started to use it and like it a lot but… I also receive plenty of requests to make a version compatible with iOS.
    I’d really love to do that but I’m no professional programmer and have only used AppInventor so far…
    Do you think it may somehow be possible to get my Android App “transalted” to work on iPhones and iPads?

    1. Hello Nicola,

      What app is it? To convert from AI to iOS is going to require you to program it using Objective C from what I know. I’ll look into it.

          1. Hey I was wondering if you found an answer to converting app inventor to iOS. I’m not sure if app inventor 2 is done in Java app inventor classic was done in something else I think?? Im not too sure……ANYHOW I found out that google made a tool back in 2012
            its called J2ObjC: A Java to iOS Objective-C translator. Im not a programmer either but have an idea for an app and would want to be able to convert to iOS. I was wondering if you knew anything about this or if it could even be done since I think App inventor 2 is done with java??? Thanks a lot

Leave a Reply

Your email address will not be published. Required fields are marked *