I am trying to import from a file. I am getting error message like the following. The error occurred at getColumnIndex. How can I prevent this from happening.
Cursor c = activity.getContentResolver().query(android.provider.Browser.BOOKMARKS_URI,
null,
Browser.BookmarkColumns.TITLE+"=?",
new String[]{title},
null);
int idIndx = c.getColumnIndex(Browser.BookmarkColumns._ID);//error found here
Error in stacktrace
cannot dup fd=1023, size=1048576, err=0 (Too many open files)
cannot map BpMemoryHeap (binder=0x682e50), size=1048576, fd=-1 (Bad file number)
E/JavaBinder( 5561): *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
E/JavaBinder( 5561): java.lang.RuntimeException: No memory in memObj
E/JavaBinder( 5561): at android.database.CursorWindow.native_init(Native Method)
E/JavaBinder( 5561): at android.database.CursorWindow.<init>(CursorWindow.java:518)
E/JavaBinder( 5561): at android.database.CursorWindow.<init>(CursorWindow.java:27)
E/JavaBinder( 5561): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:493)
E/JavaBinder( 5561): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:496)
E/JavaBinder( 5561): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:103)
E/JavaBinder( 5561): at android.os.Binder.execTransact(Binder.java:288)
E/JavaBinder( 5561): at dalvik.system.NativeStart.run(Native Method)