New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
n00b question on saving instance state of custom objects
Post Body

This is my first post on this sub, so if I didn't follow any rules, let me know. I want to know the best way to save my instances of my java class ActivitiesCompleted. SharedPrefs? Making ActivitiesCompleted a Parcelable and then saving it to the bundle? Or what other options do I have? Thanks!!!

I have a java class whose constructor is...

public ActivitiesCompleted() { ITEM_MAP = new HashMap<String, ActivityBank>(); ITEMS = new ArrayList<ActivityBank>(); }

Where ActivityBank is
public ActivityBank(String id, String content) { this.id = id; this.content = content; }

Author
Account Strength
90%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
711
Link Karma
430
Comment Karma
281
Profile updated: 3 days ago
Posts updated: 4 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago