I created this extension because I needed a few methods that are not in the built-in blocks.
Blocks:
This block turns on Bluetooth without user interaction.
This block turns off Bluetooth without user interaction.
This block checks whether the location service is enabled. Returns true or false.
Useful when using the BLE extension.
This block changes the text string to Hexadecimal data. For example, "App Inventor" will turn into "41707020496E76656E746F72" and "" will turn into "F09F9888".
This block changes the Hexadecimal data to text string. Reverses the operation of the previous block.
This block adds zero leading to text or numbers. "length" specifies the length of the text along with leading zers. For example, string "24E1F0" with lenght 10, will turn into "000024E1F0".
This block converts a integer positive decimal number to a hexadecimal number. "length" specifies the length of the output number along with leading zers. For example, string "2458" with lenght 8, will turn into "0000099A".
Extension:
com.extension.ToolsForAI2.aix (8.8 KB)
A project showing how blocks work:
extension_test_app.aia (198.4 KB)