Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen the application encourters a long name file, the process dies
    primarykey
    data
    text
    <p>the code goes:</p> <pre><code>android.util.Log.i("QRDFileExplorer","loadDir().before=feaffdsafdsf"); String[] names=f.list(); android.util.Log.i("QRDFileExplorer","loadDir().string names="); </code></pre> <p>The codes go well at the most of time, but if there is a file that has a long file name (more than 90 chinese characters, which is about 180 bytes) under a directory, then when it comes to <code>f.list()</code>, the entire process dies without throwing any exception.</p> <p>logcat:</p> <pre><code>04-10 16:46:49.129: I/QRDFileExplorer(16413): loadDir().before=feaffdsafdsf 04-10 16:46:49.129: A//system/bin/app_process(16413): stack corruption detected: aborted 04-10 16:46:49.149: E/COREDUMP(16500): /sdcard1/coredump Read-only file system 04-10 16:46:49.159: I/WindowState(586): WIN DEATH: Window{41920440 com.android.qrdfileexplorer/com.android.qrdfileexplorer.QRDFileExplorer paused=false} 04-10 16:46:49.159: I/ActivityManager(586): Process com.android.qrdfileexplorer (pid 16413) has died. 04-10 16:46:49.169: W/ActivityManager(586): Force removing ActivityRecord{416bd738 com.android.qrdfileexplorer/.QRDFileExplorer}: app died, no saved state 04-10 16:46:49.239: W/InputMethodManagerService(586): Got RemoteException sending setActive(false) notification to pid 16413 uid 10017 </code></pre> <p>The <code>android.util.Log.i("QRDFileExplorer","loadDir().string names=");</code> log is not printed, so it must be a matter of <code>String[] names=f.list();</code>, I belive the code is right, we all do this way to list the files, so it is a problem about the phone plat right? It is something about the memory or else. Anyone who knows more about this and how to resolve this for at least to give user a warning other than to shut down suddenly.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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