I think you are using the correct way
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://"+tempUrl));
startActivity(i);
other way would be loading your URL into a WebView.
myWebView.loadUrl(http://"+tempUrl);
this is a basic example:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://stackoverflow.com/"));
startActivity(browserIntent);
沒有留言:
張貼留言