You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more
Is there a easy way or is it Java/C#/kotlin all the way?
My kids know a small amount of Python/JavaScript/html/CSS but all online tutes point me towards the Android SDK and the 'hard' languages above.
Son has written a Viz style sentence translator program in Python and wants to run it on his phone.
Alternative option; host the Python code on something like Google app engine and write a small HTML+CSS front end for it. Then it can be used on any device.
If they are into have java script then quasar frame work is worth a look but.. it requires you to learn vie framework to some extent and takes some knowledge of single page applications as well as a fair amount of install.
So no.
If they're in to JavaScript then I'd recommend Flutter.
It uses Dart, which is very similar to JS. The discussion will go on from here for a very long time, but you now have some options to research 👍
So yes 😁
If you're building Android apps then you'll need to create an .apk file. I googled "python to apk" and it'd seem that what you need is Kivy.
https://realpython.com/mobile-app-kivy-python/
With respect @cougar, it's a little-known framework and at his level he won't find the support that he needs should he run in to problems.
You could do as @geuben says, potentially using Firebase in place of App Engine (or even the various lambda options). But that depends on the back-end requirements. App Engine in itself can be a leap for beginners.
I suspect that the data on which the app relies can be stored within the app itself. It seems like a relatively simple mapping (without meaning to sound derogatory, I'm far older than your son)!
If that's the case then a compile-to-native framework using native UI elements will let him build something nice looking, to be proud of. Hence Flutter.
I'm not a Flutter evangelist, I've written corporate apps using many frameworks and native languages. I simply believe that it's the best for this application; Dart is easy to pick up if you know JavaScript and will teach him some good habits along the way 👍
With respect @cougar, it’s a little-known framework and at his level he won’t find the support that he needs should he run in to problems.
Fair enough. I know little about it beyond 30 seconds' Googling, I was just suggesting that Python > api might be a starting point. If there's better ways of doing it, I'll shut up and go away. (-:
😁 How many ways are there to skin a cat?
Heh, I'm reminded of Perl from years ago here.
Perl's strapline: "There's more than one way to do it."
ActivePerl for Windows' rather more unofficial strapline: "There's more than one way to do it, which is just as well because most of those ways don't work."
Hes 11y so not really very far into it yet. And I know bugger all about modern programming so solution needs to be simple.
Yea - the all the data is hard coded into the program. Basically it takes in some input, string/list manipulation then spits out something schoolboys of all ages would find amusing.
@Geuben
How would a python function work with HTML? My daughter has rewritten it in JS and it gets/sets values in the dom. How would you handle I/O with a Python function? I need to spend some time on google for this.
@EyesTwice
I'll check out flutter with him after school.
Its gonna be a long learning road.
Have you checked out react native? https://reactnative.dev/ it creates android and ios apps from one app, uses Javascript, and it's components are described in a way which will feel familiar if you've used html. I've not used it but it is very popular. You won't get the latest android SDK features, or the most Android looking and feeling app, for that you'll have to go native Java/Kotlin, but it might be a route for you to get an app built using familiar concepts and languages.
I think if you can learn JS and Python, you can learn Java/Kotlin, but there are some things you might not have come across before, and it'll take a bit of time. I think Kotlin is a great language, and enjoyable to code in.
Happy coding!
You would write your HTML page with the input form and have it submit the data to a particular URL, behind that URL is your Python program, probably running a web framework like Flask or Django. That framework takes care of a lot of the web request handling stuff and allows you to do the processing of the data sent and form a response.
This is obviously totally overkill for something like this, particularly if it's already been rewritten in JS, however knowledge of how to create web APIs in Python is good knowledge to have.
React Native would certainly be the best option for you.
https://reactnative.dev/
It uses 100% javascript, and is a very well supported and popular framework. This means that there will be ample documentation and tutorials to help your kids get started. The resulting app will run natively on Android (and iOS if that is of any interest).
Ionic has been OK for the past few years
Angular / js / html based
https://ionicframework.com/
Seems to make a resonablly quick app - although mine have all been text - not games etc..