Oct-02-2023, 02:27 PM
Hi Guys,
I'm the founder of droidscript.org, a not-for-profit organisation with the aim of making app development easy, fast and fun for everyone, everywhere.
I'm please to announce that we've just started adding Python support to DroidScript. I hope you find this as exciting as we do, because this will allow thousands of coders, young and old, to easily create native Android apps directly on their phones and tablets using Python.
This is what a simple Python app looks like in DroidScript -
If you would like to try this out and maybe give us some feedback, then you can find a beta version of DroidScript here that supports it -
http://androidscript.org/beta/DroidScript_263b1/
You just need to enable the 'experiments' option in the About box and restart the app to see the Python templates appear in the 'New' menu.
We are making use of Brython to achieve this and the performance seems to be very good so far.
Please let me know what you think
Regards
David
I'm the founder of droidscript.org, a not-for-profit organisation with the aim of making app development easy, fast and fun for everyone, everywhere.
I'm please to announce that we've just started adding Python support to DroidScript. I hope you find this as exciting as we do, because this will allow thousands of coders, young and old, to easily create native Android apps directly on their phones and tablets using Python.
This is what a simple Python app looks like in DroidScript -
#Import the native app object. from native import app #Called when application is created. def OnStart(): #Create a layout with objects vertically centered. lay = app.CreateLayout( "linear", "VCenter,FillXY" ) #Add an image 20% of screen width. img = app.AddImage( lay, "/Sys/Img/Hello.png", 0.2 ) #Add a button 30% of screen width. btn = app.AddButton( lay, "Press Me", 0.3 ) btn.SetMargins( 0, 0.05, 0, 0 ) btn.SetOnTouch( btn_OnTouch ) #Add layout to app. app.AddLayout( lay ) #Called when user touches our button. def btn_OnTouch(): app.ShowPopup( "Hello World!" ) #Vibrate phone with a pattern (in milliseconds). #pause,vibrate,pause,vibrate... app.Vibrate( "0,100,30,100,50,300" )That's a very simple app, but you have the 'full power' of the DroidScript native framework at you disposal and can use Camera, USB, Bluetooth Serial, BLE, WiFi, Accelerometer, GPS and much more... even NodeJS!
If you would like to try this out and maybe give us some feedback, then you can find a beta version of DroidScript here that supports it -
http://androidscript.org/beta/DroidScript_263b1/
You just need to enable the 'experiments' option in the About box and restart the app to see the Python templates appear in the 'New' menu.
We are making use of Brython to achieve this and the performance seems to be very good so far.
Please let me know what you think

Regards
David