Skip to main content

Android Studio Setup

MiniPay is an Android app.

In order to test and view dApps when building on MiniPay you might not have an Android device, this is when you can use an Android Emulator!

In this guide, you will learn how you can setup an Android Simulator to test MiniPay dApps!

Installing Android Studio

  1. Visit https://developer.android.com/studio and download Android Studio.

download android studio

  1. Select according to your OS and Mac version.

mac version

  1. Add it to your Applications (if you are on Mac) and perform the setup.

If asked for Android Simulator, tick it!

add to applications

  1. On succesful setup this is how your UI for Android Studio will look like.

android studio first screen

  1. Click the three dots on right top corner and open "Virtual Device Manager".

open virtual device manager

  1. The Device Manager will show all the existing available devices and you can add a new one by clicking the + button

add virtual device

  1. Add "Pixel 4" that has the Play Store icon and click "Next".

add device with play store icon

  1. Select the "Tiramisu" system image that will run inside the device you selected and click "Next".

select system image

  1. You can edit the AVD name in this step, the AVD name is used to launch the device from the terminal.

Keep the orientation as Potrait for development purposes.

You can now click "Finish"!

avd config

  1. You should now be able to see the device in the "Device Manager"!

You can use the Play button to start the device!

start the device

  1. On successful launch you should see the device!
Open MiniPay dApp test page

Now you can follow the steps to install MiniPay on the device!