Hi,
I was rebuilding the Android SDK example of http://ubidots.com/docs/devices/android.html#android-sdk .
I am in trouble to get it work and hope that someone here can help me.
I fellow the steps on the tutorial where I
- started a new project in android studio,
- added
compile ‘com.ubidots:ubidots-java:1.6.4’
compile ‘com.google.code.gson:gson:2.4’
in dependencies {…} of my build.gradle(Module:app) file
and sync project with gradle files - copy-paste the xml codes
- copy-paste the java codes
and replaced
private final String API_KEY = “our_api_key”;
private final String VARIABLE_ID = “our_variable_id”;
with my own key and id - added
< user-permission android:name=“android.permission.INTERNET”> </ user-permission>
for internet permission in AndroidManifest.xml
and finally run the app with emulator and also on my tablet.
However, the app stops with “Unfortunately, UbidotsApp has stopped.” both on my emulator and tablet. Did I miss any important step? I don’t have much experience with Android Java. Maybe any tips for debugging?
Thank you very much!