Hello. First, the admission: I know nothing about programming. Thus, I'm perhaps wasting my time. However, I figure when nothing is ventured then nothing can be gained. Also, please forgive me if some of my terminology (word usage) is incorrect. Some interpretation may be required when reading my post here.
Some background: I bought an old
Galaxy Nexus a while back. It had Android 4 on it. I duckduckgo searched, and discovered how to install LineageOS 13 on it (equivalent to Android 6.0.1). Official support then ended for the Galaxy Nexus from LineageOS, and so I learned how to create new unofficial
builds for it to keep it as up-to-date as possible. I quite like this phone, though it's limited given that it only has one gig of RAM. I set it up without GAPPS, as I am trying to limit my exposure to entities like Google who, I feel, are simply monitoring and manipulating me for ad revenues (
1). So, for that phone, I rely upon
F-Droid.
At F-Droid, I found two applications that I quite like, one being
OsmAnd~ and the other being
GTFSOffline. The first allows for offline location mapping and directions, and the second allows a user to discover bus route and stop information for transit lines when offline. The reason offline is important to me is I can't afford the high cost of data (and also I'd rather not have to rely on online services such as Google to tap into such information).
I recently bought an
LG Nexus 5 phone, which has two gigs of RAM. This too is an old phone, though newer than my Galaxy Nexus. This phone is compatible with the
Ubuntu Touch OS, which I installed upon it.
I like Ubuntu Touch, given that it allows for Linux command-line programs to be installed via APT in the phone's terminal. Android apps do not work in it, though there is an emulator, in the same vein as
WINE, called Anbox. Like WINE, it works so-so. It did not work with either of the above applications that I cited. And there are not a huge amount of native Ubuntu Touch apps available (though the basic apps, like the phone, browser, media player, and camera, work well).
So, I hope to learn how I can rewrite GTFSOffline for Ubuntu Touch (I'm optimistic that a current mapping app,
Pure Maps, that's available for Ubuntu Touch will, in the next couple of months, be developed with offline capabilities, so I'm not worried about OsmAnd~ for the time being).
Here is the
source for GTFSOffline. It seems to be mostly java.
Here's the documentation for Ubuntu Touch apps:
http://docs.ubports.com/en/latest/appdev/index.html
I followed some of that documentation, and, via
Clickable and
Qt Creator, did produce some very basic apps (IE, one being "Hello World"). I just wonder if it might be possible to somehow take the source from the Android app (the java files) and compile them into an Ubuntu Touch program, perhaps using Qt Creator within a template that has been created by the Clickable program. Or perhaps via some other method? Or perhaps it's simply not possible?