如何从code开始Sygic导航code、Sygic

2023-09-06 23:36:25 作者:恰好心动

林不知道这其实是在这里允许的,但因为我通常去计算器和搜索答案(在许多情况下找到答案)我想我会问一个问题,然后回答自己=)

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 =)

所以,我有Sygic导航OM我的HTC Hero,因为我需要开始从code,它的应用程序(然后使用API​​来控制它)我做了关于如何启动它的一些调查 - 什么意图使用。

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?

推荐答案

答案是:

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

=)