User Tools

Site Tools


Privacy Policy


Version 2.50 is out since Jan 1st 2022

Frequently Asked Questions


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


This is an old revision of the document!

(Android) IDE - How To

This is a brief intro to the IDE on Android with emphasis on how to perform specific tasks.

Creating a new Project/App
After installing the DroidScipt app on your Android device you will see a screen like this.

To create a new App/Project, touch the 3 vertical dots toward the top-right, and choose New from the drop-down.
Type in your project/app name, and choose Native or HTML (Native apps start with javascript, HTML apps start with HTML).
Other options in the drop-down are Plugins (which extend the capabilities of DroidScript), Settings (including your language, font-size in the editor), News (about DroidScript), Premium (paid for capabilities), SDK (create your own plugins), About (version, links to Discussion Group, Twitter, Facebook, and Privacy Policy).

Opening an existing App/Project
Long Touch on the icon for the app. From the pop-up choose Edit.
Other options in the pop-up are Rename, Copy, Delete, Create Shortcut, Share SPK, Save SPK, Build APK.
SPK is your source code, additional files and images.
An APK is a compiled version of your app that can be installed on other devices, and put on sites like Google Play.
We recommend backing up your work by choosing Save SPK and sending a copy to your email or Drive (etc).

To exit from Edit, touch the Android Back icon (bottom left).
To exit DroidScript, do the same.

Running your code
You can run your code from the main screen by a short touch.
Or from the editor by touching the arrow icon near the bottom-right.
Or the insect icon near the middle-bottom will run with debug display.

Other icons on the main screen
The book icon opens the DroidScript Documentation (includes Tutorials, link to Forum, Release notes, and WebSite), Introduction, Reference (includes all the Objects and Classes with Examples), Resources (official and unofficial wesites), Material UI (Premium), Game Engine, Music, Plugins, Extensions (Terminal, Language, Scratchpad, Search, FileDiff, Chat).
The Rocket icon (top-right) gives access to Samples and Store.
Samples and Store (and Examples in the Reference) allow code to be copied and/or run.

Editing your code
See above for description of the top row of icons.
Touch within the code window to bring up the YoYo cursor and on-screen keyboard.
You can simply type code in (the Smart Editor can display suggestions and auto-complete).
Double touch the YoYo to bring up the ToolBox which has icons for
Select (to select part of your code), Select All, Copy, Cut, Paste, and Beautify. Double touch the YoYo to hide the Toolbox.
You can touch within your code to move the YoYo cursor, or touch and drag the YoYo.

Search and Replace
Touch the magnifying glass icon on the grey bar to search/replace.
Touch the Search For box and type in text to find, then the down-arrow to search forwards.
To search backwardss use the up-arrow icon.
You can touch the Replace With box and type in replacement text, then touch the double arrow icon to replace once, or the asterisk to replace all.

Undo/Redo, Run, Debug\ The bottom row of icons (on a black background) includes
Undo (on the left) and Redo (on the right).
Also toward the right are Run and Debug (mentioned earlier).

Second form the left near the bottom is the File icon. Touch it to or add a file to the App.
Type in a filename, and choose Script/Class/Text/HTML/CSS/JSON form the drop-down.
To switch which file yoiu are editing touch the file name at the top of the screen.
non-Premium members are restricted to 3 files per project.
To use additional javascript files then your main file should include app.Script(“filename.js”).
To view assets and add assets (Images, etc) to your app, touch the 3rd icon form the left on the bottom bar.
Touch the + icon to add Assets.

If the YoYo toolbox is closed then you will see an icon with 3 horizontal lines on the right of the grey bar.
Touch that icon to see the javascript/typing toolbox, which allows you to add a function template, and to type special characters.
Touch the right-arrow icon on the right of the grey bar to close the javascript/typing toolbox. If the YoYo and javaascript/typing toolbox are closed then the smart editor can show a list of objects/methods to choose from.
If your cursor is pointing at an object or method name then the grey bar will show the parameters. Touching in the grey bar will show the reference page for the object/method.

getting_started/android_ide_how_to.1620744567.txt.gz · Last modified: 2021/05/11 14:49 by al4he6