1

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?

Ted
  • 19,727
  • 35
  • 96
  • 154

2 Answers2

2

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-

manojs001
  • 13
  • 1
  • 4
Valelik
  • 1,743
  • 2
  • 18
  • 22
  • I can confirm that this works. Sygic can also be launched by using geo uri but the application seems to ignore all of the parameters this uri supports. – TJ Thind Mar 26 '13 at 21:27
0

The answer is:

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

=)

Ted
  • 19,727
  • 35
  • 96
  • 154
  • 1
    Unless Sygic officially supports this, bear in mind that it might change in future releases of their application, causing yours to break. – CommonsWare Jan 16 '10 at 12:44
  • 1
    I actually asked Sygic for the "path" above, they gave me different from above, but they didnt really know either =) It might very well stop functioning if they change it, but we are gonna detect that if and when it happens =) thx! – Ted Jan 16 '10 at 15:01