Next step, we need to build our application:
ionic build android
Be careful here, this step may break if you’re behind a firewall. The first execution will take a long time, so be patient.
When this step ends, look at the output log, last two lines should look something like this:
Built the following apk(s): D:\Development\IonicNativeAudioDemo\platforms\android\build\outputs\apk\android-debug.apk
We’ll use the last line location to deploy our application. Make sure your smartphone is prepared to accept an incoming application. In case of Android platform, you must enable Developer Options and USB Debugging.
adb install -r platforms\android\build\outputs\apk\android-debug.apk
or you can do it like this:
ionic run android -l -c -s
Download The Code
You can download this example at GitHub:GitHub Download