I am getting following error while trying to test my application on
Emulator with Android 3.1platform


01-13 01:52:41.093: W/System.err(485): java.io.IOException: Invalid
argument
01-13 01:52:41.169: W/System.err(485):  at
org.apache.harmony.luni.platform.OSFileSystem.read(Native Method)
01-13 01:52:41.195: W/System.err(485):  at dalvik.system.BlockGuard
$WrappedFileSystem.read(BlockGuard.java:172)
01-13 01:52:41.222: W/System.err(485):  at
java.io.FileInputStream.read(FileInputStream.java:208)


Here is piece of code:
Line 1: AssetFileDescriptor fd =
this.getContentResolver().openAssetFileDescriptor(vcardURI,"r");
Line 2: InputStream inStream = fd.createInputStream();

Line 3: int bytesRead = inStream.read(byte[], 0, length);

When code reaches to Line 3 it throws error Invalid Argument. The same
code was working fine for previous release.

Could you please help me found out the reason!!!

P.S. My guess is that it could be happening because of some
application rights conflict. but not sure what..

Thanks in Advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to