07-11-2016 12:05 AM
in the getting started guide of Mobile SDK( http://community.hexagongeospatial.com/t5/Developers-Knowledge-Base/Getting-Started/ta-p/18) in the sectio for running the app, when the Android device is attached to the computer, after running grunt android, the APK is created, so one can copy across the .apk file to the device over USB and install the app manually from the place it was copied. instead running the grunt runandroid, actually runs the emulator on the computer instead?
Or am I missing something here?
07-11-2016 01:40 AM
grunt android- Create mobile project, add android platform and build
grunt runandroid- Build and run android application on device
In order to create an android project, build and run using the to above commands is probably the easiest option.
Running grunt android and copying the apk manually is of course another correct option.
The thing you're missing is that if the device is correctly connected to a computer, runandroid will run the app on a device.
In your case it isn't and it's running the app on an emulator.
In order to check it you should use "adb devices" command. If it's ok, you will see an id of your device on device list.
Depending on your installation you may already have it in the PATH and simply running it from command line would work. If not you should find it in the Android SDK directory, e.g: D:\dev\tools\android-sdk-windows\platform-tools\adb.exe
In order to fix it, I'd recommend using google first as there are plenty of articles about making adb devices work.
07-11-2016 02:29 AM