question: private static boolean extractFile ( Context c , String rootAsset , String path ) { AssetManager assetManager = c . getAssets ( ) ; InputStream in = null ; OutputStream out = null ; try { in = assetManager . open ( rootAsset + path ) ; String fullPath = PrefStore . getEnvDir ( c ) + path ; out = new FileOutputStream ( fullPath ) ; byte [ ] buffer = new byte [ 1024 ] ; int read ; while ( ( read = in . read ( buffer ) ) != - 1 ) { out . write ( buffer , 0 , read ) ; } out . flush ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } finally { close ( in ) ; close ( out ) ; } return true ; }
target:  Extract file to env directory