Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using AIDL with Mono for Android

Not being patient enough for the Mono for Android book I started going through the Android programming constructs and translate them to the Mono infrastructure. Seems like most the time the good folks at Xamarin and I think along similar lines so progress has been relatively pain free but on the AIDL issue I'm stuck. Was AIDL implemented? If so, how can I use it? If not, what is the recommended way to use IPC?

like image 325
Shy Avatar asked Dec 21 '22 07:12

Shy


1 Answers

AIDLs are finally supported. To use them add aidl files into your project and set Build Action to AndroidInterfaceDefinition. Xamarin.Android will generate cs files, that are compiled together with your source code, so you can use aidl interfaces in your c# code. VS2012 still marks them as unknown/errors in code, but in the end, code is compiled and working.

like image 84
Michal Dobrodenka Avatar answered Jan 14 '23 13:01

Michal Dobrodenka