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/06/07 17:50] gamecreator [Sample programs] |
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. \\ | ||
+ | [[App Update]] - Check if an update for the app is available\\ | ||
[[Torch]] - This is a simple flashlight app. \\ | [[Torch]] - This is a simple flashlight app. \\ | ||
[[Volume Box]] - You can view and adjust volume on your device\\ | [[Volume Box]] - You can view and adjust volume on your device\\ | ||
Line 7: | Line 223: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
+ | [[dateDiff|Date Difference]] Displays the difference between two dates as Years, months days\\ | ||
[[dialogbox|Dialogbox]] - Sample how to create a simple Dialog\\ | [[dialogbox|Dialogbox]] - Sample how to create a simple Dialog\\ | ||
[[sample_code: | [[sample_code: | ||
- | [[sample_code: | + | [[sample_code: |
[[sample_code: | [[sample_code: | ||
[[extra_keys|Extra Keys]] - Help! It's really difficult to get to the curly braces on my keyboard!\\ | [[extra_keys|Extra Keys]] - Help! It's really difficult to get to the curly braces on my keyboard!\\ | ||
Line 21: | Line 238: | ||
[[sample_code: | [[sample_code: | ||
[[https:// | [[https:// | ||
+ | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
Line 38: | Line 256: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
+ | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
[[sample_code: | [[sample_code: | ||
Line 49: | 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 63: | 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 | ||
+ | |||
---- | ---- | ||