Mobile Celestia for Android

The place to discuss creating, porting and modifying Celestia's source code.
mario.schinder
Posts: 7
Joined: 06.12.2020
Age: 43
With us: 1 month 14 days
Location: Miami

Post #81by mario.schinder » 07.12.2020, 10:49

The main problem to migrate it to Android is, most of the software is written in C++, and there is a not easy and direct way to translate software from C++ to Java... so I guess that the amount of work is tremendous, maybe it is better to write it from scratch and maybe that code could be used to replace the current C++ one... otherwise... it does not look easy job to be done

Topic author
Markerz
Developer
Posts: 217
Joined: 29.01.2009
Age: 25
With us: 11 years 11 months
Location: Suzhou, China

Post #82by Markerz » 07.12.2020, 14:30

mario.schinder wrote:maybe it is better to write it from scratch
well only if the original developers would do that.

Android apps can call C++ codes with JNI, and this is how this app uses the existing code, it uses a Java shim to call into the C++ code. The difficult part was getting it to work and render the first scenes, once it is done, it is just like any other mobile app, how to build a good UI and interaction model, etc.

Since it is already out there, you are more than welcome to try it from the play market.

mario.schinder
Posts: 7
Joined: 06.12.2020
Age: 43
With us: 1 month 14 days
Location: Miami

Post #83by mario.schinder » 07.12.2020, 14:59

really?! good to know I will try that, and actually I did not know that was a wrapper that allows Java to interact with C++ software... thanks! :)


Return to “Development”

Who is online