Import C code to app inventor

Hi everyone!
I'm new in this area of creating apps and I want to make an app that runs code I already have in C, is it possible to use .c and .h files in App Inventor?

In case it's needed, my goal is to read data from an arduino, process them with the code in C and then just print few values. About using BT and arduino I think I know how to do it, the problem is the C code.

I would really appreciate your help

Thank you in advance

unfortunately it is not possible
you have to convert your code into blocks or write an extension for it
more information about how to create an extension see the App Inventor Extensions document
however that will be more advanced and will require some Java skills...


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Well, thank you so much for the information, then I will try other options.

There is an open PR that adds support for native libraries for App Inventor extensions. Once that is merged and deployed it should be possible to include code written in C so long as you write a JNI implementation around it. Another option is to cross-compile your C code to WASM and then load the binary into a WebViewer component on a new-ish version of Android running a new-ish version of Chrome.