You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 4, 2020. It is now read-only.
This repository was archived by the owner on Aug 4, 2020. It is now read-only.
App Error: "Unfortunately, XivelyAndroidServiceDemo has stopped when pressed" when "List Feed" or "Create Datapoint" button is pressed, rendering App unusable. #13
I imported the project and was able to get the app "XivelyAndroidServiceDemo" to be uploaded and run on my Samsung Galaxy Note 3 mobile phone. But... an error message "Unfortunately, XivelyAndroidServiceDemo has stopped." shows up whenever I press either the "List Feed" button or "Create Datapoint" button. The result remains blank. I tried re-starting the app, but it always give the same output upon pressing the buttons (stated above).
In Android Studio, I have encountered an error in the HttpServiceTest.java.
Under public void testCreateDatapoint(){} in HttpServiceTest.java, there is a red underline under the word 'this' in IBinder service = this.bindService(new Intent(HttpService.class.getName())); code.
Upon scrolling my mouse on the word 'this', a sentence appears "Cannot access android.content.ComponentsCallback2.
I imported using Android Studio 1.5.1.
I have set my API and feed ID for the 2 files according to the readme (HttpServiceTest.java and DemoActivity.java)
I have tried using API supported for the app according to readme
Someone please help me fix this issue.
Besides, I have read that Xively interface via RESTful API and HTTPclient, but it is not used in this segment of codes. Could it be the reason why it could not work? If it is, can someone provide a sample code solution please.