Note that there are some explanatory texts on larger screens.

plurals
  1. POadding webview into sherlock fragment
    primarykey
    data
    text
    <p>I succeed in adding WebView into sherlock fragment.and it's run fine but when I see my logcat, I find a strange output:</p> <pre><code>12-08 19:08:49.360: I/Choreographer(1495): Skipped 44 frames! The application may be doing too much work on its main thread. </code></pre> <p>it's like a loop and doesn't want stop!!</p> <p>what's those frames &amp; should I do something with it??</p> <p>Is it a thread problem?</p> <p>There is my code,maybe I'm making errors that's why my logcat come to explode</p> <pre><code>public class Schedule extends SherlockFragment { private WebView web_v; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // TODO Auto-generated method stub View v= inflater.inflate(R.layout.fragment_schedule, container, false); web_v=(WebView)v.findViewById(R.id.webView_schedule); WebSettings web_sett=web_v.getSettings(); web_sett.setJavaScriptEnabled(true); web_v.setWebViewClient(new MyWebClient()); web_v.loadUrl("http://www.pcinpact.com/?skipua=1"); v.setOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(keyCode==KeyEvent.KEYCODE_BACK &amp;&amp; web_v.canGoBack()){ web_v.goBack(); return true; } return false; } }); return v; } private class MyWebClient extends WebViewClient{ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub web_v.loadUrl(url); return true; } } } </code></pre> <p>thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload