I'd like to know how to add an AsyncTask (successfully) to the following code. I've already implemented the AsyncTask (to the best of my knowledge - using info I've found on the net) however it keeps crashing and I'm not sure exactly why...
Im trying to write a login service in the android by sending JSON to the web service i have in PHP after its processed in the web service JSON is returned back. My problem is sending JSON and then reading JSON in the android app.
If we use net.sf.json.JSONObejct in android ,the class loader can not find the class . Why we could not use the net.sf.json in android?
and have a json jar which could use in android ? becuse the org.json of google is too simple .
i want to parse a JSONObject to/from an Object.
thxs a lot .
Recently using MiniJSON in Unity3d,I can just read the json file from WWW class(from a webserver or local storage).Now just wonder how to write the string into json file,then save it on Application.persistentDataPath or send the json file to server?Json.Serialize() just convert data into string but not writing into a json file and that's what I really want.