Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Renato Degelo
Thanks.. Seems like i have a lot of options instead of aidl.. i tought aidl is the only option. I will check it. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/IPC-and-Mono-for-Android-tp5711168p5711283.html Sent from the Mono for Android mailing list archive at

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
next question you should ask your self is, is this a faf? Can I drop the service and go with a broadcast recr instead? On Fri, Aug 3, 2012 at 2:33 PM, Sayed Arian Kooshesh wrote: > or alternatively, if you don't use any activities, (I'm not sure if a > service can register recvr) you can register

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
or alternatively, if you don't use any activities, (I'm not sure if a service can register recvr) you can register one in the manifest. You send to it via something like: Intent i = new Intent("filterIputinManifest"); ... (fill extras here) sendbroadcast(i); Not literal code but there are TONS o

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
yeah, you can use broadcast receivers. Use register receiver in your on start and unregister on stop. Similarly you put extras to pass around info. On Fri, Aug 3, 2012 at 2:30 PM, Renato Degelo wrote: > The problem is that i want access this Service from other applications. Is > it > possible wi

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/App/LocalServiceActivities.cs#L64 also one good information sources to check before coming here is the list archives. On Fri, Aug 3, 2012 at 2:23 PM, Sayed Arian Kooshesh wrote: > http://developer.android.com/guide/components/bound

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
http://developer.android.com/guide/components/bound-services.html On Fri, Aug 3, 2012 at 2:22 PM, Sayed Arian Kooshesh wrote: > why don't you use a binder? I have an example in java and I pass > information back and forth both strings and ints (strings for json if I > need a complex object) > >

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
why don't you use a binder? I have an example in java and I pass information back and forth both strings and ints (strings for json if I need a complex object) On Fri, Aug 3, 2012 at 10:53 AM, Renato Degelo wrote: > aidl -- Extreme Knowledge is not something for which he programs a computer

Re: [mono-android] IPC and Mono for Android

2012-08-06 Thread Jonathan Pryor
On Aug 3, 2012, at 3:30 PM, Renato Degelo wrote: > The problem is that i want access this Service from other applications. Is it > possible without IPC? Yes. You can invoke services remotely by using Messages: http://developer.android.com/reference/android/app/Service.html#RemoteMessen

Re: [mono-android] IPC and Mono for Android

2012-08-03 Thread Renato Degelo
The problem is that i want access this Service from other applications. Is it possible without IPC? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/IPC-and-Mono-for-Android-tp5711168p5711174.html Sent from the Mono for Android mailing list archive at Nabble.com. _

Re: [mono-android] IPC and Mono for Android

2012-08-03 Thread Miha Markic
AFAIK you can run a background service in your process, that way you don't need IPC. There is even a m4a demo. Renato Degelo wrote: Hi, i have to make a service to synchronize some data in background. I've read that i cannot use a service in the same thread for this purpose, and M4A don't sup

[mono-android] IPC and Mono for Android

2012-08-03 Thread Renato Degelo
Hi, i have to make a service to synchronize some data in background. I've read that i cannot use a service in the same thread for this purpose, and M4A don't support by default this operation because of the AIDL. So i've researched a little and figured out that i have to write the aidl in java, c