So I'm trying to make sure all streams are closed properly. When I call stream.close(), it just blocks all day long. I see in the demo app, it is called in the Activity's onDestroy() method. This will not work for the apps I am working on, as they only contain one Activity (instead, views are swapped in/out).
I put the close() call in a thread, and it never completes. It just keeps blocking. Any ideas?