[android-developers] How to read data from ./asset/ files correctly?

2011-05-30 Thread progman
I do not know how to get datasize from inputstream and i read data two time :-) first time i read data by blocks of 4096 bytes and know datasize. next i create new array with correct size and read data to this array. i think this is incorrect and slow. how to do right? may be i can to resize the

Re: [android-developers] How to read data from ./asset/ files correctly?

2011-05-30 Thread TreKing
On Sun, May 29, 2011 at 1:02 PM, progman progman@gmail.com wrote: I do not know how to get datasize from inputstream http://developer.android.com/reference/java/io/BufferedInputStream.html -