Android - How to open a URL in Android's web browser from application

How to open an URL from code in the built-in web browser rather than within my application ?

I tried this :
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL));

startActivity(myIntent);

but I got an Exception : "No activity found to handle Intent{action=android.intent.action.VIEW data =www.google.com"

Popular Posts