Hi,

I'm importing this project from another file, and everything else goes well 
except for this strange piece of code snippet

CODE: SELECT ALL <http://www.anddev.org/#>               MemoryFile 
memoryFile = new MemoryFile(null, length);
               memoryFile.writeBytes(buffer, 0, 0, length);
               memoryFile.deactivate();
               return AssetFileDescriptor.fromMemoryFile(memoryFile);

eclipse complains that deactivate function does not exist in the MemoryFile 
class,
as well as AssetFileDescriptor not having the fromMemoryFile function.
This is strange because according to the documentation, 
deactivate<http://hi-android.info/doc/android/os/MemoryFile.html#deactivate()>
and 
fromMemoryFile<http://www.androidjavadoc.com/2.3/android/content/res/AssetFileDescriptor.html#fromMemoryFile(android.os.MemoryFile)>
 functions 
exist.
But the SDK can't seem to find them, or the android.jar doesn't seem to 
contain them.

I changed the "Project Build Target" on Properties->Android from Android 
2.1 to 2.3 but the problem persists.
I also did a wide search on the net, but oddly enough, "nobody" has ever 
asked on the same problem.

Any advice? [image: :)]
Thanks. 

-- 
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

Reply via email to