This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
BuildingThaliDeviceHub
Jon Udell edited this page Oct 2, 2014
·
1 revision
Clone and build:
mkdir thali
cd thali
git clone https://git01.codeplex.com/thali
cd Production\ThaliDeviceHub\android\android
gradlew assembleDebug
Output:
:android:compileDebugNdk
:android:preBuild UP-TO-DATE
...
:android:packageDebug
:android:assembleDebug
BUILD SUCCESSFUL
To run it in the Virtual Box emulator, find its IP address:
Alt-F1 in VirtualBox to bring up terminal
# netcfg
eth0 UP 192.168.1.116/24
With ANDROID_SDK/platform-tools on the path, connect adb to the emulator:
# adb connect 192.168.1.116
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.1.116:5555
[Tip: On Windows, anyway, a useful sanity check when things fail is to kill and restart the adb process.]
Now push the app to the emulator, using the full path to the built apk:
adb install C:\Users\Jon\AndroidDev\thali\Production\ThaliDeviceHub\android\android\build\apk\android-debug-unaligned.apk
6019 KB/s (2428409 bytes in 0.393s)
pkg: /data/local/tmp/android-debug-unaligned.apk
Accept or decline:
File:VirtualBox_loading_app.png
[Tip: You may need to fiddle with Machine->Disable Mouse Integration in VirtualBox to get control of the mouse.]
[Tip: You may need to run VirtualBox on your primary monitor to control the mouse.]
[Tip: Once the mouse is captured, Right-CTRL to uncapture.]
The running device hub: