¿Por qué dice "Bitmap no se puede resolver a un tipo" en este caso?

Consigo este error. ¿Cómo puedo solucionar esto en mi situación?

"Bitmap cannot be resolved to a type" 

La línea donde ocurre el error

 public void onPageStarted(WebView view, String url, Bitmap favicon) { 

Mi código

 public class MainActivity extends Activity { private Activity activity = this; private String title = ""; private ActionBar mActionBar; private SimpleSideDrawer mNav; WebView myWebView; int width, height; float flick_width; float flick_height; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); title = activity.getTitle().toString(); // (1) requestWindowFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.activity_main); getSize(); mActionBar = getActionBar(); mActionBar.hide(); mNav = new SimpleSideDrawer(this); mNav.setLeftBehindContentView(R.layout.activity_behind_left_simple, this); mNav.setRightBehindContentView(R.layout.activity_behind_right_simple, this); myWebView = (WebView)findViewById(R.id.webView1); myWebView.setWebViewClient(new WebViewClient()); myWebView.getSettings().setJavaScriptEnabled(true); myWebView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { Log.d("HelloWebView", "onPageStarted : " + url); activity.setTitle("Loading..."); // (2) activity.setProgressBarVisibility(true); } @Override public void onPageFinished(WebView view, String url) { Log.d("HelloWebView", "onPageFinished : " + url); } @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { Log.d("HelloWebView", "shouldOverrideUrlLoading : " + url); return super.shouldOverrideUrlLoading(view, url); } @Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Log.d("HelloWebView", "onReceivedError : "+description); //view.loadData("Error "+description, "text/plain", "utf-8"); view.loadDataWithBaseURL(null, "Error ("+errorCode+"):"+description, "text/plain", "utf-8", null); } }); myWebView.setWebChromeClient(new WebChromeClient() { // (3) public void onProgressChanged(WebView view, int progress) { activity.setProgress(progress * 100); Log.d("HelloWebView", "progress="+progress); if (progress==100) { activity.setProgressBarVisibility(false); activity.setTitle(title); } } }); myWebView.loadUrl("http://yahoo.com"); myWebView.getSettings().setSupportZoom(true); myWebView.getSettings().setLoadWithOverviewMode(true); myWebView.getSettings().setUseWideViewPort(true); 

Eclipse a veces hipo al intentar auto-resolver las importaciones. En casos como ese, puede intentar introducir manualmente la declaración de importación usted mismo: import android.graphics.Bitmap;

Simplemente haga clic en "Ctr + Shift + O", aunque no muestra la importación cuando se coloca en ella .. se va a importar automáticamente cuando haga clic en este — >> "Ctr + Shift + O"

FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.