Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.11 KB

10-3-M-Run-Virtual-Device.adoc

File metadata and controls

21 lines (15 loc) · 1.11 KB

Running and Testing the Application on a Virtual Device

  1. Start the Spring backend application on Heroku, while ensure that the DEFAULT_BASE_URL in HttpUtils is configured accordingly.

  2. Click on the AVD manager button in Android Studio near the top right corner of the window

    Open terminal

  3. Add a new device with default settings.

    Note
    You might be asked to download emulator files. If this happens, click OK.
  4. Start/Debug the application using the buttons highlighted on the figure below

    Select system image

  5. After you select the device (in this case Nexus 5X) as deployment target, the application will automatically be deployed and started within an Android VM, and it is ready to use. Be patient, deployment and startup may take a few seconds.

  6. Supply a name for a new person, then try adding it. Upon successful completion, the text field and the error message should clear.

  7. Supply the same name in the text field and then try adding the person. You should get an error message on screen "Person has already been created".