开发者

How to start Sygic Navigation from code

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?


This is the official answer to this question: http://help.sygic.com/entries/22207668-Developers-Only-Sygic-implementation-to-your-app-Android-SDK-iPhone-SDK-Url-Handler-


The answer is:

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

=)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