Forum Xamarin.Android

Is it possible to send intent data to a Java service?

syang10syang10 USMember ✭✭

I have seen some examples of starting a Service from an Activity and passing data to the Service via Intent. However this seems to imply that you have the Service class or that they are in the same language since you have to start the service from the Activity. I am wondering if it is possible to start a Service that is written in Java from an Activity that is written with C# (Xamarin)? Or if it is possible to send the Intent to the Java service from the Xamarin Activity?

Best Answer


  • robbitrobbit CNMember Xamurai

    If I am right, you want to use an Activity (C#) to start a Service (Java) and pass data.

    If you want to do this, you need put them into different project C# and Java. We can't use java in a C# project. But you can start AppB's Service in AppA.

  • syang10syang10 USMember ✭✭

    Thanks for the reply? Do you know of any code samples that show this? I'm not sure how you are supposed to reference AppB that is in a separate project from AppA.

Sign In or Register to comment.