Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Porting a Java Console Program to Android
Started by JoePringles Jun 30 2019 10:42 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 364 posts
  • Corona SDK

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?

[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 878 posts
  • Corona SDK

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



[TOPIC: post.html]
#3

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 364 posts
  • Corona SDK

I'll try that thanks!



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]