How to start Sygic Navigation from code

蓝咒 提交于 2020-01-03 03:32:07

问题


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?


回答1:


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-




回答2:


The answer is:

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

=)



来源:https://stackoverflow.com/questions/2076093/how-to-start-sygic-navigation-from-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!