1

Reading object from file throws IllegalAccessException

view story
linux-howto

http://stackoverflow.com – I know that I shouldn't use this approach but for testing purposes I am. I created a class that extends LinearLayout and implements Serializable to be able to save the whole layout to a file. After adding views to this layout I'm writting it successfully to a file. But when reading back the object I get an error IllegalAcessException; Is there any way to solve this issue? CustomLayout.class public class CustomLayout extends LinearLayout implements Serializable{ public static final long serialVersionUID = 1000; public LinearLayout_Serializable(Context context) { super(context); } publ (HowTos)