java - Serialize own class -


i'm experiencing problems serialization of java , haven't found error. want serialize class, save , read again. class want serialize:

public class musicitem implements serializable {   private static final long serialversionuid = 6429052113846297403l;   public string title;   public string album;   public string artist;   public string art;   public string musiclocation; } 

and when want write following error:

08-07 14:21:37.723: w/system.err(9557): java.io.notserializableexception:  de.godev.gomusic.mainactivity 

i hope can me.

thanks in advance,

the class not getting serialized de.godev.gomusic.mainactivity

please post source of mainactivity class well


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -