openXmlResourceParser() is for internal use to load XML resources
(which are not assets). It probably should have been removed from the
SDK. It's not at all useful for accessing things under assets/
because it depends on XML file having been pre-processed at build
time, and by definition everything under assets/ is copied into
the .apk without processing.
On Oct 28, 1:07 pm, Patrick <[EMAIL PROTECTED]> wrote:
> I've found an inconsistency with the AssetManager. I have a file in my
> package with the path "assets/models/cube.xml".
>
> Succeeds without FileNotFoundException:
> getAssets().open("models/cube.xml")
> getAssets().openXmlResourceParser("assets/models/cube.xml")
>
> Notice above that the second call requires the root "assets/" to
> succeed. This is inconsistent with the open method.
>
> This will fail with FileNotFoundException:
> getAssets().openXmlResourceParser("models/cube.xml")
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---