[FREE] Device 💻 - Get device info!

Version 15

InstallationFromAppStore

image

Returns the package name of the app that has installled your application.

Returns: text

IsInstalledFromPlayStore

image

Tests if the application is installed from Google Play Store.

Returns: boolean

GetNumberOfCores

image

Returns the number of processors available to the Java virtual machine.

Returns: number (int)

Thanks to @oseamiya and @HEART12!

4 Likes

Post and website updated, please contact me if you want to add additional blocks to the extension! I will add your name and blocks.

Thank you!

Very good Update!

2 Likes

Sure I will, but later.

@HEART12 just now told me that the code will be published later.

Anyways, here's version 16.

ApplicationLastUpdatedTime

image

Returns the last updated time from the given package name. The unit is milliseconds after 1970.

Returns: long

Parameters: packageName = text

DeviceId

image

Returns the device ID.

Returns: text

I will update the website and post later. Thank you!

4 Likes

This is one of the excellent updates for this extension I have eveer seen! :+1:

1 Like

Website and post now updated with new version of 16, please contact me or reply if there are any errors. Thank you!

1 Like

sometime we have the hex string like #ffffffff with transparent in format of aarrggbb

is this extension support this?

1 Like

The extension only supports hex color values.

Version 17!

DisplayScreenTimeout

image

Returns the screen timeout time of the device.

Returns: number (int)

IsHdrCapable

image

Returns whether the screen has a high dynamic rate. This only works in versions larger or Android 8.

Returns: boolean

IsScreenRound

image

Return whether the screen has a round shape. Apps may choose to change styling based on this property, such as the alignment or layout of text or informational icons.

Returns: boolean

LanguageTag

image

Returns a well-formed IETF BCP 47 language tag representing this locale.

Returns: text

I will update the post and the website later.

3 Likes

nice update @gordonlu310!

1 Like

Version 18!

Per @Developer's request, I made the following blocks. Thank you Developer!

Events

GotChargingTime

image

Triggered when finished calculating the remaining charging time. Returns -1 when an error is occured.

Parameters: time = number (long)

This was referenced by @Kumaraswamy and he gave me the permission. Thank you!

Methods

AppPackageName

image

Returns the package name of the current running application.

Returns: text

ApplicationSpecificDirectory

image

Returns an absolute path of the application specific directory.

Returns: text

GetBatteryChargingTime

image

Attempts to calculate the remaining charging time and triggers the GotChargingTime event.

IsEmulator

image

Checks if the app is operating on an emulator. This does not work on an App Inventor emulator. I used emulator examples in this Stack Overflow answer.

Returns: boolean

IsScreenWideColorGamut

image

Return whether the screen has a wide color gamut and wide color gamut rendering is supported by this device. When true, it implies the screen is colorspace aware but not necessarily color-managed. The final colors may still be changed by the screen depending on user settings.

Returns: boolean

IsSdCardAvailable

image

Checks whether the SD card is available.

Returns: boolean

I will update the main post later. Thank you!

3 Likes

Great work @gordonlu310

2 Likes

cool update! @gordonlu310
@Horizon you posted the 99th post :sweat_smile: :no_mouth:

3 Likes

Nice update @gordonlu310!

@Horizon congratulations on posting the 99th post!

@qwe_rfv congratulations on posting the 100th post!

5 Likes

Off Topic

:rofl::rofl::rofl::rofl::joy::joy:

2 Likes

It depends. What are you using it for? It is 100% free. Are you using it for any competition?

1 Like

#Off topic
Thank you thank you :rofl::rofl::rofl:

1 Like

Then what are you using it for? For most extensions (including this one), you:

  • download it free,

  • give credit and

  • add a link to this topic.

2 Likes

Congratulations on your perfect extension but also on the weekly updates :partying_face::grin::heart_eyes::star_struck::+1:

2 Likes