Search code examples
androidandroid-serviceinter-process-communicatandroid-service-binding

Can non-serializable and non-parsable objects be sent from a RemoteService to an Activity?


The documentation makes use of the Handler and Message classes to pass data between a remote service and the activity. This however limits the data sent to serializable and parseable classes which can be sent through a Bundle.

Is there a method of passing non-serializable and non-parsable objects?


Solution

  • Ok, after researching this further it seems impossible to communicate any non-serialized or non-parcelable object to or from a view. The closest it gets seems to be RemoteViews which are a parcelable view that seems to be able to be sent across processes.