"Dad, can I borrow the car?"

I can’t sleep tonight, so I’ll tell a story. I think I was 18 when this happened, maybe 19.

I ask my dad to let me borrow his car, he says yes, and I drive to a party with a friend of mine. The party is fun until my friend gets in a fight, punches his hand through a window, and cuts a big gash in his forearm. At one point I see his forearm and there’s a chunk of it that’s completely gone, and I can see the bone in his arm; it’s pretty bad.

What I learned today, February 23, 2015 (mostly Android)

This is a collection of notes about what I learned today, February 23, 2015. Most of it is about Android.

I need to refresh my cursor data set before calling notifyDataSetChanged

When (a) adding, editing, or deleting items in a ListView and (b) using a CursorAdapter, I need to update my cursor object before calling notifyDataSetChanged. I created this method, which I call from my fragment’s onResume method:

Syndicate content