In Htpp url openConnection() show error plz help any body :  btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) { new JsonParse().execute("http://jsonparsing.parseapp.com/jsonData/moviesDemoItems.txt");}});}
    public class JsonParse extends AsyncTask<String,String,String>
        @Override
        protected String doInBackground(String... params) {
            HttpURLConnection connection = null;
            BufferedReader reader = null;
            try { URI url = new URI(params[0]);
                connection = (HttpURLConnection) url.openConnection();
                connection.connect();
                InputStream stream = connection.getInputStream();
                reader = new BufferedReader(new InputStreamReader(stream));
                StringBuffer stringBuffer = new StringBuffer();
                String linge = "";
                while ((linge = reader.readLine()) != null) {
                    stringBuffer.append(linge);}
                return stringBuffer.toString();
`} catch (MalformedURLException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } finally {if (connection != null){connection.disconnect();try {
 if (reader != null) { reader.close();}} catch (IOException e) {e.printStackTrace(); }}return null }  @Override
        protected void onPostExecute(String result{super.onPostExecute(result);
  tv.setText(result);} }}