[android-developers] Re: Activity gets Terminated using AssetManager list() on 2.1 - 2.2
Hello Ender, I have the same problem using 2.3.3. Did you ever find out what caused it? I have been looking into this for over a day now :( Cheers On Friday, 10 June 2011 20:45:56 UTC+1, Ender wrote: > > Hello > > I am creating an app that gets 600 HTML files from the assets file > when I try to get a the list of files using the AssetManager list() > the the application terminates. When I debug and I try to step threw > it The application just stops I don't get no errors in the LogCat. I > also noticed that when I remove some files in the assets the > application works fine. > > This only happens on android 2.1 and android 2.2 but when I run it on > 2.3 it works fine > > here is part of my code > AssetManager assets = getApplicationContext().getAssets(); > String[] list; > try { > list = assets.list("cantos"); > } catch (IOException e) { > // TODO Auto-generated catch block > Log.d("IO",e.getMessage()); > } > > > Could I be overflowing the heap? I really don't know what is going on > hope you guys can help -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activity gets Terminated using AssetManager list() on 2.1 - 2.2
Hi Ender, I have exactly the same issue on 2.3.3. Did you ever find out what caused it? I have been looking into this issue for more than a day now :( Cheers On Friday, 10 June 2011 20:45:56 UTC+1, Ender wrote: > > Hello > > I am creating an app that gets 600 HTML files from the assets file > when I try to get a the list of files using the AssetManager list() > the the application terminates. When I debug and I try to step threw > it The application just stops I don't get no errors in the LogCat. I > also noticed that when I remove some files in the assets the > application works fine. > > This only happens on android 2.1 and android 2.2 but when I run it on > 2.3 it works fine > > here is part of my code > AssetManager assets = getApplicationContext().getAssets(); > String[] list; > try { > list = assets.list("cantos"); > } catch (IOException e) { > // TODO Auto-generated catch block > Log.d("IO",e.getMessage()); > } > > > Could I be overflowing the heap? I really don't know what is going on > hope you guys can help -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en