Tim Moores wrote:
That looks like an Sun/Oracle-specific class that I'm not sure if it's available on Android. What library or piece of code needs that?
Tim Moores wrote:What do you have so far? The usual approach would be to connect via a REST web service running on your web server.
Ron McLeod wrote:
It looks like this method is a handler for a response from a web service.
Make sure that you are asking for a JSON-formatted response in the request (Accept: application/json header).
Ron McLeod wrote:Where does the contents responseBody some from?
Ron McLeod wrote:
connected is not a valid JSON representation, so it is most likely throwing an exception (which you should see in the logcat log).
Simple test:
Ron McLeod wrote:
Harry Burke wrote:I'm getting to the Log 6.2 but I'm not getting Log 6.3, so I'm presuming the error is on line 4 above.
What is the value of response which is logged in line 2?
Does logcat show any exceptions raised for line 4?
Tim Moores wrote:What part are you wondering about specifically? Creating the activity with the login page? Connecting to the DB over the net? Checking the results and starting a new activity or layout? Something else?