Original Author Paul Laughton, 2011
Page 22
De Re BASIC!
Sensors.read sensor_type_nexp, p1_nvar, p2_nvar, p3_nvar ......................................................... 197
Sensors.close ..................................................................................................................................... 197
System ....................................................................................................................................................... 197
System Commands ................................................................................................................................ 198
System.open...................................................................................................................................... 198
System.write <sexp> ......................................................................................................................... 198
System.read.ready <nvar> ................................................................................................................ 198
System.read.line <svar> .................................................................................................................... 198
System.close...................................................................................................................................... 198
Superuser Commands ........................................................................................................................... 198
Su.open ............................................................................................................................................. 198
Su.write <sexp> ................................................................................................................................. 198
Su.read.ready <nvar> ........................................................................................................................ 198
Su.read.line <svar> ............................................................................................................................ 198
Su.close ............................................................................................................................................. 199
App Commands ..................................................................................................................................... 199
App.broadcast <action_sexp>, <data_uri_sexp>, <package_sexp>, <component_sexp>,
<mime_type_sexp>, <categories_sexp>, <extras_bptr_nexp>, <flags_nexp> ................................. 199
App.start <action_sexp>, <data_uri_sexp>, <package_sexp>, <component_sexp>,
<mime_type_sexp>, <categories_sexp>, <extras_bptr_nexp>, <flags_nexp> ................................. 199
Appendix A ­ Command List ..................................................................................................................... 201
Appendix B ­ Sample Programs ................................................................................................................ 213
Appendix C ­ Launcher Shortcut Tutorial ................................................................................................. 214
Introduction .......................................................................................................................................... 214
How to Make a Shortcut Application (older versions of Android--prior to Android 4.0) .................... 214
How to Make a Shortcut Application (newer versions of Android--Android 4.0 and later) ................ 215
What you need to know ....................................................................................................................... 216
Appendix D ­ Building a Standalone Application ...................................................................................... 217
Introduction .......................................................................................................................................... 217
License Information .............................................................................................................................. 217
Before You Start .................................................................................................................................... 217
Setting Up the Development Environment........................................................................................... 217