[Update 2014-09-02]: Since this original post, a plugin has been made for Android Studio/IntelliJ by Michał Charmas with contributions from me as well. See android-parcelable-intellij-plugin for installation instructions.
I have created a tool for making the methods needed for implementation of Android’s Parcelable interface within a pre-existing class.
Open the parcelabler tool.
Copy the full code of the class into the “Code” text field.
Example code:public class Photo { /** * Caption for the photo */ public String caption; public int commentCount; public long photoId; public boolean isDefault; public Bundle metadata; public CommentHandler commentHandler; }Click “Build” to create the methods
Copy the methods into your class
Add
implements Parcelableto your class definition
Now you should hopefully have a working implementation of Parcelable in your class.