not able to update new content in webview in fragment in android
<p>I have added two fragment in layout .one fragment is list view and one fragment is webview.In webview first showing default data.if user click on  list view data I am not able to update   new content in webview  in fragment in android.can anybody tell what is problem how to do? see below my code.its working in emulator but not in device</p>

<pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view, int posistion, 
            long id) { 
            // TODO Auto-generated method stub 
                checkTablet=isTablet();
                if(checkTablet)
                {

                    webFragment=(WebViewFragment1)getSupportFragmentManager().findFragmentById(R.id.webFrag);
                    //webView=(WebView)getActivity().findViewById(R.id.loadWeb);
                //WebViewFragment1 webViewFragment=(WebViewFragment1).findViewById(R.id.loadWeb);
                    //webFragment=(WebViewFragment1)getActivity().getSupportFragmentManager().findFragmentById(R.id.webFrag);
                    DataGenerator dataGenerator=new DataGenerator();
                    String data=dataGenerator.getData(posistion);
                    System.out.println("data is"+data);
                    //webView.loadData(data, "html/data", "utf-8");
                    webFragment.loadWeb.loadData(data, "html/data", "utf-8");

                }
}); 
</code></pre>

<p>Thanks</p>
