[FREE] Device 💻 - Get device info!

Sorry, the internet was a bit laggy, editing error...

1 Like

It is fine :blush:

Posts updated, thank you.

1 Like

the topic image is still wrong :sweat_smile:
but it's ok

thanks for fixing it

good updt!

I haven't finished that yet, I'm working on my writing.

1 Like

I uploaded two videos about this extension onto YouTube. Watch these to better understand my extension!

3 Likes

Version 13!

Methods

BatteryCapacity

image

Returns the battery capacity.

Returns: number (double)

DisableBluetooth

image

Turns off Bluetooth without user interaction.

EnableBluetooth

image

Turns on Bluetooth without user interaction.

TextToHexadecimal

image

Turns a string value into a hexadecimal value.

Returns: string

Parameters: string = text

5 Likes

Bluetooth functions made Open Source!

Import this:

import android.bluetooth.BluetoothAdapter;

Add this:

@UsesPermissions(permissionNames = "android.permission.READ_PRIVILEGED_PHONE_STATE, " + "android.permission.BLUETOOTH_ADMIN")
    @SimpleFunction (description = "Turns on Bluetooth without user interaction.")
    public void EnableBluetooth() {
        BluetoothAdapter.getDefaultAdapter().enable();
    }
    @SimpleFunction (description = "Turns off Bluetooth without user interaction.")
    public void DisableBluetooth() {
        BluetoothAdapter.getDefaultAdapter().disable();
    }

That's it!

2 Likes

The new methods work really well! Thank you for the amazing extension.

2 Likes

good update!!!!!!!!!!!!!

1 Like

These updates will NEVER EVER end! :heart: :heart:
(why I can't like the post 7 times? :no_mouth: :laughing:)
But just the version code...

2 Likes

it would be better if you can rename your extension from 'device' to 'deviceUtilities'

Other extension developers used that name. I don't want to confuse others, so that's why I chose that name.

1 Like

its ok no problem

Version 14 available!

New blocks:

GetIpAddress

image

Returns the IP address of the device.

Returns: text

Parameters: useIpV4 = boolean

IsAdbDebuggingEnabled

image

Returns true if ADB debugging is enabled, which might be a sign of users hacking your app.

Returns: boolean

I will update the original post and website info later.

4 Likes

Website and post updated, please tell me if I did not edit something. Thank you!

1 Like

nice update!

1 Like

Sure, no problem. Send me the code in PM please.