2013年5月18日 星期六

URL


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);
share|improve this answer

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...