I am creating an android application then allows the user to view their profile after logging in. I completed my login page, however, when directed to the profile page, the data cannot be retrieved. Can anyone tell me what went wrong??
I am new with facebook api. I tried multiply tutorials but nothing works out for me...
I am using api level 10, platform 2.3.3, the connections works fine, but when i log out and open the application again it should show me the welcome text with me name but instead
the application crash...
I'm trying to do some task using AsyncTask. But when I completed with it. Its is not showing any kind of syntactical error. But while running it is showing the error as in the following image
I tried to debug it, but could get what the problem is.
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.
I'm using class that extends AsyncTask but I have error at the line that executes the class
I couldn't figure it out
here is the class that includes my main class and the class that extends AsyncTask
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONOb
I have my php web serivce that reterives me list of topics from my forum and I used JSON to pare is into listview in my ANdroid app
unfortunatelly when running the app and when I go the the page where i should see that list I get black blank screen and in my logcat I got this error
03-17 15:00:04.189: E/JSON Parser(379): Error parsing data org.json.JSONException: Value <?xml of type java.la
i'm having a problem getting the json from pinterest it always error on the JSONArray part.
code
JSONArray bodyarray = null;
JSONParser jParser = new JSONParser();
JSONObject json = jParser.getJSONFromUrl(url);
Log.i("url",""+url);
Log.i("json",""+json);
try{
bodyarray = json.getJSONArray(TAG_body); <---- this is the error here "NullPointerException"
Log.i("JSON", ""+bodyarray);
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 .