Back to project page bad.
The source code is released under:
Copyright (C) 2013 Madis Pink Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
If you think the Android project bad listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.madisp.bad.demo; //from ww w .j a va 2s . com import android.app.Activity; import com.madisp.bad.Freezer; import com.madisp.bad.Persist; import com.madisp.bad.eval.BadVar; import com.madisp.bad.lib.BadFragment; public class PersistFragment extends BadFragment { @Persist(key = "woopwoop") public BadVar<String> var = new BadVar<String>(null); private Freezer freezer; public PersistFragment() { super(R.layout.persist); } @Override public void onAttach(Activity activity) { super.onAttach(activity); freezer = new Freezer(activity); freezer.start(getScope()); } @Override public void onDetach() { super.onDetach(); freezer.stop(); } }