How to use AsyncTask manager with this code?
<p>I have this code and i would like to use asyncTask manager with this to let the user know something is happening. How would i allow this to happen with this snippet of code. i cant seem to figure it out. I know the asyncTask will be better than using a Hanlder. Or would it?
But anyway here is an example. if anyone can help out. Please do. Thanks.</p>

<pre><code>     enter.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
             item = book.getText().toString();
             searchForItem();


        }
    });
</code></pre>

<p>i would like to run this method with a progress dialog spinner letting the user know something is happening. How do i do this, and stop the spinner when the web page is loaded?</p>

<p>Here is my SearchForItem().</p>

<pre><code>    public void searchForBook(){

    String url = "www.example.com";
    browser = (WebView)findViewById(R.id.shopView);
    browser.setWebViewClient(new BookLookupbrowser());
    browser.getSettings().setJavaScriptEnabled(true);
    browser.loadUrl(url);
</code></pre>
