Switch to BufferedOutputStream 
Switch to BufferedOutputStream 

Android's StrictMode will throw exceptions and crash because this file uses unbuffered io. This switches to BufferedOutputStream and adds try/finally blocks to ensure subsequent errors are prevented should something fail.
drewhannay/dexmaker,crittercism/dexmaker,linkedin/dexmaker,linkedin/dexmaker,drewhannay/dexmaker