How to start Sygic Navigation from code

2019-06-08 05:38发布

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?

2条回答
不美不萌又怎样
3楼-- · 2019-06-08 06:18

The answer is:

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

=)

查看更多
登录 后发表回答