Android SDK for Delphi 11.2 Alexandria

The Android SDK is an optional feature in the Delphi installation. Now if you did not select it in the install, you can add it later using the Tools – Manage Platforms menu in the Delphi IDE. If you do that, then you should also check the Eclipse Temurin OpenJDK 11 (Hotspot) JVM, for the Java bits the Android SDK needs.

If you forgot that, no worries, the Delphi IDE has an automatic feature to detect missing Android SDK files. So if you start an Android project and then hit compile you will get a question from the Delphi IDE “Would you like to update the platforms SDK now?” Just click yes and it will then download the Android SDK for you and you can just continue.

Would you like to update the platforms SDK now?But occasionally the install process of Delphi fails to download some of the required Android SDK files from Google. There are many reasons for this, sometimes the Google servers are down or there is a conflict with an existing Android SDK. You can easily confirm issues using the Delphi SDK Manager, that you can open through the Tools – Options menu. Under the Deployment branch you’ll find the SDK Manager.

Android SDK manager fro Delphi 11.2The missing folders are indicated with yellow danger signs next to them. In this case we are missing

  • build-tools 32.0.0
  • platform-tools
  • platforms android-32

The solution here is to open an administrative command prompt and navigate to the Android SDK advmanager.bat folder as you can see in the SDK manager screen:


CD "C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\cmdline-tools\latest\bin"

In that folder we need to use the sdkmanager.bat file to download and install the missing items.


sdkmanager "build-tools;32.0.0"
sdkmanager "platform-tools"
sdkmanager "platforms;android-32"

You can also list all the available items that you can download and install in from Google.


sdkmanager --list

More information on the sdkmanager can be found on the android developer website: https://developer.android.com/studio/command-line/sdkmanager

That should fix it all up!

As a sidenote; with the newer Windows 10 and 11 versions the Android ADB driver comes pre-installed, and you just have to enable developer mode and connect your Android device with an USB cable to get Windows to install the Android Debug Bridge driver.

Delphi (H)Appy Hour – 24 augustus 2021

Delphi Happy Hour juichende ontwikkelaarAltijd al eens een Android App willen maken?

In deze korte demo op 24 augustus 2021 om 16:00 uur neem ik je mee in de wereld van app ontwikkeling met Delphi. Aan de hand van een heldere nederlandstalige demo zie je hoe eenvoudig dit is met Delphi. Met een paar stappen configureer je Delphi en je laptop en voor je het weet staat je eerste cross-platform app op je telefoon. Je kunt tijdens de demo mee ontwikkelen, zodat je ook zelf je eigen app op je telefoon hebt. Vragen? Die kun je tijdens de sessie via de chat stellen zodat je direct je antwoord hebt.

In Delphi ontwikkel je trouwens voor iOS, Android, Windows en Mac vanuit één broncode, dus exact diezelfde app kun je ook daar installeren.

Schrijf je hier in voor deze Zoom sesie samen met Barnsten : https://www.barnsten.com/nl/delphi-happy-hour/

Online Delphi FireMonkey en Android Power training – 4 en 5 maart 2021

Altijd al een App willen maken in Delphi? Schrijf je dan nog deze maand in voor de online Delphi FireMonkey en Android Power training.

In de eerste dag, op 4 maart, behandelen we het FireMonkey framework. De aanpassingen ten opzichte van het VCL framework en de best use scenario’s voor het maken van een nieuwe FireMonkey desktop application. Denk aan visualisatie, het gebruik van livebindings (loose coupling) en asynchrone execution om de GUI snel en responsive te houden.

In de tweede dag, op 5 maart, gaan we over naar mobile development. Een deel van de training is algemeen voor Delphi mobile App development, met als focus Android development. Hiervoor is een voor Delphi development geschikt Android device noodzakelijk, zie hier voor de requirements. Download ook eventueel vooraf aan de training de benodigde USB debug drivers voor je Android device. In de training behandelen we mobile templates, local storage, maar ook web services en interactie met Java en het nieuwe permissions framework van Android.

De training kan gevolgd worden met Delphi 10.4 Professional of Community Edition. Voor Android 11 compatibility raden we de laatste versie aan van Delphi 10.4. In een klein deel van de training is er een keuze tussen Delphi 10.4 Enterprise code of Delphi 10.4 Professional code.

De training zelf doen we online in Microsoft Teams. Je kunt deelnemen vanuit een web browser (Edge of Chrome), maar je kunt ook de Microsoft Teams client installeren voor meer mogelijkheden. Tijdens de training is ook 1 op 1 overleg met de trainer mogelijk. Delen van video is gezellig, maar uiteraard niet verplicht. Verder ontvangt u per post een hardcopy van het trainingsmateriaal.

Inschrijven kan tot en met 28 februari:
https://www.barnsten.com/nl/product-categorie/embarcadero-tools-nl/trainingen-nl/

Coderage 2018 – Building Microservices and Progressive Web Apps (PWA) with Delphi

Thank you for attending my Coderage 2018 session on Building Microservices and Progressive Web Apps (PWA) with Delphi and TMS WebCore.

If you want to replay the session, please visit the Coderage 2018 page on Embarcadero Academy.

Please find the download with source and slides here:
Download source and slides
The download has been compressed with RAR with password coderage2018
and has the following SHA-256 checksum
19cb86c5d401c55fe347a6adca1ed79f9dec4f7167e62d3f064e4cc617aa90aa

