Original Author Paul Laughton, 2011
Page 135
De Re BASIC!
Decrypt <pw_sexp>, <encrypted_sexp>, <decrypted_svar>
Decrypts the encrypted string <encrypted_sexp> using the password <pw_sexp>. The result is placed in
<decrypted_svar>.
The password parameter is optional, but its comma is required. Omitting the password is the same as
using an empty string, "".
If the source string cannot be decoded with the specified password, the result is an empty string ("").
You can call the GETERROR$() function to get an error message.
This command is the same as DECODE$("ENCRYPT", <pw_sexp>, <source_sexp>).
Ringer
Android devices support three ringtone modes:
Value:
Meaning:
Behavior
0
Silent
Ringer is silent and does not vibrate
1
Vibrate
Ringer is silent but vibrates
2
Normal
Ringer may be audible and may vibrate
"Normal" behavior depends on other device settings set by the user.
Ringer volume is an integer number from zero to a device-dependent maximum. If the volume is zero
the ringer is silent.
NOTE: These are system settings. Any change you make persists after your program ends. You may want
to record the original settings and change them back when the program exits.
Ringer.get.mode <nvar>
Returns the current ringtone mode in the numeric variable.
Ringer.set.mode <nexp>
Changes the ringtone mode to the specified value. If the value is not a valid mode, the device mode is
not changed.
Ringer.get.volume <vol_nvar> { , <max_nvar> }
Returns the ringer volume level in the numeric variable. Returns the maximum volume settting in
<max_nvar>, if <max_nvar> is present.
Ringer.set.volume <nexp>
Changes the ringer volume to the specified value. If the value is less than zero, volume is set to zero. If
the value is greater than the device-specific maximum, the volume is set to the maximum level.