DroidScript : app module

The droidscript app module consists of the following 'modules':

  1. app.AddLayout (layout);
  2. app.Alert (text, title);
  3. app.CreateAudioRecorder ();
  4. app.CreateButton (text, width, height, options);
  5. app.CreateCameraView (width, height, options);
  6. app.CreateCheckBox (text);
  7. app.CreateDownloader ();
  8. app.CreateGLView (width, height, options);
  9. app.CreateImage (file, width, height, options);
  10. app.CreateLayout (type, options);
  11. app.CreateList (list, width, height, options);
  12. app.CreateListDialog (title, list, options);
  13. app.CreateListView (list, title, options);
  14. app.CreateLocator (Provider);
  15. app.CreateMediaPlayer ();
  16. app.CreateNotification (options);
  17. app.CreateScroller (width, height, options);
  18. app.CreateSensor (type, options);
  19. app.CreateSeekBar (width, height);
  20. app.CreateSpeechRec ();
  21. app.CreateSpinner (list, width, height, options);
  22. app.CreateText (text, width, height, options);
  23. app.CreateTextEdit (text, width, height, options);
  24. app.CreateVideoView (width, height, options);
  25. app.CreateToggle (text, width, height, options);
  26. app.CreateWebView (width, height );
  27. app.DeleteFile (fileName);
  28. app.DeleteFolder (folderName);
  29. app.EnableBackKey (enable);
  30. app.FileExists (fileName);
  31. app.FolderExists (fileName);
  32. app.GetAppName ();
  33. app.GetAppPath ();
  34. app.GetClipboardText (text);
  35. app.GetDefaultOrientation ();
  36. app.GetDisplayHeight ();
  37. app.GetDisplayWidth ();
  38. app.GetExternalFolder ();
  39. app.GetIPAddress ();
  40. app.GetJoystickName (joyNum);
  41. app.GetJoystickState (joyNum, keyName);
  42. app.GetLastButton ();
  43. app.GetLastImage ();
  44. app.GetLastToggle ();
  45. app.GetMacAddress ();
  46. app.GetModel ();
  47. app.GetOrientation ();
  48. app.GetOSVersion ();
  49. app.GetPrivateFolder (name);
  50. app.GetRotation ();
  51. app.GetScreenDensity ();
  52. app.GetScreenHeight ();
  53. app.GetScreenWidth ();
  54. app.GetUser ();
  55. app.HideProgress ();
  56. app.IsTablet ();
  57. app.IsBluetoothOn ();
  58. app.IsScreenOn ();
  59. app.ListFolder (path, filter);
  60. app.LoadText (valueName, default, id);
  61. app.LoadNumber (valueName, default, id);
  62. app.LoadBoolean (valueName, default, id);
  63. app.MakeFolder (path);
  64. app.OpenFile (fileName, type, prompt);
  65. app.OpenUrl (url);
  66. app.ReadFile (fileName);
  67. app.RemoveLayout (layout);
  68. app.RenameFile (fileName, newFileName);
  69. app.RenameFolder (folderName, newFolderName);
  70. app.SaveNumber (valueName, value, id);
  71. app.SaveBoolean (valueName, value, id);
  72. app.PreventScreenLock (prevent);
  73. app.SaveText (valueName, value, id);
  74. app.SendMail (address, subject, body, attachment);
  75. app.SetClipboardText (text);
  76. app.SetMenu (menuList);
  77. app.SetOrientation (orientation);
  78. app.SetScreenBrightness (brightness);
  79. app.SetScreenMode (mode);
  80. app.ShowPopup (text, options);
  81. app.ShowProgress (text);
  82. app.TextToSpeech (text, pitch, speed);
  83. app.Vibrate (pattern);
  84. app.WriteFile (fileName, text, mode);
That is over 80 predefined functions. It is as if the DOS software INT 21h is ported to Android but now in a controlled and highlevel way. And no need to enter cryptical lines in the top of the source like
#include stdio.h
No, you just get started. Need a sound recorder? Just open it. Need a movie player? It's already there. Just add it in place. is this programming? No, it's scripting. But it helps if you know about serious programming.

Page created 25 August, 2016 and