[android-developers] FLAG_ONEWAY for asynchronous communication between services

2008-11-25 Thread nimbus83
Hi, for research reasons I want to study the possibility for asynchronous communication between services in Android. Currently I'm using the FLAG_ONEWAY option in the AIDL interface of the services. What I see is that the asynchronous commmunication works fine when the services are implemented in

[android-developers] Re: FLAG_ONEWAY for asynchronous communication between services

2008-11-26 Thread nimbus83
Thank you for your answer. On 25 Nov., 19:14, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: > A oneway interface currently only applies when an IPC is needed to go > through the interface -- that is when the callee and caller are running in > different processes -- and is handled by Binder, the lo

[android-developers] Re: FLAG_ONEWAY for asynchronous communication between services

2008-11-27 Thread nimbus83
> Why are you wanting to run the service in another process?  Why not just run > all of this stuff in the same process?  Then you don't need aidl at all, you > can just do direct Java calls between all of your classes through whatever > Java API you want, and you can introduce asynchronicity at an

[android-developers] Re: import error for aidl

2008-11-27 Thread nimbus83
I have the same problem with another class from the android.os package. Can anybody suggest a solution to this problem? How is this done with custom classes implementing the Parcelable interface? Can such aidl definitions importing external classes be compiled without errors while using the Eclips

[android-developers] Exchanging Messages between services containing Bundles with self developed Parcelables

2008-12-01 Thread nimbus83
Hello, It try to exchange objects of type android.os.Message between services in different processes. I add a bundle to each message. This bundle contains MyMessage object, which implements the Parcelable interface. I do it like this: Message message = new Message(); Bundle bundle = new Bundle(

[android-developers] Exchanging Messages between services containing Bundles with self-developed Parcelables

2008-12-01 Thread nimbus83
Hello, It try to exchange objects of type android.os.Message between services in different processes. I add a bundle to each message. This bundle contains MyMessage object, which implements the Parcelable interface. I do it like this: Message message = new Message(); Bundle bundle = new Bundle(

[android-developers] ConnectivityManager with the emulator

2008-12-08 Thread nimbus83
Hello, I want to implement with the emulator an application that receives information when the network connection is connected or disconnected. How can I register a receiver that gets the changes in the network connection? I have tried this: public class ConnectionChangeReceiver extends

[android-developers] Re: ConnectivityManager with the emulator

2008-12-08 Thread nimbus83
Thank you David! In the meantime I found the right action for the IntentFilter. It is "android.net.conn.CONNECTIVITY_CHANGE". On 8 Dez., 18:58, "David Turner" <[EMAIL PROTECTED]> wrote: > pressing F8 will toggle the emulator network on/off. > > On Mon, Dec 8