On 09/11/2012, at 08:24, Alexander Christian <[email protected]> wrote: > Hey Zigor, > > Am 09.11.2012 07:31, schrieb Zigor Salvador: >> Yes, MINA works on Android! > Great ... >> I think you won't be able to use built-in serialization, though. Dalvik is >> not a standard JVM... > I know, it's a bit offtopic: But do you have some more details (link?) about > that? My RMI replacement uses a lot of serialization …
Well, Dalvik bytecode and Java bytecode are inherently different. For instance, serializing an object in a JVM and inflating it in Dalvik won't work (at least not out of the box). My approach has been to use Jackson (JSON) to map objects to JSON in the source machine, transmit them over the network and have the destination machine decode the JSON to recreate the objects. It's actually simpler than it sounds, thanks to Jackson's ObjectMapper implementation. Zigor. >> Other than that, I've had no issues. >> >> My deployments include Android 2.3 and Android 4.1 using Nexus S smartphones >> and the latest version of MINA. In fact, I think they are a great >> combination...:-) > Thanks for sharing this. > > regards, > Alex
