[FREE] Device 💻 - Get device info!

One of the greatest and useful updates I have ever seen @Gordon_Lu! :heart:

2 Likes

Due to the fact that many of the blocks only support versions > API 20, in the next version I'll make the minimum API to 21. Sorry for users who use phones older than that :disappointed_relieved:.

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
1 Like

Version 20!

Minumim API level: 21

Thanks to @Salman_Dev for this release, I took great inspiration from his StatusBarTools extension. His extension has additional features in handling status bars, remember to check that out!

IsSmsCapable

image

Returns true if the current device supports SMS service.

Returns: boolean

SetStatusBarColor

image

Resets the status bar color to the given color.

Parameters: color = color

SetStatusBarColorDefault

image

Sets the status bar color to the default color of the application or transparent. (Remember that the status bar color of the App Inventor Companion is dark green.)

SimCountryIso

image

Returns the ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.

Returns: text

SimOperator

image

Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.

Returns: text

SimOperatorName

image

Returns the Service Provider Name (SPN).

Returns: text

6 Likes

NICE UPDATE!

EDIT: please no judging as my caps lock was somehow on

2 Likes

@TIMAI2 Can you unlist this for a while? I think I have some bugs going on.

Sorry that I tagged you.

EDIT: Now it's OK, sorry for the inconveniences.

version 20 updated (still version 20):

  • Fixed minor bugs,

  • Installed AndroidX support and Proguard.

Even though Proguard is installed, there is still a chance that hackers will successfully decompile the extension. Please don't do that.

4 Likes

Version 21!

  • Added InstalledApplications and SetNavigationBarColor blocks.

  • Added an AIA file for you to test.

Customizer.aia (62.3 KB) to deal with colors of the device.

  • Updated first post.

Happy Chinese New Year to everyone!

7 Likes

working on google pixel 5 emulator and @Gordon_Lu's xiaomi 5g 11 ne lite. both are android 11.

3 Likes

GOOD UPDATE @Gordon_Lu!

2 Likes

Bravo!

:clap: :clap: :clap:

3 Likes

gordon, please add these items to the test list:

  • Google Pixel 5 Emulator (Android 11, API 30)

  • Google Pixel 4 Emulator (Android 10, API 29)

2 Likes

Added, thank you.

P.S.: I just tested, and the extension is working in Kodular.

1 Like

Will you not make any updates anymore @Gordon_Lu?

1 Like

I didn't decide to make any new updates yet.

3 Likes

Create extension to check:
isAutomaticDateTime = True/False
isAutomaticTimeZone = True/False please...
:pray::pray::pray::blush::blush::blush:

4 Likes

Thank you Ronald!

5 Likes

image

It is better to rename it to 'IsDarkModeActive' because it makes more sense :slight_smile:

3 Likes

Really? Is it returning this?

1 Like

Yes it is returning this

1 Like

No, they are different. Dark mode is the theme, the whole UI is a darker color, while night mode is turning the screen dimmer and the do not disturb mode.

The key difference between night mode and dark mode is while dark mode switches the UI background to a darker shade along with any corresponding colour scheme flips, night mode changes the colour being emitted by the screen to a warmer colour.

Taken from here.

They are completely different, @qwe_rfv and @AyProductions. Treat them as 2 different functions. Please read the documentation first.

4 Likes

So you can add an IsDarkModeActive block as you

1 Like