[Free] Device Manager

GetManufacturer()

  • Description: Returns the manufacturer of the device.
  • Block: Retrieves and returns the device manufacturer name.

blo1


GetModel()

  • Description: Returns the model of the device.
  • Block: Retrieves and returns the device model name.

blo2


GetAndroidVersion()

  • Description: Returns the Android version running on the device.
  • Block: Retrieves and returns the Android version installed on the device.

blo3


WriteToFile(String fileName, String text)

  • Description: Writes text to a file in the device’s external storage.
  • Block: Writes specified text content to a file with the provided file name on the device’s external storage.

blo4


ReadFromFile(String fileName)

  • Description: Reads text from a file in the device’s external storage.
  • Block: Reads text content from a specified file name located in the device’s external storage.

blo5


GetRequest(String url, String responseHandler)

  • Description: Performs a GET request to a specified URL and handles the response asynchronously.
  • Block: Initiates a network request to the specified URL and handles the response data asynchronously.

blo6


Download :- io.bbl.devicetools.devicemanager.aix (9.3 KB)

2 Likes

Methods for writing files, reading files and sending a GET request in a device manager extension? Does this make sense?

Usually we use this definition for external storage Some basics on Android storage system

External Storage
The root directory of the External Storage is:

/storage/emulated/0/  or
file:///mnt/sdcard/ or
file:///storage/emulated/0/ 

Are you using the same definition? And does this method provide the same functionality as the AppendToFIle method from the file component? File - Kodular Docs

Does this method provide the same functiomality as the Get method from the web component?
But how do you get the result? Isn’t there an event missing?

Taifun

1 Like

Yes u are right that there is no need for GET request but I just want to try it as this is my first try to make that and it is working.

& Yes you can use these directories which are mentioned below or you can just import that file in media and you can use it directly

/storage/emulated/0/ or
file:///mnt/sdcard/ or
file:///storage/emulated/0/