Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to write a plain old java program that runs on android?

Tags:

java

android

I see tutorials that show you how to make a real android application with activities and all that, but all I really want to do is make a java class that has a public void static main(String params[]) { System.out.println("Hello World");} and run it with java HelloWorld on an android machine. Is that possible?

like image 642
stu Avatar asked Dec 28 '22 07:12

stu


1 Answers

There's a great app on the Android market called Terminal IDE that includes a great shell environment, vim/nano and java/javac all compiled to run natively on Android. With this you can run "normal" Java code.

like image 97
Pedantic Avatar answered Feb 07 '23 03:02

Pedantic