Retrieve Device Build Information in Sketchware
To retrieve Build information about the device we can use the android.os.Build class.
1. Create a new project in Sketchware.
2. In VIEW area add a TextView for each parameter to be retrieved. We can retrieve Device, Model, Product, Manufacturer, Brand, API level, Board, Bootloader, Display, Fingerprint, Hardware, Host, and Id.
3. Add following String variables: device, model, product, manufacturer, brand, api_level, board, boot, display, fingerprint, hardware, host, and id.
4. In onCreate event use add source directly block and put following code.
device = android.os.Build.DEVICE;
model = android.os.Build.MODEL;
product = android.os.Build.PRODUCT;
manufacturer = android.os.Build.MANUFACTURER;
brand = android.os.Build.BRAND;
api_level = android.os.Build.VERSION.SDK;
board = android.os.Build.BOARD;
boot = android.os.Build.BOOTLOADER;
display = android.os.Build.DISPLAY;
fingerprint = android.os.Build.FINGERPRINT;
hardware = android.os.Build.HARDWARE;
host = android.os.Build.HOST;
id = android.os.Build.ID;
5. After that set the text of TextViews using the String variables.
6. Save and run the project. The app will display information about the current build, extracted from system properties.
1. Create a new project in Sketchware.
2. In VIEW area add a TextView for each parameter to be retrieved. We can retrieve Device, Model, Product, Manufacturer, Brand, API level, Board, Bootloader, Display, Fingerprint, Hardware, Host, and Id.
3. Add following String variables: device, model, product, manufacturer, brand, api_level, board, boot, display, fingerprint, hardware, host, and id.
4. In onCreate event use add source directly block and put following code.
device = android.os.Build.DEVICE;
model = android.os.Build.MODEL;
product = android.os.Build.PRODUCT;
manufacturer = android.os.Build.MANUFACTURER;
brand = android.os.Build.BRAND;
api_level = android.os.Build.VERSION.SDK;
board = android.os.Build.BOARD;
boot = android.os.Build.BOOTLOADER;
display = android.os.Build.DISPLAY;
fingerprint = android.os.Build.FINGERPRINT;
hardware = android.os.Build.HARDWARE;
host = android.os.Build.HOST;
id = android.os.Build.ID;
5. After that set the text of TextViews using the String variables.
6. Save and run the project. The app will display information about the current build, extracted from system properties.
I success
ReplyDeleteHow to display data from sqlite db in skechware
ReplyDeletehow about mac address?
ReplyDeletePlease create an app for number verification
ReplyDeleteI want to create an app that notify me whenever there is an app launched. Can you please help me or give me some resources to work with.
ReplyDelete