Possible Duplicate:
How can I open a URL in Android’s web browser from my application?
Start the android browser
I check some reference I use below code to call Default Browser in main activity.
Intent intent= new Intent();
intent.setAction("android.intent.action.VIEW");
Uri content_url = Uri.parse("www.baidu.com");
intent.setData(content_url);
intent.setClassName("com.android.browser","com.android.browser.FMSActivity");
startActivity(intent);
And then modify xml:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file" />
</intent-filter>
But I get the Log error:
12-21 05:54:56.367: E/AndroidRuntime(277): at sz.zd.SzActivity.onCreate(SzActivity.java:19)
How to call Default Browser in main activity?