[英]What are permissions required to call(launch) other apps like whatsapp in my case from our app
My code: 我的代码:
Button buton = (Button) findViewById(R.id.button);
buton.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
Intent inte = getPackageManager().getLaunchIntentForPackage("com.whatsapp");
if (inte != null)
startActivity(inte);
else
toast.show();
You need to verify if the activity of another app that you are willing to run is exported or not. 您需要验证是否要导出您愿意运行的其他应用程序的活动。 The launcher activity of whatsapp is surely exported so you probably don't need any permission.
whatsapp的启动器活动肯定会导出,因此您可能不需要任何权限。
You do not need any permission, you can just launch it through an intent. 您不需要任何权限,只需通过意图启动即可。 Pay attention, in some cases this might lead to app being refused from the Store (If you invoke another app - like whatsapp - since it might not be fully permitted by whatsapp)
请注意,在某些情况下,这可能导致应用程序被拒绝从商店(如果您调用另一个应用程序 - 如whatsapp - 因为它可能不被whatsapp完全允许)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.