canno't implement rest webservice in android app-Collection of common programming errors
-
This could be due to a lot of errors.
Are you sure it does not crash because of your two EditTexts not being found? etdit.setText would cause NullPointerExceptions.
-
Did u try to check the response Its something like this:
[{“id”:”755″,”level”:”1″,”time_in_secs”:”3″,”par”:”0″,”initials”:”KiB”,”quote”:”Got’cha!”,”time_stamp”:”2012-04-09 22:50:52″},{“id”:”977″,”level”:”1″,”time_in_secs”:”3″,”par”:”0″,”initials”:”WJF”,”quote”:”dats right numero uno”,”time_stamp”:”2013-03-11 02:29:36″},{“id”:”874″,”level”:”1″,”time_in_secs”:”3″,”par”:”0″,”initials”:”WJF”,”quote”:”Look, Ma. No hands!”,”time_stamp”:”2012-05-25 15:44:10″},{“id”:”59″,”level”:”1″,”time_in_secs”:”4″,”par”:”0″,”initials”:”TMF”,”quote”:”Hey hey ole ‘ hickery”,”time_stamp”:”2012-03-03 04:36:15″},{“id”:”61″,”level”:”1″,”time_in_secs”:”4″,”par”:”0″,”initials”:”WJF”,”quote”:”I’m on a boat!”,”time_stamp”:”2012-03-03 04:38:54″}]
As you can see its not ResponseString its a ResponseArray. Modify it accordingly.
Also check whether it type is POST or GET