<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CoderzHeaven &#187; Activity Override</title>
	<atom:link href="http://www.coderzheaven.com/tag/activity-override/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderzheaven.com</link>
	<description>Heaven of all working Codes</description>
	<lastBuildDate>Sat, 18 May 2013 16:40:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>ProgressBar in ANDROID&#8230;..</title>
		<link>http://www.coderzheaven.com/2011/02/28/progressbar-in-android-2/</link>
		<comments>http://www.coderzheaven.com/2011/02/28/progressbar-in-android-2/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 08:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANDROID]]></category>
		<category><![CDATA[Activity Override]]></category>
		<category><![CDATA[alcohol rehab centers]]></category>
		<category><![CDATA[Attorney]]></category>
		<category><![CDATA[business electricity price comparison]]></category>
		<category><![CDATA[Claim]]></category>
		<category><![CDATA[Classes]]></category>
		<category><![CDATA[Conference Call]]></category>
		<category><![CDATA[Cord Blood]]></category>
		<category><![CDATA[crack rehab centers]]></category>
		<category><![CDATA[Credit]]></category>
		<category><![CDATA[credit card balance transfer zero interest]]></category>
		<category><![CDATA[criminal justice online classes]]></category>
		<category><![CDATA[Degree]]></category>
		<category><![CDATA[Donate]]></category>
		<category><![CDATA[drug treatment centers]]></category>
		<category><![CDATA[Gas/Electricity]]></category>
		<category><![CDATA[hard drive recovery laptop]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Insurance]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Lawyer]]></category>
		<category><![CDATA[Loading Quot]]></category>
		<category><![CDATA[Loans]]></category>
		<category><![CDATA[Long Time]]></category>
		<category><![CDATA[mesothelioma treatment options]]></category>
		<category><![CDATA[Mortgage]]></category>
		<category><![CDATA[online classes business administration]]></category>
		<category><![CDATA[Progress Bars]]></category>
		<category><![CDATA[Public Class Example]]></category>
		<category><![CDATA[Quot Quot]]></category>
		<category><![CDATA[raid server data recovery]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Rehab]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[spinner]]></category>
		<category><![CDATA[switch gas and electricity suppliers]]></category>
		<category><![CDATA[Trading]]></category>
		<category><![CDATA[Transfer]]></category>
		<category><![CDATA[Treatment]]></category>
		<category><![CDATA[zero apr balance transfer]]></category>

		<guid isPermaLink="false">http://coderzheaven.com/index.php/2011/02/progressbar-in-android-2/</guid>
		<description><![CDATA[Progress bars are our basic needs when we want to show something for a long time or some progress takes a long time and we want to show it&#8217;s progress. Keeping that in mind ANDROID also has built in progress views. There are basically two types of progress views in ANDROID. ProgressDialog.STYLE_SPINNER and ProgressDialog.STYLE_HORIZONTAL Take [...]<div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2012/04/07/how-to-use-ccprogresstimer-in-cocos2d-to-show-progress/"     class="crp_title">How to use CCProgressTimer in Cocos2D to show progress?</a></li><li><a href="http://www.coderzheaven.com/2011/04/15/how-to-use-progress-bar-dialogues-and-custom-dialogues-in-android/"     class="crp_title">How to use progress bar dialogs and custom Dialogs in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2011/11/03/how-to-show-progress-bar-while-loading-a-webpage-in-android/"     class="crp_title">How to show progress bar while loading a webpage in android?</a></li><li><a href="http://www.coderzheaven.com/2011/08/11/how-to-get-the-current-progress-on-your-seekbar-in-android/"     class="crp_title">How to get the current progress on your SeekBar in android?</a></li><li><a href="http://www.coderzheaven.com/2011/06/21/how-to-use-seekbar-in-android/"     class="crp_title">How to use SeekBar in ANDROID?</a></li></ul></div>]]></description>
				<content:encoded><![CDATA[<p>Progress bars are our basic needs when we want to show something for a long time or some progress takes a long time and we want to show it&#8217;s progress.<br />
Keeping that in mind <a href="http://coderzheaven.com/android/">ANDROID </a>also has built in progress views.<br />
There are basically two types of progress views in <a href="http://coderzheaven.com/android/">ANDROID</a>.</p>
<blockquote><p>ProgressDialog.STYLE_SPINNER and ProgressDialog.STYLE_HORIZONTAL</p></blockquote>
<p>Take a look at this simple example that loads a progressBar on &#8220;onCreate&#8221;&#8230;.</p>
<pre class="brush: java; title: ; notranslate">
public class Example extends Activity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.main);
    	ProgressDialog dialog = ProgressDialog.show(Example.this, &quot;&quot;, &quot;Loading...&quot;, true);
    }
}
</pre>
<p><a href="http://coderzheaven.com/wp-content/uploads/2011/02/111.jpg"><img src="http://coderzheaven.com/wp-content/uploads/2011/02/11-290x300.jpg" alt="" title="1" width="290" height="300" class="aligncenter size-medium wp-image-694" /></a></p>
<div class="su-linkbox" id="post-13-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.coderzheaven.com/2011/02/28/progressbar-in-android-2/&quot;&gt;ProgressBar in ANDROID&#8230;..&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2012/04/07/how-to-use-ccprogresstimer-in-cocos2d-to-show-progress/"     class="crp_title">How to use CCProgressTimer in Cocos2D to show progress?</a></li><li><a href="http://www.coderzheaven.com/2011/04/15/how-to-use-progress-bar-dialogues-and-custom-dialogues-in-android/"     class="crp_title">How to use progress bar dialogs and custom Dialogs in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2011/11/03/how-to-show-progress-bar-while-loading-a-webpage-in-android/"     class="crp_title">How to show progress bar while loading a webpage in android?</a></li><li><a href="http://www.coderzheaven.com/2011/08/11/how-to-get-the-current-progress-on-your-seekbar-in-android/"     class="crp_title">How to get the current progress on your SeekBar in android?</a></li><li><a href="http://www.coderzheaven.com/2011/06/21/how-to-use-seekbar-in-android/"     class="crp_title">How to use SeekBar in ANDROID?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.coderzheaven.com/2011/02/28/progressbar-in-android-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Draw primitive shapes such as rectangle, circle etc in ANDROID, A simple example.</title>
		<link>http://www.coderzheaven.com/2011/02/12/draw-primitive-shapes-such-as-rectangle-circle-etc-in-android-a-simple-example/</link>
		<comments>http://www.coderzheaven.com/2011/02/12/draw-primitive-shapes-such-as-rectangle-circle-etc-in-android-a-simple-example/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 00:33:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANDROID]]></category>
		<category><![CDATA[activity]]></category>
		<category><![CDATA[Activity Override]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[coderzheaven]]></category>
		<category><![CDATA[context]]></category>
		<category><![CDATA[Draw2]]></category>
		<category><![CDATA[drawRect]]></category>
		<category><![CDATA[GREEN]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[onDraw]]></category>
		<category><![CDATA[Paint]]></category>
		<category><![CDATA[Paint Class]]></category>
		<category><![CDATA[STROKE]]></category>

		<guid isPermaLink="false">http://coderzheaven.com/index.php/2011/02/draw-primitive-shapes-such-as-rectangle-circle-etc-in-android-a-simple-example/</guid>
		<description><![CDATA[The following example shows how to draw a rectangle using the Paint Class in ANDROID. Just copy and paste the following code to your file and you are done. Link to this post!<div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2011/08/06/how-to-align-a-text-in-android-programatically/"     class="crp_title">How to align a text in Android Programatically?</a></li><li><a href="http://www.coderzheaven.com/2012/01/08/create-image-reflection-android/"     class="crp_title">How to create Image Reflection in Android?</a></li><li><a href="http://www.coderzheaven.com/2013/01/10/draw-arcs-android-canvas/"     class="crp_title">How to draw Arcs in Android using canvas?</a></li><li><a href="http://www.coderzheaven.com/2012/05/18/custom-progressbar-android-text-part-3/"     class="crp_title">Custom progressbar in android with text &#8211; part 3</a></li><li><a href="http://www.coderzheaven.com/2010/09/18/how-to-drag-and-drop-in-android/"     class="crp_title">How to drag and drop in ANDROID?</a></li></ul></div>]]></description>
				<content:encoded><![CDATA[<p>The following example shows how to draw a rectangle using the Paint Class in ANDROID. Just copy and paste the following code to your file and you are done.</p>
<pre class="brush: java; title: ; notranslate">
package Draw2.pack;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;

public class Draw2 extends Activity {

  @Override
  public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(new myView(this));
  }

  private class myView extends View{

      public myView(Context context) {
          super(context);
      }

      @Override
      protected void onDraw(Canvas canvas) {

          Paint myPaint = new Paint();
          myPaint.setColor(Color.GREEN);
          myPaint.setStyle(Paint.Style.STROKE);
          myPaint.setStrokeWidth(3);
          canvas.drawRect(10, 10, 100, 100, myPaint);
      }
  }
}
</pre>
<div class="su-linkbox" id="post-28-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.coderzheaven.com/2011/02/12/draw-primitive-shapes-such-as-rectangle-circle-etc-in-android-a-simple-example/&quot;&gt;Draw primitive shapes such as rectangle, circle etc in ANDROID, A simple example.&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2011/08/06/how-to-align-a-text-in-android-programatically/"     class="crp_title">How to align a text in Android Programatically?</a></li><li><a href="http://www.coderzheaven.com/2012/01/08/create-image-reflection-android/"     class="crp_title">How to create Image Reflection in Android?</a></li><li><a href="http://www.coderzheaven.com/2013/01/10/draw-arcs-android-canvas/"     class="crp_title">How to draw Arcs in Android using canvas?</a></li><li><a href="http://www.coderzheaven.com/2012/05/18/custom-progressbar-android-text-part-3/"     class="crp_title">Custom progressbar in android with text &#8211; part 3</a></li><li><a href="http://www.coderzheaven.com/2010/09/18/how-to-drag-and-drop-in-android/"     class="crp_title">How to drag and drop in ANDROID?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.coderzheaven.com/2011/02/12/draw-primitive-shapes-such-as-rectangle-circle-etc-in-android-a-simple-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get the ANDROID SDK Version? How to get your Phone&#039;s IP Address in ANDROID? Also how to get your phone number from the phone?</title>
		<link>http://www.coderzheaven.com/2011/01/23/how-to-get-the-android-sdk-version-how-to-get-your-phones-ip-address-in-android-also-how-to-get-your-phone-number-from-the-phone-2/</link>
		<comments>http://www.coderzheaven.com/2011/01/23/how-to-get-the-android-sdk-version-how-to-get-your-phones-ip-address-in-android-also-how-to-get-your-phone-number-from-the-phone-2/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 07:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANDROID]]></category>
		<category><![CDATA[Activity Override]]></category>
		<category><![CDATA[BOARD]]></category>
		<category><![CDATA[BRAND]]></category>
		<category><![CDATA[DEVICE]]></category>
		<category><![CDATA[FINGERPRINT]]></category>
		<category><![CDATA[HOST]]></category>
		<category><![CDATA[INCREMENTAL]]></category>
		<category><![CDATA[RELEASE]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[VERSION]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://coderzheaven.com/index.php/2011/01/how-to-get-the-android-sdk-version-how-to-get-your-phones-ip-address-in-android-also-how-to-get-your-phone-number-from-the-phone-2/</guid>
		<description><![CDATA[Please checkout the &#8220;LogCat&#8221; for the output. If you don&#8217;t know about Logcat In Eclipse &#8220;Go to Window->showView and search for Logcat&#8221;. Link to this post!<div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2010/10/05/get-my-telephone-number-in-android/"     class="crp_title">Get my Telephone number in ANDROID</a></li><li><a href="http://www.coderzheaven.com/2013/03/13/customize-force-close-dialog-android/"     class="crp_title">How to Customize &#8220;Force Close&#8221; Dialog in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2010/10/05/how-to-enable-and-disable-wifi-in-android/"     class="crp_title">How to enable and disable Wifi in ANDROID?</a></li><li><a href="http://www.coderzheaven.com/2011/09/30/how-will-you-programatically-enable-or-disable-wifi-in-android/"     class="crp_title">How will you programatically enable or disable WIFI in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2011/06/14/how-to-fix-warning-multiple-build-commands-for-output-file/"     class="crp_title">How to Fix ‘Warning : Multiple Build Commands For Output&hellip;</a></li></ul></div>]]></description>
				<content:encoded><![CDATA[<p>Please checkout the &#8220;LogCat&#8221; for the output.<br />
If you don&#8217;t know about Logcat In Eclipse  &#8220;Go to Window->showView and search for Logcat&#8221;.</p>
<pre class="brush: java; title: ; notranslate">
package com.ip;

import android.app.Activity;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.util.Log;

public class Get_IP extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//        WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
//        WifiInfo wifiInfo = wifiManager.getConnectionInfo();
//        int ipAddress = wifiInfo.getIpAddress();
//        String ip = intToIp(ipAddress);

StringBuffer buf = new StringBuffer();
buf.append(&quot;VERSION.RELEASE {&quot;+Build.VERSION.RELEASE+&quot;}&quot;);
buf.append(&quot;nVERSION.INCREMENTAL {&quot;+Build.VERSION.INCREMENTAL   +&quot;}&quot;);
buf.append(&quot;nVERSION.SDK {&quot;+Build.VERSION.SDK+&quot;}&quot;);
buf.append(&quot;nBOARD {&quot;+Build.BOARD+&quot;}&quot;);
buf.append(&quot;nBRAND {&quot;+Build.BRAND+&quot;}&quot;);
buf.append(&quot;nDEVICE {&quot;+Build.DEVICE+&quot;}&quot;);
buf.append(&quot;nFINGERPRINT {&quot;+Build.FINGERPRINT+&quot;}&quot;);
buf.append(&quot;nHOST {&quot;+Build.HOST+&quot;}&quot;);
buf.append(&quot;nID {&quot;+Build.ID+&quot;}&quot;);
System.out.println(&quot;build&quot;+buf);

System.out.println(&quot;Phone Number = &quot; + getMy10DigitPhoneNumber());
}
public String intToIp(int i) {

  return ((i &gt;&gt; 24 ) &amp; 0xFF ) + &quot;.&quot; +
  ((i &gt;&gt; 16 ) &amp; 0xFF) + &quot;.&quot; +
  ((i &gt;&gt; 8 ) &amp; 0xFF) + &quot;.&quot; +
  ( i &amp; 0xFF) ;
}
private String getMyPhoneNumber(){
 TelephonyManager mTelephonyMgr;
 mTelephonyMgr = (TelephonyManager)
 getSystemService(Context.TELEPHONY_SERVICE);
 return mTelephonyMgr.getLine1Number();
 }

 private String getMy10DigitPhoneNumber(){
 String s = getMyPhoneNumber();
 return s.substring(2);
 }
}
</pre>
<div class="su-linkbox" id="post-56-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.coderzheaven.com/2011/01/23/how-to-get-the-android-sdk-version-how-to-get-your-phones-ip-address-in-android-also-how-to-get-your-phone-number-from-the-phone-2/&quot;&gt;How to get the ANDROID SDK Version? How to get your Phone&#039;s IP Address in ANDROID? Also how to get your phone number from the phone?&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2010/10/05/get-my-telephone-number-in-android/"     class="crp_title">Get my Telephone number in ANDROID</a></li><li><a href="http://www.coderzheaven.com/2013/03/13/customize-force-close-dialog-android/"     class="crp_title">How to Customize &#8220;Force Close&#8221; Dialog in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2010/10/05/how-to-enable-and-disable-wifi-in-android/"     class="crp_title">How to enable and disable Wifi in ANDROID?</a></li><li><a href="http://www.coderzheaven.com/2011/09/30/how-will-you-programatically-enable-or-disable-wifi-in-android/"     class="crp_title">How will you programatically enable or disable WIFI in&hellip;</a></li><li><a href="http://www.coderzheaven.com/2011/06/14/how-to-fix-warning-multiple-build-commands-for-output-file/"     class="crp_title">How to Fix ‘Warning : Multiple Build Commands For Output&hellip;</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.coderzheaven.com/2011/01/23/how-to-get-the-android-sdk-version-how-to-get-your-phones-ip-address-in-android-also-how-to-get-your-phone-number-from-the-phone-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Webview in ANDROID together with javascript?</title>
		<link>http://www.coderzheaven.com/2011/01/19/how-to-use-webview-in-android-together-with-javascript-2/</link>
		<comments>http://www.coderzheaven.com/2011/01/19/how-to-use-webview-in-android-together-with-javascript-2/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 08:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANDROID]]></category>
		<category><![CDATA[Activity Override]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[Toast]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://coderzheaven.com/index.php/2011/01/how-to-use-webview-in-android-together-with-javascript-2/</guid>
		<description><![CDATA[The following java code helps you to show a webpage in ANDROID and enable javascript. Link to this post!<div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2011/11/03/how-to-show-progress-bar-while-loading-a-webpage-in-android/"     class="crp_title">How to show progress bar while loading a webpage in android?</a></li><li><a href="http://www.coderzheaven.com/2010/09/13/load-html-string-into-webview-in-android/"     class="crp_title">Load html string into WebView in android</a></li><li><a href="http://www.coderzheaven.com/2012/01/01/using-webview-to-call-a-function-in-android-java-code-or-how-to-use-a-webviewclient-in-android/"     class="crp_title">Using WebView to call a function in android java code or How</a></li><li><a href="http://www.coderzheaven.com/2011/03/03/how-to-load-a-pdf-in-titanium-2/"     class="crp_title">How to load a PDF in Titanium?</a></li><li><a href="http://www.coderzheaven.com/2011/07/13/how-to-listen-to-the-softkeyboard-done-button-in-android/"     class="crp_title">How to listen to the softkeyboard done button in android?</a></li></ul></div>]]></description>
				<content:encoded><![CDATA[<p>The following java code helps you to show a webpage in ANDROID and enable javascript.</p>
<pre class="brush: java; title: ; notranslate">
package com.pack;

import android.app.Activity;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.graphics.SumPathEffect;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.View.OnKeyListener;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;
import android.widget.Toast;

public class myHTML extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {

     getWindow().requestFeature(Window.FEATURE_PROGRESS);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        WebView webview = (WebView)findViewById(R.id.webview);
        TextView tv = (TextView)findViewById(R.id.tv);

        tv.setOnKeyListener(new OnKeyListener() {
 @Override
 public boolean onKey(View v, int keyCode, KeyEvent event) {

 return false;
 }
 });

        try{

             webview.getSettings().setJavaScriptEnabled(true);
        //  setContentView(webview);

              final Activity activity = this;
              webview.setWebChromeClient(new WebChromeClient() {
           public void onProgressChanged(WebView view, int progress) {
             activity.setProgress(progress * 10000);
             Toast.makeText(activity, &quot;Loading &quot; , Toast.LENGTH_SHORT).show();
           }
         });

              webview.setWebViewClient(new WebViewClient() {
              public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
              Toast.makeText(activity, &quot;Oh no! &quot; + description, Toast.LENGTH_SHORT).show();
              }
         });

         String summary = &quot;HELLO&quot;;

         /*To load from a string use loadDataWithBaseURL  */
         webview.loadDataWithBaseURL(&quot;&quot;,summary, &quot;text/html&quot;, &quot;utf-8&quot;, &quot;&quot;);

         /* To load from a file use loadUrl(remote or local) */
         //webview.loadUrl(&quot;file:///android_asset/test.html&quot;);

        }catch(Exception e){
         Toast.makeText(myHTML.this,e.getMessage(), Toast.LENGTH_SHORT).show();
        }

    }
}
</pre>
<div class="su-linkbox" id="post-57-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.coderzheaven.com/2011/01/19/how-to-use-webview-in-android-together-with-javascript-2/&quot;&gt;How to use Webview in ANDROID together with javascript?&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class="crp_related"><h3><font color="#FF0000">More Similar Posts </font></h3><ul><li><a href="http://www.coderzheaven.com/2011/11/03/how-to-show-progress-bar-while-loading-a-webpage-in-android/"     class="crp_title">How to show progress bar while loading a webpage in android?</a></li><li><a href="http://www.coderzheaven.com/2010/09/13/load-html-string-into-webview-in-android/"     class="crp_title">Load html string into WebView in android</a></li><li><a href="http://www.coderzheaven.com/2012/01/01/using-webview-to-call-a-function-in-android-java-code-or-how-to-use-a-webviewclient-in-android/"     class="crp_title">Using WebView to call a function in android java code or How</a></li><li><a href="http://www.coderzheaven.com/2011/03/03/how-to-load-a-pdf-in-titanium-2/"     class="crp_title">How to load a PDF in Titanium?</a></li><li><a href="http://www.coderzheaven.com/2011/07/13/how-to-listen-to-the-softkeyboard-done-button-in-android/"     class="crp_title">How to listen to the softkeyboard done button in android?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.coderzheaven.com/2011/01/19/how-to-use-webview-in-android-together-with-javascript-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
