AaronRPI
Posts: 30
Joined: Thu May 02, 2019 11:32 am

Java code into android app

Sat Jul 27, 2019 11:35 pm

Ok,I have a raspberry pi 3 B+ with java installed(1.8). How do I create an app (an animal simulator) on my pi and move it to my android tablet and play it??? Also, how would I play it on my rpi as a game like minecraft without the terminal?

All help is highly appreciated!
"I will go anywhere as long as it is forward" David Livingstone

Andyroo

Re: Java code into android app

Sun Jul 28, 2019 12:12 am

You have a long job ahead and I’m not sure how much a free support forum can help in teaching you programming.

I would start https://developer.android.com/guide to learn how to code Apps

Then the second issue you have is that the Linux dev SDK is 64 bit only so will not run on Raspbian https://developer.android.com/studio#downloads

This means you have to install Gentoo I think and even then it may not work as it could be compiled for x86 chip set.

Failing that, you could try a progressive web app (PWA) - basic info is https://www.raspberrypi.org/magpi/devel ... pberry-pi/

AaronRPI
Posts: 30
Joined: Thu May 02, 2019 11:32 am

Re: Java code into android app

Sun Jul 28, 2019 12:36 am

For now, i do not need the code for the app, all i want is to know how to play on my android an app created on my pi. Also, is there any way i can copy an app off my android and read the code on my pi?
"I will go anywhere as long as it is forward" David Livingstone

Andyroo

Re: Java code into android app

Sun Jul 28, 2019 12:51 am

That’s where the SDK comes in. It takes the Java code, packages up the Android bytecode with the manifest, resources, assets etc and creates the PAK file.

Technically, Android does not run compiled Java (bytecode) as such as the APIs are different in Androidsee here hence the development environment.

You may find it easier to root your phone and install Java on it but that’s way outside this forums remit.
You may do best to ask this on Android / your phones support system as it’s more Android than Pi.

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Java code into android app

Sun Jul 28, 2019 7:34 pm

Take a look at this. I haven't had time to try it but I think it is exactly what you are looking for.

https://gluonhq.com/products/mobile/javafxports/

Return to “Troubleshooting”