LiveCode for FM Guide Ben Lui

Testing in a Simulator

Updated on

If you do not have an Android device to test your app with, you can use an x86-64 Simulator (Emulator) instead. To do this you will need to create a simulator and have it open and running before you attempt to test from LiveCode for FM. Here's how you do this.

Install Android Studio

Download Android Studio here and install it. For the purpose of setting up a simulator you can use with LiveCode for FM, it does not matter what version of SDK you install. Note that for creating APKs it does matter and you should carefully follow the steps in this lesson. But right now, we're just looking to create a simulator.

Create a blank project

In Android Studio, create a new blank project, of any kind. It doesn't matter, you aren't going to do anything with it.

Open the ADK Manager

Click "Create Virtual Device".

Choose a device to create a simulation of.

Choose a system image you want to simulate - it must be Android 7 and above, which all of these are. I'm selecting 9, to test my app on Android 9.

When you click on "download" you will be asked to agree to the license, you need to change the radio button to accept.

The package will be installed. This will take a few minutes.

Once it has finished installing, click next, then click next again to complete installation. Finally click "Finish" on the screen below.

Open your new device

To open the device double click it in the list of virtual devices as shown above. Wait for it to fully open and load the home screen.

Setting up the device for development

You now need to go through the steps described in this lesson, to make your simulator ready for development, testing and to accept unknown apps, just as though it was a physical device. Once you have done this you are ready to use the simulator with LiveCode for FM.

Use your device in LiveCode for FM

Before you try to use the simulator on your LiveCode for FM project, make sure you are building for x86 and x86-64 devices:

 

Click "Test on your Android Device" in LCFM:

On the Select Target Device screen your emulator should now appear in the drop down menu:

Previous Article Recommended Devices
Next Article Building an App