Unfortunately, Harri is right. The whole VM crashes regardless whether the 
code is surrounded with a try/catch block or not.
Following the stack trace I posted before, VM crash is recorded in logcat

12-12 10:40:01.942: E/dalvikvm(1914): VM aborting
12-12 10:40:01.942: A/libc(1914): Fatal signal 11 (SIGSEGV) at 0xdeadd00d 
(code=1), thread 1914 (application.name)

I guess my best shot is filing a bug for Android and possibly trying to 
avoid using File.list() entirely. Are there any alternatives to this method?


Martin

On Wednesday, December 11, 2013 8:16:32 PM UTC+1, Harri J. Smatt wrote:
>
> Hopefully something like this is doable - but since the crash seems to 
> originate from DalvikVM itself - it’s possible there is nothing one can do 
> on Java level about this issue Martin is facing  :(
>
> —
> H
>
> On 11 Dec 2013, at 19:09, Steve Gabrilowitz <[email protected]<javascript:>> 
> wrote:
>
> You could surround the appropriate code with a try catch block, not ideal 
> but better than a crash!
>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to