Porting a Java Console Program to Android

I made a little console program with java.
It’s just made up of prints, buffered readers, and if statements.
Any idea on how I can convert this program into an apk file?

You could turn it into a native Java plugin and require it in your Corona project.

http://docs.coronalabs.com/native/plugin/index.html#native-java

I’ll try that thanks!

I’m not sure what your goal here is. If it’s a “little” program, why not simply create an Android Studio project and make an APK file there, or just rewrite in in Lua and use Corona.

Keep in mind that mobile apps (where you would use a .apk) has a paradigm of a User Interface and screen/touch interactivity. People generally don’t run console programs on mobile devices. That seems odd. 

Rob

You could turn it into a native Java plugin and require it in your Corona project.

http://docs.coronalabs.com/native/plugin/index.html#native-java

I’ll try that thanks!

I’m not sure what your goal here is. If it’s a “little” program, why not simply create an Android Studio project and make an APK file there, or just rewrite in in Lua and use Corona.

Keep in mind that mobile apps (where you would use a .apk) has a paradigm of a User Interface and screen/touch interactivity. People generally don’t run console programs on mobile devices. That seems odd. 

Rob