i have a running app but i had a little problem with my sever,i have yet to solve my server problems and i'm encountering this problem with my log in the error comes from the authentication method.the error says jsonarray cannot be converted to jsonobject i've made a pastbin of my log and i was hoping someone can take a look at it and tell what my problem is.i think my problem is that i cant access my database but im not really sure if its the problem or my problem is my json.i cant hink of way to authenticate my username and password withour having problem like "at org.json.JSON.typeMismatch(JSON.java:111)" here is my paste bin http://pastebin.com/zgzbxcSV
you get from the server a (maybe empty) json array and you are try to convert it in a JsonObject.
instead of
JSONObject obj = new JSONObject(string);
you should do
JSONArray obj = new JSONArray(string);
1.4m articles
1.4m replys
5 comments
57.0k users