Serialization in Android?

Put your problem here if it does not fit any of the other categories.

Serialization in Android?

Postby Nemat » Wed Sep 03, 2008 12:24 pm

Hi......

Could you plz provide a tutorial about Serialization of object in Android with an example....??

Thnx in advance
Nemat
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Thu Aug 21, 2008 3:16 pm
Location: Jaipur

Top

Postby plusminus » Wed Sep 10, 2008 6:24 pm

Hi,

why do you need Serialization?

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby cgreen » Mon Sep 15, 2008 9:25 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. OutputStream ostream = ARBITRARY TARGET
  2. ObjectOutputStream oos = new ObjectOutputStream(ostream);
  3. oos.writeObject(YOUR_OBJECT);
  4. oos.flush();
  5. oos.close();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. InputStream istream = ARBITRARY SOURCE
  2. ObjectInputStream ins = new ObjectInputStream(istream);
  3. YOUR_OBJECT = ins.readObject();
  4. ins.close();
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


thats an example, but...
why do you need Serialization?
localhost is the android emulator
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 10 guests