ok thanks Lu
Sadly this DeviceInfo extension is discontinued on Kodular community. I will try to implement the blocks there to here.
EDIT: I found the download link, no need to implement.
Version 19!
Big thanks to @oseamiya.
IsNightModeActive
Checks if the night mode of the device is on.
Returns: boolean
Supported32BitAbis
Returns a list of 32 bit ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.
Returns: list
Supported64BitAbis
Returns a list of 64 bit ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.
Returns: list
SupportedAbis
Returns a list of ABIs supported by this device. The most preferred ABI is the first element in the list. Requires Android 5 or higher.
Returns: list
Time
The time at which the build was produced, given in milliseconds since the UNIX epoch.
Returns: number (long)
BTW: Website and OP updated.
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 .
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
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
Returns true if the current device supports SMS service.
Returns: boolean
SetStatusBarColor
Resets the status bar color to the given color.
Parameters: color = color
SetStatusBarColorDefault
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
Returns the ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.
Returns: text
SimOperator
Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.
Returns: text
SimOperatorName
Returns the Service Provider Name (SPN).
Returns: text
NICE UPDATE!
EDIT: please no judging as my caps lock was somehow on
@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.
Version 21!
-
Added
InstalledApplications
andSetNavigationBarColor
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!
working on google pixel 5 emulator and @gordonlu310's xiaomi 5g 11 ne lite. both are android 11.
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)
Added, thank you.
P.S.: I just tested, and the extension is working in Kodular.
I didn't decide to make any new updates yet.
Create extension to check:
isAutomaticDateTime = True/False
isAutomaticTimeZone = True/False please...
Thank you Ronald!
It is better to rename it to 'IsDarkModeActive' because it makes more sense
Really? Is it returning this?