Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I prevent database access error message of "too many open files" in android?
    text
    copied!<p>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. </p> <pre><code>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 </code></pre> <h2>Error in stacktrace</h2> <pre><code>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.&lt;init&gt;(CursorWindow.java:518) E/JavaBinder( 5561): at android.database.CursorWindow.&lt;init&gt;(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) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload