• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Object serialization

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi there,

If my cell phone tries to talk with server socket and in return server sends the object back to cell phone's MIDP application. And my MIDP application is able to read that object ?.

thanks and regards,

gurpreet
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, object serialization is not supported on CLDC.
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gurpreet Saini:
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet



To SE T 610, I used a trick, before the jar is downloaded, I wrote a txt file into the jar according to the client information. Not a good solution, who has a better solution, I'd like to hear it!!!

Thanks!
[ May 14, 2004: Message edited by: Roseanne Zhang ]
 
Michael Yuan
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gurpreet Saini:
Hi yuan,

If I use CDC then will it be able to support object serialization. and Secondly, if I use SE T 610 then how will be to get data from server through XML ?.

regards

gurpreet



1. I think CDC supports serialization. But you need to check the doc.

2. Use an XML parser (e.g., kXML) to reconstruct XML structure into Java objects.
 
Michael Yuan
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Roseanne Zhang:


To SE T 610, I used a trick, before the jar is downloaded, I wrote a txt file into the jar according to the client information. Not a good solution, who has a better solution, I'd like to hear it!!!

Thanks!

[ May 14, 2004: Message edited by: Roseanne Zhang ]



If you just need to tell the MIDlet about its host environment, you can just add custom attributes to the jad file. Then, in the provisoning server, you can redirect clients to different jad files based on the device info embedded in their HTTP header.
 
reply
    Bookmark Topic Watch Topic
  • New Topic