Android Parcelable as wrapper
<p>According to <a href="http://shri.blog.kraya.co.uk/2010/04/26/android-parcel-data-to-pass-between-activities-using-parcelable-classes/" rel="nofollow">this</a>, is better to implement Parcelable then Serializable.</p>

<p>However, i had most of my entities already done and to not implement the interface to each one as it seems too much work for all my entities, I decided to create a Parcelable Wrapper like this.<br>
But is really better? Usually I save 1, 2 objects top and it works fine, but this regarded as bad use of Parcelable, or even the same (bad) thing as Serializable?
</p>

<pre><code>public class SaveParcelable implements Parcelable {
    private HashMap&lt;String, Object&gt; values;

    public SaveParcelable() {
        this.values = new HashMap&lt;String, Object&gt;();
    }

    @SuppressWarnings("unchecked")
    public &lt;T&gt; T getValue(String key) {
        if (this.values.containsKey(key))
            return (T) this.values.get(key);
        else
            return null;
    }

    public void setValue(String key, Object value) {
        this.values.put(key, value);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }
}
</code></pre>
