From block to code (there is not any way to get this for the Project. It is YAIL code that runs in an interpreter implemented on top of Java. There is no way to "see" the Java code associated with your app. In AI, the Blocks are the programming 'language'

Hi, I have a question: How can I convert my app created in App Inventor to code for a school project that requires the app in code, and I want to use the one I have. I tried going to App Inventor to Java, but when I import my .aia, the page doesn't recognize it.
Thank you very much and sorry for the inconvenience.

As far as I am aware, this is not possible.

This was explained here

Lyn explained how the App Inventor source code is generated here (the programming language(s) )

what computer programming language is the app builder?

App Inventor code is open source... anyone can modify/use it for their own purposes https://github.com/mit-cml/appinventor-sources

The 'language' you program is the Blocks themselves. :disappointed_relieved: provide an aia of a download of the Blocks you made to build your Project.
" :grinning: or/and an image of your Blocks to your teacher.

"When your blocks program is executed on your phone, it is not translated to a traditional language like Java/C/JavaScript etc. It is translated to Scheme-like YAIL code and executed in an interpreter on the phone. Ultimately all Android apps are running a version of Java, but App Inventor code is never converted to Java in live development mode. Rather, it's YAIL code that runs in an interpreter implemented on top of Java. So there's no way to "see" the Java code associated with your app. "

1 Like

The blocks are the code in App Inventor
Taifun

If you need to code your app in a language other than App Inventor's, you can do that by hand. You can type your code (any text-based language such as Java, C, C++, Kotlin, even Basic) using a program that supports it ( Android Studio, Microsoft Visual Studio, Ultra Edit, etc).

You can learn text based languages online. W3 Schools is a good site:

...and you have the advantage of already producing your app in App Inventor, so you have a clear idea of what you want.

What I want to do is convert it to any written program, to learn and try to improve the visuals since what the app shows us isn't that advanced. I also want to implement servers and have each user have their own identity and attributes in a database.
Since I don't know how to program in text, it's easier for me to convert the blocks to code.
I know that the format the mobile displays first goes through an interpreter so it can interpret it. This is great because what I'm giving is in a database. Hahaha

In short, if you know how to convert it to code, I'd be very grateful, but if not, I'll have to learn to program, and the app I spent two years making was for nothing.

Not possible

Yes

No; it is a nice prototype and

However as already said

So what about asking your supervisor if an App Inventor solution can be accepted?

EDIT: the video link provided by @ABG is from 2014... i.e. 11 years old... let us know, if this srill works...

Taifun