邮件Intent
String title = getResources().getString(R.string.about_mail_feedback);
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
"mailto","CS@163.com", null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);
startActivity(Intent.createChooser(emailIntent, title));
检查download mangager是否开启
int state = this.getPackageManager().getApplicationEnabledSetting("com.android.providers.downloads");
if(state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED||
state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER
||state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED){
// Cannot download using download manager
}