android intent打开各种文件(txt、apk、ppt,flutter下载功能
Intent intent;
switch (v.getId()){
case R.id.button_txt:
filePath = “/storage/emulated/0/hello2.txt”;
intent = FileUtils.openFile(this,filePath);
startActivity(intent);
break;
case R.id.button_apk:
filePath = “/storage/emulated/0/app-debug.apk”;
intent = FileUtils.openFile(this,filePath);
startActivity(intent);
break;
case R.id.button_ppt:
filePath = “/storage/emulated/0/新建 PPT 演示文稿.ppt”;
intent
android intent打开各种文件(txt、apk、ppt,flutter下载功能最先出现在Python成神之路。
共有 0 条评论