User Tools

Site Tools


Sidebar

Privacy Policy

News

Version 2.50 is out since Jan 1st 2022


Frequently Asked Questions


Namespaces

Note for contributors

If you wish to create a new page in the DroidScript wiki, please click on the most appropriate namespace above and follow the notes for contributors there.

Because of spam, it has been necessary to add a CAPTCHA to the registration form and the save option for editing pages. You will not need to prove you are human if you are logged in, so please register.

Please feel free to improve any existing page, as well as adding new pages to increase the sum of public knowledge about DroidScript.

Formatting Syntax

getting_started:wifi_ide

This is an old revision of the document!


Using uploaded images

The images that you upload with the Wifi IDE get saved inside the folder of your current AdroidScript program, in the folder “Img”.

So for example to access an image called “MyImage.png” that you uploaded to the Images folder you should use the code:

imgMyImage = app.CreateImage( "Img/MyImage.png" );

App Icon

If the image has exactly the same name as the app, it will be used as the app icon

e.g. if your script is called “MyApp” the icon should be “MyApp.png”.

That's the same whether your app is a .js or .html based app.

(Chris Hopkin on Google Group…)

If you want to change your App icon, you will need to copy a .png image file to your App's Img assets folder. The name of the image file should be the same as your App name, e.g.

/sdcard/DroidScript/MyApp/Img/MyApp.png

The easiest way to do this is from the assets tab in the Wifi IDE -

http://wiki.droidscript.me.uk/doku.php?id=getting_started:wifi_ide#using_uploaded_images

(Steve Garman on Google Group…)

DroidScript needs to make versions of your launcher icon in several sizes. http://stackoverflow.com/questions/12768128/android-launcher-icon-size

I recommend including a png 192 pixels square so it will scale well.

You will also need a version 512 px square if to upload to Google Play, if relevant.

You might be interested in these guidlines as well http://android-developers.blogspot.co.uk/2013/07/making-beautiful-android-app-icons.html?m=1

getting_started/wifi_ide.1519481938.txt.gz · Last modified: 2018/02/24 22:18 (external edit)