Forum Xamarin.Android

Sygic Java Binding Library

PavelPavel CZMember

we are having problems with rewriting JAVA code into C#. It's going about Sygic navigation.
We have working template application writen in JAVA and rewritten corresponding code in C#.

About C# solution:
One JBL project with JAR files and one android app project.
We have set all like in xamarin guide and we are not having any error at build time.

It's possible to use SygicService objects from JBL, but we cannot create connection- we cannot reach onServiceConnected method.
Everything works fine in JAVA but in C# does'nt.

Here are imho important parts of code:

        // start the service,
        // we want to keep the reference to the intent so we can reuse it later
        // to bind and unbind with service
        mBindIntent = new Intent(this, SygicService.class);
    protected void onResume() {
        registerReceiver(mReceiver, mFilter);
        bindService(mBindIntent, mConnection, BIND_AUTO_CREATE);
private ServiceConnection mConnection = new ServiceConnection() {

        // this is called asynchronously when a successful connection has been
        // established
        public void onServiceConnected(ComponentName className, IBinder service) {
            Log.d(LOG_TAG, "Service connected...");
            mService = ((LocalBinder) service).getService();
            if (mService != null) {

Both projects(java&c#) are in zip file.(i dont know why i cannot attach a file here)
Can anyone help please?


  • schoofisschoofis DEMember

    Hi Pavel, I have the same Problem with Sygic, Android and Mono. Did you get it to Work in the End?

  • PavelPavel CZMember

    I have not find a way how to do it in MONO. I made a extra app in java, where i am able to use Sygic. So i am going from my MONO app into java app and back.

    If you know how to implement Sygic in MONO, please let me know. It will help me a lot.

Sign In or Register to comment.