[Solved] android FATAL EXCEPTION: AsyncTask #2 [closed]


URI website = new URI("http://example=" + et.getText() + "json");

You didn’t connect your EditText et with it’s view. So et.getText will give you an error.

URI website = new URI("http://example=" + et.getText() + "json");

change it to URI website = uRI;

and pass your URI while processing doInBackground

like –

String uRI = "http://www.example.com/example.json";

             JSONObject json = jParser.getJSONFromURI(uRI);

2

solved android FATAL EXCEPTION: AsyncTask #2 [closed]