Hi Romain,

I have read this thread, and tried to access a string resource from a
System application from my Application.

I'm trying to access a string resource inside com.android.settings,
the "settings_label" resources. Is that possible?

I tried to put something like this in the layout/myfile.xml:

android:text="@com.android.settings:string/settings_label"

I'm getting a compiler error.

BR,

Camilo.

---------- Forwarded message ----------
From: Romain Guy <[email protected]>
Date: 28 jan 2009, 17:03
Subject: Access resources from another application
To: Android Developers


> Oneapplicationcannotaccessthe Java code orresourcesfromanother
>application, at least at runtime.

Actually, you can. That's what Home does for shortcuts for instance :)
But to do this you need the package name and the resource id within
the target package.

--
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to