Saturday, February 4, 2012

[android-developers] how to examine resources in R programatically - Ignoring InnerClasses attribute

hi, newbie here, i am trying to programmatically look at stuff in R.
i want to see how many names match match a simple regex. these will
refer to string and string array resources.

i can sorta get at the fields using reflection, but i get a warning
(please see below) about: Ignoring InnerClasses attribute.

also i really want their values. i.e. if there are a bunch
of R.string.foo.*'s, i want each of their *string* values.

is there any way to do this?

thanks

[2012-02-04 00:14:48 - jata] Dx warning: Ignoring InnerClasses
attribute for an anonymous inner class
(com.tayek.jat.hmr.android$_mainxml_closure7) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

---
co-chair http://ocjug.org/

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment