Table of Contents

DroidScript v1.42

Announcement by Dave Smart 2nd December 2016

Hi Guys,

It's been a while but we have finally got a new version for you. Yay! This one has Tons of great new functionality, most notably the following things:-

Sliding Drawers

You can now easily create professional looking apps by adding drag out menus and slide out panels with only a few lines of code. We've added a sample to demonstrate this called 'Drawer Menu'. There is also a new template available in the Wifi editor for creating this type of app. When combined with the FAB buttons in the UIExtras plugin you can easily create apps with the look and feel of Google Hangouts or Gmail.

Asset chooser

Although we recommend using the WiFi editor for 'serious' development with DroidScript, for those of you that don't have access to a Laptop or PC, we have now added an asset manager to the on-device editor, so you can more easily add pictures, videos and music files to your apps.

Downloadable Demos

Checkout the new 'Demos' menu in the app. This allows those without the WiFi editor to get at the downloadable demo SPKs which is a growing list of showcase apps that really demonstrate the power and capabilities of DroidScript. If you want to see your name up there and show off to your friends or future employers, then write a really cool demo and submit it to us for inclusion. Check out the recent submission from AlexF called 'Tankerous' (there's more to come from this talented young coder too:)

Download Manager and File Chooser

You can now make use of Android's built-in download manger by kicking off downloads that will be handled in the notification tray by the Android system, using the new app.DownloadFile() method. Also, you can now allow users to browse and choose local files using the nice built-in file chooser provided by Android using the app.ChooseFile() method. Check out the 'Choose' sample for a demo of this (this sample also shows how to choose contacts).

App Templates

For premium users, we have now provided a set of starting templates which are a suitable starting point for building professional quality apps, including the following types:-

Basic - The basic hello sample you already know. Background Service - A template for creating background services, the corresponding foreground app with communication between them. Web Server - A basic web server template that supports web sockets and bi-directional communication between client(s) and server. Multi-page with Menu Drawer - Designed for phones, provides starting point for apps with an action bar, drag-out menu and Material theme. Information Kiosk - Designed for Tablets, provides a skeleton kiosk type app suitable for information kiosks and industrial control panels

The 'Web Server' template gives you a good starting point for creating web servers out of Android devices and demonstrates fast web socket communications too. This sample would be a good starting point for building multi-player games or embedded IOT hubs, home automation and custom security systems.

We will be creating more templates for the next version of DroidScript, so let us know what you want.

Other

There's absolutely loads of new features in this release including:- optional enhanced obfuscation, a new dark editor theme, new documentation for custom dialogs, web server and services, support for user extensions in Wifi editor, anonymous functions in callbacks, controls can now be enabled and disabled (greyed out), USB serial apps can now use our built-in packet collection with SetSplitMode, premium users can use SetKioskMode to block out Android system menus on KitKat and Lollipop tablets, your apps can now receive multiple file types using a new build.json file setting, margins and padding units can now be set using 'px','sp','dip','mm','pt', list controls can now be set to horizontal mode so that they look more like grids, the new Sys.In() and Sys.Err() methods allow terminal style access to the underlying Linux OS.

Phew!, that's been a lot of work… and there's even more, just check out the long list at the bottom of this post.

Special thanks go to Steve Garman and 'Chris Topher' for helping me to debug and improve this release.

This new version should appear in the next couple of hours on Google Play. If you simply can wait, then you can get it directly here:- http://androidscript.org/apk

ALERT: This version contains a breaking change: You must now call dlg.Show() to show ListDialogs, YesNoDialogs and ListViews. Here are the changes since 1.34:-

Have fun!

Regards David