DroidScript Documentation is ready

1,129 views
Skip to first unread message

Symbroson

unread,
Sep 7, 2019, 9:10:24 AM9/7/19
to DroidScript
 Hi Folks,

I can finally announce that the DroidScript documentation is ready. Took me long enough.
This documentation is going to be included in one of the following beta releases - look forward to it :)

I have shared some more infos in the beta forum: https://groups.google.com/forum/#!topic/droidscriptbeta/CqpbNNp-IYQ

If you want to take a look please join the beta forum.
I specifically need some people to report any spelling mistakes, bad formulations, missing or even wrong information etc.
I'm also open for any feedback and/or further improvement suggestions.

Thanks in advance :)

fython

unread,
Sep 7, 2019, 10:45:34 AM9/7/19
to DroidScript
How do I join the beta forum?

Symbroson

unread,
Sep 7, 2019, 10:53:17 AM9/7/19
to DroidScript
Send a request to sup...@droidscript.org that you want to join beta

samkm

unread,
Sep 8, 2019, 5:47:22 PM9/8/19
to DroidScript
Oh this is awesome! Love Droidscript so much but it's like feeling around in the dark sometimes the way it is, thanks for taking the time to do this, looking forward to the update ^_^

Ignas Bukys

unread,
Sep 19, 2019, 7:43:16 AM9/19/19
to DroidScript
Idea: What about making documentation more open-source? I mean share on github so anyone could contribute and easily register issues about incorrect instructions?
Or maybe there are some things why this cannot be done and I do not see...

Symbroson

unread,
Sep 19, 2019, 9:10:49 AM9/19/19
to DroidScript
The docs are open source. The links are shared in the beta forum.

Readme for contributors: https://github.com/DroidScript/Docs/blob/master/files/README.md (will be updated later today)

Justin blAblA

unread,
Sep 19, 2019, 9:14:59 AM9/19/19
to DroidScript
you can find the github here:
https://github.com/alex-Symbroson/Docs

Ignas Bukys

unread,
Sep 20, 2019, 2:42:42 AM9/20/19
to DroidScript
Thanks for the links. Glad to see progress on documentation

Munawar Hussain

unread,
Jul 2, 2020, 12:10:56 PM7/2/20
to DroidScript
Hello everyone.

Is there a way to get pdf to print or printed book ?

Allah (God) creator of whole universe, please protect us and cure us. Aameen.

Thank you

Symbroson

unread,
Jul 2, 2020, 12:54:58 PM7/2/20
to DroidScript
Please create a new thread if you have a question which is not directly related to the current topic.

Also you might have good intentions but this is not the appropriate place for religious statements. Please refrain from doing that in the future.

ReJo Lu

unread,
Sep 22, 2021, 7:26:30 AM9/22/21
to DroidScript
I'm newbie, using only HTML. I just wanted to ask on how to change icon in making html app..plse answer my question, plss😃

Isinulat ni Symbroson noong Biyernes, Hulyo 3, 2020 nang 12:54:58 AM UTC+8:

Alan Hendry

unread,
Sep 22, 2021, 10:40:47 AM9/22/21
to DroidScript
Hi,

When I open the DocsPreview app, then Update lets me choose Beta.
(Release Notes then includes 211b).
Might be worth including instructions on how to get DocsPreview in this thread.

Uri2Path has UriPath in the heading, and the Example is actually to Catch App Errors

Some options are well documented (like CreateImage>Options>NoPlay)
and some aren't (like CreateImage>Options>fix).

Reference>Premium doesn't include AddCodeEdit, CreateCloud, CreatePlayStore, CreateWizard, GA.

Regards, ah

Alan Hendry

unread,
Sep 24, 2021, 12:28:36 PM9/24/21
to DroidScript
On 
SendIntent has a link  
  You can find some common used examples for that in the DroidScript Wiki
Which goes to 
with error
  This site can’t be reached
Should probably be 

Alan Hendry

unread,
Oct 3, 2021, 1:25:43 PM10/3/21
to DroidScript
Hi,

CreateCustomTabs has a link
See the plugin documentation for details
that goes to 
with error 404 (page not found)

says " I added a new method called app.RealPath()" is that in the new docs?

Many pages have tooltip/popups like String: url path, and clicking on the word String goes to 
Page Not found (404)

