¡@

Home 

2014/10/16 ¤W¤È 08:26:46

android Programming Glossary: transfertask

Anyone Have MediaPlayer Working with ParcelFileDescriptor and createPipe()?

http://stackoverflow.com/questions/12920429/anyone-have-mediaplayer-working-with-parcelfiledescriptor-and-createpipe

assets getContext .getResources .getAssets new TransferTask assets.open uri.getLastPathSegment new AutoCloseOutputStream.. thread does a typical stream to stream copy static class TransferTask extends Thread InputStream in OutputStream out TransferTask.. extends Thread InputStream in OutputStream out TransferTask InputStream in OutputStream out this.in in this.out out @Override..

Anyone Have MediaPlayer Working with ParcelFileDescriptor and createPipe()?

http://stackoverflow.com/questions/12920429/anyone-have-mediaplayer-working-with-parcelfiledescriptor-and-createpipe

pipe null try pipe ParcelFileDescriptor.createPipe AssetManager assets getContext .getResources .getAssets new TransferTask assets.open uri.getLastPathSegment new AutoCloseOutputStream pipe 1 .start catch IOException e Log.e getClass .getSimpleName.. pipe for uri.toString return pipe 0 where the background thread does a typical stream to stream copy static class TransferTask extends Thread InputStream in OutputStream out TransferTask InputStream in OutputStream out this.in in this.out out @Override.. thread does a typical stream to stream copy static class TransferTask extends Thread InputStream in OutputStream out TransferTask InputStream in OutputStream out this.in in this.out out @Override public void run byte buf new byte 1024 int len try while..