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