url webview problems
<p>all
i am writing a simple a android application, what i do is: i am create a webview and open a url. but this url should be put into the application settings, so that when i start the application, i can input the url, and open that in the webview.
but i got problem is whenever i try to load the url in webview, it cannot show the page even when the network is good.my code is:</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.webview);

        SharedPreferences sharedPrefs = PreferenceConnector.getPreferences(this);
        String url = sharedPrefs.getString("URLNAME", "NULL");

        System.out.println("url is: " + url);


        mWebView = (WebView) findViewById(R.id.webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.loadUrl(url);
</code></pre>
