Caused by: java.io.NotSerializableException: android.os.Message

by Pierre Henry » Wed, 25 Nov 2009 04:40:04 GMT


Sponsored Links
 I get a * NotSerializableException* exception trying to send objects
between two processes.

Is it possible to do client/server sending of serializable objects
between two processes ?

--



Caused by: java.io.NotSerializableException: android.os.Message

by Mark Murphy » Wed, 25 Nov 2009 04:45:36 GMT


 


Use AIDL and remote services for that:

 http://developer.android.com/guide/developing/tools/aidl.html 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in Germany, 18-22 January 2010:  http://bignerdranch.com 

--


Sponsored Links


Caused by: java.io.NotSerializableException: android.os.Message

by Pierre Henry » Wed, 25 Nov 2009 20:28:55 GMT


 Thanks Mark.

So , If I understand correctly, the communications between processes
is governed by IPC mechanism.

If I want to connect to a server from external jvm process, say a
client in his own vm, I can use the classic socket mechanism
to realize a connection ?







--



Caused by: java.io.NotSerializableException: android.os.Message

by Yuri Morais » Sat, 05 Dec 2009 02:38:57 GMT


 Pierre,


Yes, Android defines a default IPC mechanism (by means of AIDL)



Yes, sockets are also provided by Android. It can be used in place of
AIDL to connect two processes in the same device, as well as two
processes communicating through the network.
If you want distributed process, it may be important to read this:
 http://developer.android.com/guide/developing/tools/emulator.html #emulatornetworking

--
Yuri Morais








--



Other Threads

1. Getting the frequency of gps signals

Hey,

i already know the frequency for the carrier signal and all the
technology around gps.

The question i have:

Is it somehow possible to get the received frequency of the signal? I
am asking, because i want to derive some functions from doppler
navigation for which i need the received frequency of the gps signal,
in order to compare it with the carrier frequency.

I know, that this is very hardware related, are there any
possibilities to grab the information i want to?

--~--~---------~--~----~------------~-------~--~----~

2. Is that possible to use navigation service of google in MapView?

Hi,

I am wondering that is that possible to use navigation service of
google in MapView? I have searched that, but find no article talking
about that. If I can use the service of navigation, that could be
nice.

Thanks
Victor Lin.
--~--~---------~--~----~------------~-------~--~----~

3. how to pause timer thread on menu click

4. sensor event and augmented reality

5. Alternatives to Multitouch

6. XML Documentatin?

7. everything in my Gallery stays dim?