Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Android上打开tabcontent中的文档_Android_Android Tabhost - Fatal编程技术网

在Android上打开tabcontent中的文档

在Android上打开tabcontent中的文档,android,android-tabhost,Android,Android Tabhost,下面是我使用group在TabHost上的tabcontent中显示活动的代码: File file = new File(FilePath); String mimetype = mime_type(FileName); Intent it = new Intent(Intent.ACTION_VIEW); it.setDataAndType(Uri.fromFile(file), mimetype); it.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

下面是我使用group在TabHost上的tabcontent中显示活动的代码:

File file = new File(FilePath);
String mimetype = mime_type(FileName);

Intent it = new Intent(Intent.ACTION_VIEW);
it.setDataAndType(Uri.fromFile(file), mimetype);
it.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);  
Window w = group.getLocalActivityManager().startActivity("Docaument", it);  
View view = w.getDecorView();  
group.setContentView(view);
我想让文档阅读器应用程序的活动放在选项卡内容中。
但不是全屏。
我怎么做