Android TeamViewer带参数的意图(Intent)

6

有没有一种方法可以在安卓设备上启动“TeamViewer”应用程序(或其他类似的应用程序),并指定需要控制设备的“用户ID”和密码?

例如:

Intent i = getPackageManager().getLaunchIntentForPackage("com.teamviewer");
i.putExtra("id_key", "123456789");
i.putExtra("password", "1234");
startActivity(i);

Thank you

1个回答

4
Intent i = getActivity().getPackageManager().getLaunchIntentForPackage("com.teamviewer.teamviewer.market.mobile");
      i.putExtra("id_key", "123456789");
      i.putExtra("password", "1234");
      startActivity(i);

对于 com.teamviewer.host.market 怎么样?我尝试了 id_keypassword 但都没有成功。 - Razgriz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接