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. How to develop new android apps considering that the app will also be developed for other phones

Hi,

I want to know what kind of general strategy i would have to follow
while developing android apps in order to easily make my app available
to other phones .. in other words easily transferable.

For example, i would like to know the basic strategy i need to follow
to make an app available to an iphone OS,blackberry OS, Windows and
Nokia.

It would be nice to develop an app that translates existing apps from
one phone to another despite the differences in libraries, languages
and security... not to mention hardware.. thats another s

Just want to make sure that i am starting my project right ....

--------------------------------------------------------------------------------
Thank you,
Christian Chabtini
Software Engineer
EMIDA

-- 

2. APIs for stereoscopic camera support in Android 3.0?

Apparently, some Honeycomb (Android 3.0) tablets like the T-Mobile G-
Slate are coming out with dual rear-facing cameras for stereoscopic
video recording
http://www.androidpolice.com/2011/02/01/t-mobile-releases-details-and-images-of-the-lg-g-slate-honeycomb-tablet/

I'd like to do some depth mapping and other real-time processing of
the live stereo video feed, but cannot find the relevant APIs for
working with stereoscopic camera input in the Android 3.0 Preview SDK.
Am I missing something, is it coming with the final Android 3.0 SDK,
or is this again a manufacturer's proprietary extension that is not
(yet) covered by an official Android 3.0? I know that Android 3.0 has
support for multiple cameras, but that is here insufficient to tell
for instance which cameraId represents the left camera and which
cameraId represents the right camera. Camera.CameraInfo currently only
offers CAMERA_FACING_BACK and CAMERA_FACING_FRONT, which is irrelevant
here. In the Preview SDK there is no
"Camera.CameraInfo.CAMERA_FACING_LEFT" or
"Camera.CameraInfo.CAMERA_FACING_RIGHT" or generalization thereof as
needed to prevent a possible fragmentation of conventions.

Thanks!


The vOICe for Android
http://www.seeingwithsound.com/android.htm

-- 

3. question regarding media playback in browser

4. Bluetooth getting "Not able to register SDP record" - why?

5. multitouch di nexian journey

6. Fwd: Plz forward to many gud hearts like u...

7. Motorola cliq