• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Resource problem using Library

 
Ranch Hand
Posts: 74
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am having trouble accessing String resources from a Strings.xml in a res/values/ directory of a Library I am using in my application.
Some of the strings can be accessed at runtime but most cannot.

The log cat warning:



The Strings.xml:




Have done some searching and can't get the meaning of the warning.
There are no conflicting resources in the reference applications string.xml.
Any suggestions appreciated.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the translation_description a valid parameter for a String resource? I have never seen it and it is not in the documentation as far as I can see.
 
Ciaran Mooney
Ranch Hand
Posts: 74
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same.
The library was written some time back with a minSdk 3 (API 1.5 Cupcake).
The reference project requires a minSDK 9 (2.3.2 GingerBread) because of a GooglePlayServices.jar hence the manifest of project and library are set minSDK 9.
Ill try remove the translation attribute and see.....
 
Ciaran Mooney
Ranch Hand
Posts: 74
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Removing the translation attribute made no diff.
Interestingly none of the missing resource integer:

String resource ID #0x7f0a00c0



are in ether the R file of the Refernence project or the R file of the library project....so how can the resources be allocated a unique id and not be present in the R file?
 
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try doing a clean build (make sure to get rid of the gen and bin directories). Sometimes the build system gets confused if you add or remove resource IDs.
 
Ciaran Mooney
Ranch Hand
Posts: 74
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried unsuccessful.
Is it nesscary to add jar the Library is using to the build path of the reference application?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic