Running AMP For Mobile Tests on a physical device from within Android Studio does not require any additional AMP-specific steps, but there are some steps that must be taken within the device and on your computer.
Testing With A Physical Device In Windows
1. Open Android Studio
2. Open Existing Application Project
3. Connect External Android Phone through USB
4. Open the 'USB connected' section in the physical devices dropdown phone window
5. Change to camera (PTP), which might also be listed as 'Transferring images', if a 'Use USB for' window opens.
6. Select USB Debugging and tap/select to enable it
7. Open the Windows Device Manager. To do this, you can open your Windows Search bar and type in device manager.
8. Right-click (or open context menu - ex. shift+f10 in Firefox) on 'Other Devices' and select 'scan for Hardware Changes'
9. Close device manager
10. Navigate back to Android Studio, run the application
11. In Choose device dialog box which appears, the phone name should be presented. Select that.
12. The output will appear in the Android Phone, showing that your application is running in your device
This will load the app onto the physical device, where you can begin testing as you would in an emulator, posting modules by navigating from screen to screen. The screens visited will be added to the active AMP report in the toolbox. For more information about the testing process in AMP for Android Studio, you can visit our documentation on testing found here:
If you run into any issues or if you have any questions, please feel free to reach out to email@example.com with them.