Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Developing for Android 11 & 12 with Delphi 11 Alexandria

Android 11 is shipping on most new phones, but Android 12 has rolled out to Pixel devices everywhere. Join this webinar to see what has changed in these latest versions of Android and look at some best practices for Android development with tips for targeting the latest versions of the most popular operating system.

View or download Google Slides

Desktop, Mobile & Tablet Operating System Market Share Worldwide

https://gs.statcounter.com/os-market-share/desktop-mobile-tablet/worldwide/#monthly-200901-202201

Mobile Manufacturer Market Share Worldwide (Jan 2020 – Jan 2022)

https://gs.statcounter.com/vendor-market-share/mobile/worldwide/#monthly-202001-202202

Mobile Manufacturer Market Share Worldwide (Jan 2022)

https://gs.statcounter.com/vendor-market-share/mobile/worldwide/#monthly-202001-202202

Android vs iOS Market Share Worldwide (Jan 2020 – Jan 2022)

https://gs.statcounter.com/vendor-market-share/mobile/worldwide/#monthly-202001-202202

Mobile Android Version Market Share Worldwide (Jan 2020 – Jan 2022)

https://gs.statcounter.com/android-version-market-share/mobile/worldwide/#monthly-202001-202201

Mobile Android Version – Market Share Worldwide (Jan 2022)

Android 11 is the current leader (Versions 9 to 11 account for 76.4%)

  • Android 12 released Oct 4, 2021
  • Android 11 released Sept 8, 2020
  • Android 10 released Sept 3, 2019
  • Android 9 released Aug 6, 2018
  • Android 12 = API 31
  • Android 11 = API 30
  • Android 10 = API 29
  • Android 9 = API 28 (Pie)

https://gs.statcounter.com/android-version-market-share/mobile/worldwide/#monthly-202001-202201

Android Play Security & Performance Requirements

Android Changes in Delphi 11

*** – link

docwiki.embarcadero.com/RADStudio/Alexandria/en/What%27s_New

Support for Android 12?

Upgrading Existing Android Projects

● Open an Android project build with an older version.
● Navigate to the Projects dockable window.
● Select Android 32-bit as the active target platform.
● Right-click on the Libraries node.
● Click on Revert System Files to Default.
● Customize with 3rd party libraries, etc.
● Repeat for Android-64.

Updating Your Android Tools

Wireless Debugging

Android App Bundle Format

Allows Google Play to use Dynamic Delivery application servicing model to generate optimized APKs for each device.

Upon a successful app bundle generation, the IDE presents a dialog containing the .aab file path.

Note: You can not run or debug an App Bundle. To debug the application you have to use .APK package format

docwiki.embarcadero.com/RADStudio/en/Submitting_Your_Android_App_to_Google_Play#Android_App_Bundle_Support

New Android Runtime Permission Model

More information developer.android.com/training/permissions/requesting

Old Permissions Approval Dialog

New Permission Approval Dialog

Users Have Granular Permission Control Now

Dangerous vs. Normal Permissions

More information developer.android.com/guide/topics/permissions/overview

How to Ask for Permission – Delphi

More information: docwiki.embarcadero.com/RADStudio/en/Android_Permission_Model

The Permission Service

IsPermissionGranted Method

IsEveryPermissionGranted Method

RequestPermissions

TRequestPermissionsResult[Event|Proc]

When to Ask for Permissions

When to Ask – Critical Permissions

When to Ask – Secondary Permissions

Other Best Practices

More information

Next Steps

Upgrade to Delphi 11 Today and develop applications on Android 11 & 12 platforms with the use of Android App Builder Software that supports Delphi and C++ environments.

Exit mobile version