Skip to content
Droidscript
Share
Explore
Droidscript v2

Overview

This is an introduction to Droidscript. I created a File Manager, and the code is available below.
Video
Loading…
File Manager Code
cfg.Light;

function OnStart()
{
app.EnableBackKey( false )
lay = app.CreateLayout( "Linear", "FillXY" );
path = "/storage/emulated/0";
home = app.ListFolder( path );
list = app.AddList( lay, home );
list.SetOnTouch( listing );
app.AddLayout( lay );
}

function listing(params)
{
path += "/" + params
home = app.ListFolder( path )
list.SetList( home )
}

function OnBack()
{
if(path == "/storage/emulated/0"){
app.Exit( true );
}
split = path.split("/");
split.pop();
path = split.join("/");
home = app.ListFolder( path )
list.SetList( home )
}

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.