This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sample_code:start [2016/07/23 10:12] titus [Battery Level App] |
sample_code:start [2018/12/30 13:55] 182.1.60.113 [Sample DroidScript Code] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Sample DroidScript Code====== | + | <Type Name=" |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <format type=" | ||
+ | |||
+ | ## Remarks | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | ## Version Considerations | ||
+ | In the .NET Framework 1.0 and 1.1, you could catch a < | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | > [!NOTE] | ||
+ | > Applying the < | ||
+ | |||
+ | If your app hosts the common language runtime (CLR), it can specify that the CLR should unload the application domain where the stack overflow exception occurs and let the corresponding process continue. For more information, | ||
+ | |||
+ | | ||
+ | </ | ||
+ | < | ||
+ | <related type=" | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <Member MemberName=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <format type=" | ||
+ | |||
+ | ## Remarks | ||
+ | The following table shows the initial property values for an instance of < | ||
+ | |||
+ | |Property|Value| | ||
+ | |--------------|-----------| | ||
+ | |< | ||
+ | |< | ||
+ | |||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | <Member MemberName=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | <param name=" | ||
+ | < | ||
+ | < | ||
+ | <format type=" | ||
+ | |||
+ | ## Remarks | ||
+ | The following table shows the initial property values for an instance of < | ||
+ | |||
+ | |Property|Value| | ||
+ | |--------------|-----------| | ||
+ | |< | ||
+ | |< | ||
+ | |||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | <Member MemberName=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | <param name=" | ||
+ | <param name=" | ||
+ | < | ||
+ | < | ||
+ | <format type=" | ||
+ | |||
+ | ## Remarks | ||
+ | An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the < | ||
+ | |||
+ | The following table shows the initial property values for an instance of < | ||
+ | |||
+ | |Property|Value| | ||
+ | |--------------|-----------| | ||
+ | |< | ||
+ | |< | ||
+ | |||
+ | | ||
+ | </ | ||
+ | < | ||
+ | <related type=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
====Sample programs==== | ====Sample programs==== | ||
+ | [[Dice]]- This is a simple dice game. \\ | ||
+ | [[Digital Clock]]- Shows Time and date. | ||
+ | \\ | ||
+ | [[DroidScript Console]]- Similar to command prompt in Windows. \\ | ||
+ | [[Filter]]- This sample shows how to filter items in a list. \\ | ||
[[Battery Level]]- Shows Battery Level. \\ | [[Battery Level]]- Shows Battery Level. \\ | ||
[[App Update]] - Check if an update for the app is available\\ | [[App Update]] - Check if an update for the app is available\\ | ||
Line 24: | Line 238: | ||
[[sample_code: | [[sample_code: | ||
[[https:// | [[https:// | ||
+ | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
Line 41: | Line 256: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
+ | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
Line 52: | Line 268: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
+ | [[inputbox|Dialog for user input]] Get a string from the user\\ | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
Line 66: | Line 282: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
+ | [[sample_code: | ||
+ | ---- | ||
+ | |||
+ | ====Samples on the forum==== | ||
+ | [[forum_sample_links|Links to samples]] on the official DroidScript forum | ||
+ | |||
---- | ---- | ||