Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.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中打开Microsoft SharePoint应用程序的特定活动?_Android_Sharepoint - Fatal编程技术网

如何从我的应用程序在Android中打开Microsoft SharePoint应用程序的特定活动?

如何从我的应用程序在Android中打开Microsoft SharePoint应用程序的特定活动?,android,sharepoint,Android,Sharepoint,我想从另一个Android应用程序(Kotlin/Java)打开开发站点或Microsoft SharePoint Android应用程序的其他屏幕 现在只能打开应用程序,无法将其重定向到开发人员站点或Microsoft SharePoint应用程序的其他屏幕 当我尝试从另一个Android应用程序打开任何其他Microsoft SharePoint应用程序的活动时,应用程序强制关闭 下面的代码显示我们可以从另一个应用程序打开Microsoft share point应用程序 Intent i

我想从另一个Android应用程序(Kotlin/Java)打开开发站点或Microsoft SharePoint Android应用程序的其他屏幕

现在只能打开应用程序,无法将其重定向到开发人员站点或Microsoft SharePoint应用程序的其他屏幕

当我尝试从另一个Android应用程序打开任何其他Microsoft SharePoint应用程序的活动时,应用程序强制关闭

下面的代码显示我们可以从另一个应用程序打开Microsoft share point应用程序

 Intent intent =
 getPackageManager().getLaunchIntentForPackage("com.microsoft.sharepoint");
 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);
但当我们试图打开SharePoint应用程序的另一个屏幕时,下面的代码崩溃了

 Intent intent = new Intent(Intent.ACTION_SEND);
 intent.setClassName("com.microsoft.sharepoint",
 "com.microsoft.sharepoint.DESIRED_ACTIVITY");
 startActivity(intent);
*所需的_活动=SharePoint应用程序的任何其他屏幕

 Intent intent = new Intent(Intent.ACTION_SEND);
 intent.setClassName("com.microsoft.sharepoint",
 "com.microsoft.sharepoint.DESIRED_ACTIVITY");
 startActivity(intent);
任何线索都将不胜感激


您可以尝试以下两个选项:-

Intent intent = new Intent();
intent.setComponent(new ComponentName("com.microsoft.sharepoint", "com.microsoft.sharepoint.DESIRED_ACTIVITY"));
startActivity(intent);


嗨,但问题仍然存在。。。android:export=“false”实际上是我在androidmanifest.xml文件中看到的代码,如果export=false,那么他们就不想允许其他应用程序启动此活动。