mentions SetIconTouch for  MUI.CreateTEOutlineIconRight (and Left)

Regards, ah

Alan Hendry

unread,
Oct 6, 2021, 6:48:28 AM10/6/21
to DroidScript
Hi,

Forgot to mention that the 404 error from clicking String is on the online docs.

    DroidScript will soon support Add*** methods in calling the controls.
Not sure what version of DS that'll be in (or when it should be added to the docs).

Regards, ah

Alan Hendry

unread,
Oct 8, 2021, 5:56:28 AM10/8/21
to DroidScript
Hi,
 there's a link for Music that goes to 
Page Not Found (404)
Regards, ah

Alan Hendry

unread,
Oct 11, 2021, 6:57:26 PM10/11/21
to DroidScript
Hi,
GetPosition actually returns left,top width,height
(not left,top,right,bottom)
Probably applies to a whole bunch of objects.
Regards. ah

Alan Hendry

unread,
Oct 15, 2021, 7:08:34 AM10/15/21
to DroidScript
HI,
SmartEdit for AddDrawer shows a 4th parameter for grab handle width.
Doesn't seem to be in the docs.
Not sure if it should be a number 0 to 1 or a number of pixels.
I did a quick test and it doesn't seem to work (for 0.2 or 20).
Regards, ah

Alan Hendry

unread,
Oct 16, 2021, 12:32:01 PM10/16/21
to DroidScript
HI,

Many objects have GetHeight and GetAbsHeight (ditto for Width)
I presume that one includes the margin, and the other doesn't.
Could the docs have more detail?

I don't see Create/Add/Simulate Scroll(er) under UI Control or Layouts (only under All).
CreatePlayStore doesn't seem to be in Premium. Neither does CreateWizard

Add/Remove Layout/Drawer are on the Layout page and UI Control, 
but other objects/methods are on the Layout only.

Regards, ah

Alan Hendry

unread,
Oct 19, 2021, 12:00:10 PM10/19/21
to DroidScript
Hi,
Minor inconsistency
   file.WriteText( "Hello", "Chars" ); // note s on end of Chars
but tooltip on WriteText type has 
String: UTFBytes or Char
ReadText type also has 
String: UTFLine or Char
And not sure I understand Writedata data tooltip
String: “FA,FB,FC” or “250,251,252” or abc46
Regards, ah

Alan Hendry

unread,
Oct 22, 2021, 7:28:59 AM10/22/21
to DroidScript
Hi,
When OnTouch for  CreateTEOutlineIconRight and  CreateTEOutlineIconLeft are added 
then they'd need documenting.
Regards, ah

Angel Nganut

unread,
Oct 23, 2021, 7:21:43 AM10/23/21
to DroidScript
hello please reply to my topic. i modify your script but not working. Thanks

Alan Hendry

unread,
Oct 24, 2021, 10:15:44 AM10/24/21
to DroidScript
Hi,
In the docs, CreateListDialog has an option "?" but there's no tooltip explaining what it does.
Two very minor points - 
ShowTip has only one option (Down) but the tooltip says "comma separated"
Similarly for ShowProgressBar (only option is "Light")
Regards, ah

Alan Hendry

unread,
Oct 24, 2021, 10:17:29 AM10/24/21
to DroidScript
Hi,
ShowCheckList has option "sun-moon" but no tooltip to explain it.
Regards, ah

Alan Hendry

unread,
Nov 9, 2021, 11:14:56 AM11/9/21
to DroidScript
HI,
Documentation of Layout has SetTextSize, should be SetChildTextSize
Regards, ah

Alan Hendry

unread,
Nov 20, 2021, 12:50:54 PM11/20/21
to DroidScript

Alan Hendry

unread,
Nov 30, 2021, 4:38:03 PM11/30/21
to DroidScript
HI,
has a popup for parameter type that has ExtSDCard twice
Not sure what quotes/apostrophes should be in usb parameter
String: comma “,” separated: “Camera” or ExtSDcard or “Network” or “Storage” or “Overlay” or “SMS” or ExtSDcard or “Location” or “Calendar” or “Body” or “Contacts” or “Record” or “Phone” or “Biometric” or “Accounts” or “License” or usb:"<pid>"”
Regards, ah

wheelie tips

unread,
Dec 6, 2021, 11:59:49 AM12/6/21
to DroidScript
Docs MUI.png

Alan Hendry

