The Android documentation tells me that I can access a string from another package by using the \"package name\", whatever that means:
@[
Why?
Because you added that library project to your project, so Android merges the resources, so the last project that is built "wins" the name. For this reason it's a good idea to prefix resources. In this case, the "package_name" can't be used as you have those resources in your own project. I imagine this is your case because it compiles without the package name.
If you don't have that library project added to your project, then a possible solution is to use SharedUserId.
Source: http://developer.android.com/tools/projects/index.html
Development considerations
As you develop your library project and dependent applications, keep the points listed below in mind:
- Resource conflicts Since the tools merge the resources of a library project with those of a dependent application project, a given resource ID might be defined in both projects. In this case, the tools select the resource from the application, or the library with highest priority, and discard the other resource. As you develop your applications, be aware that common resource IDs are likely to be defined in more than one project and will be merged, with the resource from the application or highest-priority library taking precedence.
- Use prefixes to avoid resource conflicts To avoid resource conflicts for common resource IDs, consider using a prefix or other consistent naming scheme that is unique to the project (or is unique across all projects).