Thursday, 22 August 2013

application runs but no app icon in emulator

application runs but no app icon in emulator

In my code I have a webview. the code runs and shows the web content.But
after pressing the backward key in emulator i can not see the app icon in
it for reopening. the logcat shows the following error also
WebActivity.java
package example.webapp;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class WebActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_web);
WebView mainWebView = (WebView) findViewById(R.id.mainWebView);
WebSettings webSettings = mainWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
mainWebView.setWebViewClient(new MyCustomWebViewClient());
mainWebView.loadUrl("http://google.com");
mainWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
}
private class MyCustomWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}
}
logcat
08-22 17:53:11.464: E/geolocationService(278): Caught security exception
registering for location updates from system. This should only happen in
DumpRenderTree. please give me an answer

No comments:

Post a Comment