I tried your code in my Eclipse,it looks fine.
ins = getResources().getAssets().open("tmp.txt");
byte[] buffer = new byte[1024];
int length = 0;
while((length = ins.read(buffer)) > 0){
Log.d(LOG_TAG, new String(buffer,0,length));
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---