title: How to use Google chart API
body: <p>I am using a google chart API in <a href="http://chart.apis.google.com/chart?cht=p3&amp;chs=500x200&amp;chd=e%3aTNTNTNGa&amp;chts=000000,16&amp;chtt=A%20Better%20Web&amp;chl=Hello%7CHi%7Canas%7CExplorer&amp;chco=FF5533,237745,9011D3,335423&amp;chdl=Apple%7CMozilla%7CGoogle%7CMicrosoft">this</a> </p>
  
  <p>how can i use this chart in android application?</p>
  
  <p>here is my code</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
         String url =  "http://chart.apis.google.com/chart?cht=p3&amp;chs=500x200&amp;chd=e:TNTNTNGa&amp;chts=000000,16&amp;chtt=A+Better+Web&amp;chl=Hello|Hi|anas|Explorer&amp;chco=FF5533,237745,9011D3,335423&amp;chdl=Apple|Mozilla|Google|Microsoft";
          WebView mCharView = (WebView) findViewById(R.id.char_view);
          mCharView.loadUrl(url);
      }
  </code></pre>
  
  <p>and the XML </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
  &lt;WebView android:id="@+id/char_view"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:visibility="visible"/&gt;
  
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/hello" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>