title: How to use textview as a html page?
body: <p>So I have an Asynctask class with this codes and I just want to change the view of contents from text to html</p>
  
  <pre><code>    private class JSONP extends AsyncTask&lt;String, String, JSONObject&gt;{
  
  
      @Override
      protected void onPreExecute() {
          super.onPreExecute();
  
          title=(TextView)findViewById(R.id.textView2);
          content=(TextView)findViewById(R.id.txtcontent);
  
      }
  
  
      @Override
      protected JSONObject doInBackground(String... arg0) {
  
          JSONParser jp = new JSONParser();
          JSONObject tempjo = jp.getjsonfromurl(url);
          return tempjo;
      }
  
      @Override
      protected void onPostExecute(JSONObject result) {
          super.onPostExecute(result);
          try {
              news = result.getJSONArray(Tag_posts);
  
              for(int i = 0;i&lt;news.length();i++){
  
                  JSONObject c = news.getJSONObject(i);
  
                  String titles = c.getString(Tag_title);
  
                  String contents = c.getString(Tag_content);
  
                  HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
                  map.put(Tag_title, titles);
  
                  map.put(Tag_content, contents);
  
                  newslist.add(map);
  
                  ListAdapter list = new SimpleAdapter(MainActivity.this,
                          newslist,
                          R.layout.listv,
                          new String[] {Tag_title,Tag_content},
                          new int[]{R.id.textView2, R.id.txtcontent});
  
                          mylist.setAdapter(list);
  
              }
  
  
          } catch (JSONException e) {
              e.printStackTrace();
          }
  
      }
  </code></pre>
  
  <p>i know the method must be something like </p>
  
  <pre><code>textView.setText(Html.fromHtml(contents));
  </code></pre>
  
  <p>but i just don't know where to put this code? make another class or directly use it in my asynctask class</p>