taking time when going one activity to other by buton click
<p>when i am going from one activity to other by button click in my second activity i am displaying a advertisement in webview in top position .and it is coming from url so it takes time on navigate to other activity so i want to ask is there any solution for do it after i navigate to next activity and then download of image begins.</p>

<p>in on create i write this code</p>

<pre><code>     SharedPreferences BannerPrefs = getSharedPreferences("BannerPref", 0);
    BannerLink = BannerPrefs.getString("BannerLink", "");
    BannerUrl = BannerPrefs.getString("BannerUrl", "");
   WebView wv=(WebView)findViewById(R.id.imv);
  wv.setOnTouchListener(new OnTouchListener() {



    @Override
    public boolean onTouch(View v, MotionEvent event) {
        final Intent intent = new                  Intent(Intent.ACTION_VIEW).setData(Uri.parse(BannerLink));
        startActivity(intent);          
        return false;
    }
 });
wv.loadUrl(BannerUrl);

  thanks
</code></pre>
