Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

build.gradle #33

Closed s1037989 closed 9 years ago

s1037989 commented 10 years ago

I got my Android SDK from here: https://developer.android.com/sdk/index.html

I had to set this in build.gradle

android { compileSdkVersion 19 buildToolsVersion "19.0.0"

defaultConfig { minSdkVersion 19 targetSdkVersion 19 } }

Also had to set ANDROID_HOME $ export ANDROID_HOME=/Downloads/adt-bundle-linux-x86_64-20131030/sdk

This is not actually an issue with this repo, but it would be nice if the README included a little bit more info.

I'm new to gradle, Android app development, and java. I'm a Linux user and programmer for 20 years.

Hope this info helps other people.

My Estimote demo is building as I type... looking forward to get my first app running and with Estimote capability at the same time! :)

s1037989 commented 10 years ago

I successfully built, executed on an Android device, modified, re-built, and still executed on an Android device. That's a big deal to a newb.

Other things README worthy:

The gradlew installDebug process complained about permissions. Had to restart adb as root. Need to be in the Android SDK platform-tools dir: ./adb kill-server sudo ./adb start-server ./adb devices ./adb logcat

The gradlew installDebug process complained about authorization. I had to wake up and unlock my Android device and a dialog was awaiting me asking me to authorize the connection from my laptop. I did so and ran it again and it went thru and successfully built and installed the app on my Android. I found an app called "Estimote Devices" in my full app list.

To prove to myself quickly that I can make changes to the package, I converted the beacon-gray.png to a negative image and re-ran. Sure enough, the next time I launched the app, the color of the beacon shown was dark gray instead of the original light gray.

Hope this helps some people.

I'm really excited to dig in now!!

wiktor commented 10 years ago

Thanks a lot for your feedback, I'll make documentation more verbose.

muniriver commented 10 years ago

I would appreciate yours help I have done all steps but when I execute gradlew installdebug the process is stopped at 95% and it does not continue. I thinks any device is found but I do not know how continue with the process. Could yours tell me any directives ?. Thanks in advance

--later---- Now, I dont know why now, the process is finished successfully. But nothing happened in my phone or emulator. What is the following step please?. Thanks again

--later---- I am installed the Demos-debug.apk manually in my phone, and runs correctly. The installation is not performed automatically although the phone is usb connected.

wiktor commented 10 years ago

installDebug does only installation of the app. It does not run the app, you need to choose it manually from apps and run it.