如何从代码启动 Sygic Navigation

发布于 2024-08-17 16:19:51 字数 237 浏览 1 评论 0原文

我不确定这里实际上是否允许这样做,但由于我通常会去 StackOverflow 搜索答案(并且在许多情况下找到答案),我想我会问一个问题,然后自己回答 =)

所以,我有 Sygic Navigation om我的 HTC Hero,由于我需要从代码启动该应用程序(然后使用 API 来控制它),我对如何启动它进行了一些调查 - 使用意图是什么。

所以,问题是:我应该使用什么 Intent 或 Activity 来启动应用程序?

Im not sure this is actually allowed here, but since I usually go to StackOverflow and search for answers (and in many cases find the answers) I thought I would ask a question and then answer it myself =)

So, I have Sygic Navigation om my HTC Hero, and since I need to start that app from code (and then use the API to control it) I did some investigation on how to start it - what intent to use.

So, the question is: what Intent or Activity should I use to start the app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初心 2024-08-24 16:19:51

答案是:

Intent i = new Intent();
i.setClassName("com.sygic.drive","com.sygic.drive.SygicDriveActivity");
startActivity(i);

=)

The answer is:

Intent i = new Intent();
i.setClassName("com.sygic.drive","com.sygic.drive.SygicDriveActivity");
startActivity(i);

=)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文