unread,
Dec 6, 2021, 3:59:03 PM12/6/21
to DroidScript
HI,
has a link  plugin documentation that goes to 404 error

Also CreateTabs docs has option as NoArgins (only) but Example has VCenter
Regards, ah

Steve Garman

unread,
Dec 7, 2021, 6:25:40 AM12/7/21
to DroidScript
Re tabs:
   Fade and NoMargins are options used by the main tabs container

   but options are also passed to each tab
     app.CreateLayout( "Linear", "FillXY,"+options )
   so you can use anything that is compatible with a linear layout that makes sense
 
Fade may be still in beta, I'm not sure

Alan Hendry

unread,
Dec 7, 2021, 7:22:08 AM12/7/21
to DroidScript
HI,
Smart Edit doesn't recognize non-MUI tabs (neither tabs. nor tab1.).
And they don't cope with change of orientation very well.
Try starting the Basic Example in Portrait, then swap to Landscape (heading off top of screen);
or run in Landscape and rotate (left and right go off screen). 
I made tabs global, changed the second tab to tab2 and the third to tab3,
Added an OnConfig to SetSize for tabs (0.9) tab1/2/3 (0.8), somewhat better.
MUI TabFixed example doesn't rotate very well either.
Regards, ah

Alan Hendry

unread,
Dec 12, 2021, 1:59:07 PM12/12/21
to DroidScript
HI,

Example - Play Notificatinop

https://symdstools.github.io/Docs/docs/app/CreateNotification.htm
SetOnNotify > callback > type pops up String: "Normal" or "?"
(Not sure if it actually returns a question mark, and what that would mean).

Example has "you can undone this process" (should be undo)

Regards, ah

Alan Hendry

unread,
Dec 13, 2021, 6:42:10 AM12/13/21
to DroidScript
HI,
Minor typo on Layout > SetOnChildChange pop-up has 
" Defines a callback function which is called when the content of a child control has beed changed by the user."
Should be "been"
Regards, ah

wheelie tips

unread,
Dec 14, 2021, 12:56:40 AM12/14/21
to DroidScript
docs>samples>

Icon Buttons



running sample crash:
"Script Error: Unexpected token 'break', Line 39, Icon_Buttons.js"

should add ";" at each case:

function btns_OnTouch()
{
    switch( this.icon )
    {
        case "[fa-undo]": edit.Undo(); break;
        case "[fa-repeat]": edit.Redo(); break;
        case "[fa-search]": alert("Todo!"); break;
       
        case "[fa-file]":
            edit.SetText( app.ReadFile( "/sdcard/testfile.txt" ) );
            break;
        case "[fa-save]":
            app.WriteFile( "/sdcard/testfile.txt", edit.GetText() ) ;
            break;
    }
}

Alan Hendry

unread,
Dec 17, 2021, 7:27:15 AM12/17/21
to DroidScript
HI,
has a link to a list of SDK 28 broadcast actions
For SDK 30 it should probably go to

wheelie tips

unread,
Dec 17, 2021, 2:33:21 PM12/17/21
to DroidScript
CreateList>SetItemColor( title, newColor ) missing backClr as third parameter.

Alan Hendry

unread,
Dec 18, 2021, 1:10:56 PM12/18/21
to DroidScript
HI,
Could you add this somewhere (on the drawer open/close pages, and/or App Events)?
function OnDrawer( side, state )
state can be "Open" (when drawer is opened) or "Closed"
side can be "Left" or "Right"
Regards, ah

Alan Hendry

unread,
Dec 28, 2021, 6:52:52 AM12/28/21
to DroidScript
HI,
lst.SetColumnWidths doesn't seem to be in the docs
lst.SetDescription doesn't seem to be documented either.
Regards, ah

Alan Hendry

unread,
Dec 28, 2021, 3:36:00 PM12/28/21
to DroidScript
HI,

In the codeviewer app there's a line
      thisedt.SetSelection(pos, pos + sought.length)
doesn't document SetSelection

edt.SetTextColor( "#ff6666ff" );
which doesn't appear in the list of methods

Regards, ah

Alan Hendry

unread,
Dec 28, 2021, 3:52:03 PM12/28/21
to DroidScript
HI,
pop-up for SetCursorPos includes the "word" curernt (should be current)
Regards, ah

Dave

