I have some problem with passing a WebView from the first activity to the second activity. I have tried putExtra and so on, but it complains that I’m trying to pass a WebView instead of a String.
Intent intent = new Intent().setClass(this, WebView.class);
intent.putExtra("myPassedWebView", mWebView);
startActivity(intent);
Any ideas?
Thanks in advance!
Never pass widgets between activities. You will create memory leaks. Please find another solution to whatever problem you are trying to solve.