Android : Sending a predefined class object to a service using intents

on Sunday, August 3, 2014


How can I send an object to a service using intents? I searched in internet. what I found was "using serializable or parcelable". However what if my object is not serializable or parcelable? My exact requirement is sending BluetoothDevice class object to a service. Please don't give any suggestions like, send address of bluetooth device (as it is a string) to the service, then compare this against addresses of paired devices. Bcz selected device might not have been paired before. Thanks in advance.


0 comments:

Post a Comment