unread,
Jan 1, 2022, 2:19:29 PM1/1/22
to DroidScript
The docs describe card layouts as being like Linear layouts, but they are actually like Frame layouts.

Frank Hoods

unread,
Jan 1, 2022, 2:37:50 PM1/1/22
to DroidScript

beta forum link doesn't work

On Saturday, September 7, 2019 at 2:10:24 PM UTC+1 Symbroson wrote:
 Hi Folks,

I can finally announce that the DroidScript documentation is ready. Took me long enough.
This documentation is going to be included in one of the following beta releases - look forward to it :)

I have shared some more infos in the beta forum: https://groups.google.com/forum/#!topic/droidscriptbeta/CqpbNNp-IYQ

If you want to take a look please join the beta forum.
I specifically need some people to report any spelling mistakes, bad formulations, missing or even wrong information etc.
I'm also open for any feedback and/or further improvement suggestions.

Thanks in advance :)

Alan Hendry

unread,
Jan 1, 2022, 2:55:25 PM1/1/22
to DroidScript
HI,
You have to ask for access to the  Beta Forum 
Send an email to sup...@droidscript.org
support[at]droidscript[dot]org requesting an invitation to the beta forum
(2.50 has gone live today)
Regards, ah
Message has been deleted

Symbroson

unread,
Jan 21, 2022, 11:46:54 AM1/21/22
to DroidScript
Hi folks,

I finally updated the docs and hopefully addressed all the issues posted here.
Please keep up reporting docs issues and suggestions here as it helps out a ton!

Theres a new section with best practices in the introduction which also addresses performance points made in previous posts

thanks and best regards,
Alex

Alan Hendry

unread,
Jan 21, 2022, 3:33:48 PM1/21/22
to DroidScript
HI,
For Best  Practices ...
I frequently use SetChildMargins and SetChildTextSize on a Layout 
to avoid doing it for every control (directly) inside the Layout.
Before disabling debug and creating the production release, 
it's a good idea to check if debug shows any errors 
(either by touching  the bug icon, or looking at the WiFi IDE debug window).
cfg.Node seems to speed up MUI lists.
Regards, ah

Alan Hendry

unread,
Jan 22, 2022, 3:41:47 PM1/22/22
to DroidScript
HI,
Minor typo "becuase" on
If an app has mainly black  backgrounds and/or white text then cfg.Dark,
or conversely cfg.Light.
(I see that lay.setChildMargins/TextSize are already mentioned, 
not sure if I missed them, or it's already been modified).
Thanks, ah

Alan Hendry

unread,
Jan 22, 2022, 4:07:14 PM1/22/22
to DroidScript
HI,

25 Mar 2021, 08:12:42 There was a post
I discovered that the actual syntax for the Create list command is:
        app.CreateList(list,width, height, options, delimiter)
Doesn't seem to been altered on

14 Oct 2020, 14:10:34 There was a post (among others)
that seems to use an array on  CreateList (may also apply to AddList and lst.SetList), 
var Name = ['Jhon', ...,'James']; 
...
 lst = app.CreateList( Name, -1, -1,"Center"); 
Regards, ah

Alan Hendry

unread,
Jan 24, 2022, 8:02:22 AM1/24/22
to DroidScript
HI,
Might be an idea to add notes for the best practice in reporting problems
(be clear / specific, include some code, add a screenshot, version of DS and Android)
Regards, ah

Alan Hendry

unread,
Jan 24, 2022, 9:00:40 AM1/24/22
to DroidScript
HI,
A warning to avoid arrow functions could avoid problems for users who build their app with obfuscate.
app.GetOptions is documented as possibly returning Game and noDom (not sure if the latter is x-version)
Does it have other values from cfg statements? (MUI, Node, Dark, Light, ...).
Regards, ah

Steve Garman

unread,
Jan 24, 2022, 9:50:00 AM1/24/22
to DroidScript
As far as I know arrow functions are no longer a problem for the obfuscator
However the advice is to not use them for callback s, especially if they may require the this keyword

Alan Hendry

unread,
Feb 25, 2022, 6:45:32 AM2/25/22
to DroidScript
HI,
If a user uninstalls DS then Android 10+ will delete all their projects/apps.
As well as suggesting backups
you could advise them to install fixes and new versions "on top of" their current version
(and not uninstall DS).
Regards, ah
Reply all
Reply to author
Forward
0 new messages