【文件属性】:
文件名称:android各种文件的intent
文件大小:6KB
文件格式:TXT
更新时间:2014-08-24 04:23:50
各种文件的intent
//android获取一个用于打开HTML文件的intent
public static Intent getHtmlFileIntent( String param )
{
Uri uri = Uri.parse(param ).buildUpon().encodedAuthority("com.android.htmlfileprovider").scheme("content").encodedPath(param ).build();
Intent intent = new Intent("android.intent.action.VIEW");
intent.setDataAndType(uri, "text/html");
return intent;
}