Re: [android-developers] Re: is there a way to explore directory structure in assets/?
On Sun, Jun 3, 2012 at 9:41 AM, viktor victor.scherb...@gmail.com wrote: Have you evere worked with file system with Java? Yes. You should iterate every subdirectories(like recursive method). If you done this you will have full tree of accert folder. The way I read the documentation you can't access assets/ the way you would access a generic filesystem. Have you actually tried what you advise? Normally, you have to pass a path to the standard filesystem API - how do you get that? -- 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
Re: [android-developers] Re: is there a way to explore directory structure in assets/?
On Mon, Jun 4, 2012 at 2:03 AM, lbendlin l...@bendlin.us wrote: Aren't you the one who put stuff into the asset folder structure? So you should know what's there, and where. Heh, an interesting take on data-driven design. ;-) Seriously - I'm writing code that has to work with multiple APKs with different assets/ areas. Even if it weren't for that, I don't like to hardcode paths, names and directory structures into my code. If you hardcode a directory hierarchy and then have to change it, you have to chase down every mention of it in your code and fix it - you can do better than that. -- 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: is there a way to explore directory structure in assets/?
On Jun 4, 12:08 pm, Latimerius l4t1m3r...@googlemail.com wrote: On Mon, Jun 4, 2012 at 2:03 AM, lbendlin l...@bendlin.us wrote: Aren't you the one who put stuff into the asset folder structure? So you should know what's there, and where. Seriously - I'm writing code that has to work with multiple APKs with different assets/ areas. Even if it weren't for that, I don't like to hardcode paths, names and directory structures into my code. It seems like it has been discussed a bit, with people having various degrees of success: http://stackoverflow.com/questions/3631370/list-assets-in-a-subdirectory-using-assetmanager-list Or the ugly way to do it would be to assume that your apk is a zip file, figure out it's path, and process it with the zip file apis. -- 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
Re: [android-developers] Re: is there a way to explore directory structure in assets/?
On Mon, Jun 4, 2012 at 7:42 PM, Chris Stratton cs07...@gmail.com wrote: It seems like it has been discussed a bit, with people having various degrees of success: http://stackoverflow.com/questions/3631370/list-assets-in-a-subdirectory-using-assetmanager-list I came across this but (perhaps I get it wrong, the question is not phrased very clearly) I got the impression the original poster simply tries to list assets in a directory, not the subdirectories. (To list assets, I use similar code to his and never had any trouble, no idea why it didn't work for him.) -- 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: is there a way to explore directory structure in assets/?
Have you evere worked with file system with Java? You should iterate every subdirectories(like recursive method). If you done this you will have full tree of accert folder. On 2 Чер, 22:55, Latimerius l4t1m3r...@googlemail.com wrote: There's AssetManager.list() but that doesn't seem to pick up subdirectories. Other than via AssetManager, how am I supposed to find out what's in assets/? -- 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: is there a way to explore directory structure in assets/?
Aren't you the one who put stuff into the asset folder structure? So you should know what's there, and where. On Saturday, June 2, 2012 3:55:58 PM UTC-4, Latimerius wrote: There's AssetManager.list() but that doesn't seem to pick up subdirectories. Other than via AssetManager, how am I supposed to find out what's in assets/? -- 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