The problem i have is that sometimes when i open a webView Activity in my apps it works fine and sometimes a fatal signal 11 occures and the apps shut down
this is my webView Class
public class Browser extends Activity{
WebView ourBrow;
String adress;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.browser);
try{
try{
getActionBar().setDisplayShowHomeEnabled(false);
}
catch (Exception e)
{ }
ourBrow = (WebView)findViewById(R.id.wvBrowser);
ourBrow.getSettings().setJavaScriptEnabled(true);
ourBrow.getSettings().setLoadWithOverviewMode(true);
ourBrow.getSettings().setUseWideViewPort(true);
ourBrow.setWebViewClient(new ourViewClient());
ourBrow.setWebChromeClient(new WebChromeClient());
ourBrow.getSettings().setSupportMultipleWindows(true);
try{
Bundle gotBasket = getIntent().getExtras();
adress = gotBasket.getString("url");
}catch (Exception e){
}
try
{
ourBrow.loadUrl(adress);
}
catch (Exception e)
{
e.printStackTrace();
}
}catch(Exception e)
{
}
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
ourBrow.stopLoading();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_goback, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
switch (item.getItemId()) {
// action when setting was selected
case R.id.goback:
finish();
break;
default:
break;
}
return true;
}
public class ourViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO Auto-generated method stub
view.loadUrl(url);
return true;
}
}
public void clickEvent_live (View view)
{
if (!adress.contains("live"))
{
Intent intent_live = new Intent(this,Browser.class);
intent_live.putExtra("url", CommonUtilities.LIVE_URL);
startActivity(intent_live);
}
}
}
and this is the log
and these warnings comes up too
thx