

Run your Android app on an emulated device For my example I'll be using an Amazon Kindle Fire HD tablet, but the instructions should generally apply to the device of your choice. In this section I'll show you how to run an Android application two ways: first on an emulated device, and then on an actual device. For example, you could use the Generate Signed Bundle / APK menu item to build a signed app bundle or APK. Do more with the Build menuĪndroid Studio's Build menu lets you perform several build tasks. If necessary, Gradle will automatically rebuild the app before its APK is installed and the app is run. Another approach is to actually run the app. For example, you could select Rebuild Project from the Build menu. There's more than one way to build an Android app. The event log reveals no problems (click to enlarge)


adb shell dpm set-device-owner /.DeviceAdmin.Once installed, run the following command to set Systems Manager as the device owner of the device:.Wait until the process ends with Success. Depending on hardware, this process may appear to hang after the transfer of the APK is complete.You must be in the directory of your AndroidSM.apk file, or you must specify the full explicit path for the APK.

ADB commands must be run in the same directory where the ADB binary was installed.On a computer run the following command to install the latest Android SM app you downloaded onto your device:.Your device might prompt you with a trust dialog.Click the “Build number” field 7 times.Go to “About device” (Might be named slightly different).Once the setup wizard is done and you’re on your device’s home screen.If you accidently added an account, simply remove the account from the Settings app once you finish the setup wizard. With a new (or factory reset) Lollipop Android device, go through the setup wizard WITHOUT adding a Google account.On a computer run the following command to initialize ADB:.Download the latest Android SM app from.First, download, install and configure the Android Debug Bridge (ADB) binary.