Have fun creating your own REST microservices and PWA‘s!

Note: with newer versons of TMS WebCore you may need to change two lines of code in the file UnitJSONHelper.pas.


Weblib.REST, Weblib.JSON;


lArray := lJSONObject.GetJSONValue('result');

Additionally the no longer needed WebRunner lines in the Project file TheCounterWeb.dpr should be automatically removed when you open the project, if not remove them manually.

Get your App in the Google Play store before August 1, 2018

Google is changing its requirements for the target SDK API level. Starting from August 1st any new app uploaded to the Play Store must target API level 26 (Android 8.0). If you have an existing app in the Play Store you’ll have some more time, as updates to the app must only meet this same requirement on November 1st.

This means that if you are currently developing a new Delphi Android App you should consider uploading it into the Play Store before August 1st. Why? The current version of Delphi uses a target SDK of API level 14. If you upload your new app now, this buys you some time until November 1st to become API level 26 compliant with an app update.

I’m working on an API level 26 issue right now, where I’m extending the JContext of Delphi with some of the new API level 26 features for starting a foreground service. This is needed to comply with the new background execution limits introduced in Oreo. This works quite well, and does not require a lot of code.

If you can not upload your app to the Play Store before August 1st, then this blog post from Dave at Delphi Worlds may help you further. It changes some of the Delphi code to achieve (partial) API level 26 compliance.

Delphi 10 Tokyo Update and Firemonkey-Android Power training March-2018

On March 8th and 9th we have the Delphi 10 Tokyo Firemonkey and Android Power training planned in Etten-Leur in the Netherlands. In just two days you will learn how to develop an Android App in Delphi, with high level features in the GUI down to high tech stuff when interacting with the Java side. This training is available in both English and Dutch. Registration can be found here.

A week after, on March 15th and 16th, we have the Delphi 10 Tokyo Update training in our agenda. As one of the previous attendees told me a couple of weeks after attending this training “I’ve learned so many new things in these two days; I especially liked the (PPL) TTasks chapter”. This one is only available in Dutch, registration can be found here. Note: due to a conflict in planning with an on-site training this open training has been moved to April 19th and 20th.

Delphi 10.1 Berlin Firemonkey en Android Training

Op donderdag 24 en vrijdag 25 november is er een Delphi 10.1 Berlin Firemonkey en Android training.

Ben je al ervaren in Delphi met de VCL, maar wil je verder met multi-platform (OSX, iOS, Android) dan is deze combinatie FireMonkey Power en Android App training misschien iets voor jou. Leer in 2 dagen het FireMonkey framework en Android app development kennen.

Meer info vindt je hier:

Delphi 10.1 Berlin FireMonkey en Android

En inschrijven kan via Barnsten:

https://www.barnsten.com/nl/development-tools/training/delphi-android-training

Best Delphi Android development device

What is the best phone or tablet to use when developing Delphi apps for Android?
This is a recurring question on conferences and workshops. My short answer is “any of the Google Nexus phones or tablets”. These are Google’s developer devices with special features.

Please note that the choice of devices for end-users of the app you write in Delphi just about spans the entire Android market, and is in no way limited to Nexus or Pixel devices. You can basically run Delphi Android apps on almost any modern Android device; more about that later.

The best Delphi Android development device should have the following characteristics:

The Nexus / Pixel line of devices supports all of the above, whilst also pushing ahead with the latest hardware features.

Continue reading here: Best Delphi Android development device

Delphi 10 Seattle training begin 2016

Nieuwsgierig geworden naar Delphi 10 Seattle en je wilt ermee beginnen? Dan is de Delphi 10 Seattle VCL Essentials training op 27, 28 en 29 januari misschien iets voor jou. In 3 dagen leer je als ontwikkelaar Delphi kennen en gebruiken.

Ben je al ervaren in Delphi met de VCL, maar wil je verder met multi-platform (OSX, iOS, Android) dan is de combinatie FireMonkey Power en Android App training op 17 en 18 februari misschien iets voor jou. Leer in 2 dagen het FireMonkey framework en Android app development kennen.

Op 3 maart in Edegem (België) top je dan je kennis af met het Delphi praktikum voor ervaren Delphi ontwikkelaars. Mobile app do’s en don’ts, een stukje parallel coding en de benodigde REST based servers als backend. Een complete set aan kennis voor Delphi developers.

En heb je nog Delphi projecten die je over wilt zetten naar Delphi 10 Seattle, dan is de Unicode en BDE Migratie training wellicht interessant. Hierin code snippets voor effectieve Unicode omzetting en introductie van tools voor de BDE Migratie. Deze training is gepland op 11 maart.

Details en inschrijving via: http://www.barnsten.com/nl/events/details?events_id=188

Delphi 10 Seattle Trainingen in November

Nieuwsgierig geworden naar Delphi 10 Seattle en je wilt ermee beginnen? Ga dan naar de Delphi 10 Seattle VCL Essentials training op 4, 5 en 6 november. Details en inschrijving via: http://www.barnsten.com/nl/events/details?events_id=169

Ben je al ervaren in Delphi, maar wil je verder met FireMonkey en Android App ontwikkeling, dan is de FIreMonkey/Android Power training iets voor jou, op 19 en 20 november. Details en inschrijving via: http://www.barnsten.com/nl/events/details?events_id=168