Jump to content
FreeDelphiPascal

How do I create an Android simulator under Delphi 11.3 ?

Recommended Posts

Posted (edited)

All tutorials for Delphi 10.4 show how to create an emulator using a GUI program called sdk manager.exe / avd manager.exe.
Under Delphi 11 (SDK-2525-22.0.48361) that program is not there anymore.

 

Related links:

 

Not about emulators:

 

About Emulators, for Delphi, but for Delphi 10.4:

 

Not about Delphi. Recommends installing Android Studio, but I am afraid that it will screw up my current SDK which was difficult to setup:

 

Official documentation (obsolete). Cannot find its D11 equivalent:

https://www.embarcadero.com/starthere/xe7/mobdevsetup/android/en/creating_an_android_emulator.html

Edited by FreeDelphiPascal
  • Like 1

Share this post


Link to post
Just now, FreeDelphiPascal said:

Under Delphi 11 (SDK-2525-22.0.48361) that program is not there anymore.

Those executables have been removed from the SDK - now you need to use either the command line tool, or install Android Studio and use the Virtual Device Manager.

 

Note that running emulators on Windows can be horrendously slow. You're way better off using a real device.

  • Like 1

Share this post


Link to post
Posted (edited)
Just now, Dave Nottage said:

Note that running emulators on Windows can be horrendously slow. You're way better off using a real device.

I have a AMD Ryzen (I'm an AMD fan since 1995) at 4.7GHz. Do you think it is still too slow?

Edited by FreeDelphiPascal

Share this post


Link to post
5 hours ago, FreeDelphiPascal said:

I have a AMD Ryzen (I'm an AMD fan since 1995) at 4.7GHz. Do you think it is still too slow?

Yup

  • Like 1

Share this post


Link to post
9 hours ago, FreeDelphiPascal said:

Do you think it is still too slow?

Most likely. The only bearable way I have found of using an Android emulator is to have a Mac with a silicon chip (e.g. M1, M2 etc), and run Arm64 emulators on it. Delphi can communicate with them using the relevant adb commands, along with a secure shell client such as PuTTY, all of which I describe in this video.

  • Like 3

Share this post


Link to post

How about using a good Android emulator, like Nox or Mumu?
Lately I use Mumu to play games and works sometimes better then on real device (Razor Phone 2)

Share this post


Link to post
On 3/2/2025 at 9:16 AM, Dave Nottage said:

Those executables have been removed from the SDK - now you need to use either the command line tool, or install Android Studio and use the Virtual Device Manager.

 

Note that running emulators on Windows can be horrendously slow. You're way better off using a real device.

I have installed Android studio and get the emulator running. How to get the Delphi linked to it? With the real device, the problem is I cannot run in debug mode. Cannot trace the code. Don't know where the problem is . Anyone has any idea? thanks 

Share this post


Link to post
On 5/9/2025 at 7:36 PM, Tang said:

How to get the Delphi linked to it?

If the emulator is running on the same machine as Delphi, it should appear in the list under the Target node, which is under the Android platform nodes in Project Manager in Delphi.

On 5/9/2025 at 7:36 PM, Tang said:

the problem is I cannot run in debug mode

What is the actual issue you are having?

Share this post


Link to post

When I debug the android app, after pressing F9, it cannot run in debug mode. Don't know where the bug is in the app. 

Share this post


Link to post
18 minutes ago, Tang said:

When I debug the android app, after pressing F9, it cannot run in debug mode

It does not enter debug mode at all, or it does not stop at breakpoints? Does the app crash perhaps, before the debugger has a chance to attach to the process?

19 minutes ago, Tang said:

Don't know where the bug is in the app. 

How does the bug manifest itself? i.e. are there any error messages? Does the app start?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×