Unfortunately they can't currently be referenced from either -- that is the thing that is missing, true shared library support.
On Tue, Feb 17, 2009 at 6:07 PM, vi <[email protected]> wrote: > > > Similar to framework-res.apk, I would like to create a shareable > 'myresources.apk' that will be used by other apks (myapp1.apk, > myapp2.apk). > All of the above can be built as part of system image. > > Authors of myapp1.apk, myapp2.apk would refer to the common resources > available in 'myresources.apk.' They would like to refer to the > resources in myresources.apk, both from XML and the Java code from the > app1, app2 etc. My understanding is, they can be referenced from XML, > but not from Java. Thats why I am looking into the AssetManager.cpp, > now. I can ignore, if I dont have to tweak the lower layers of > platform code. > > thanks, > -vi > > > On Feb 17, 5:38 pm, Dianne Hackborn <[email protected]> wrote: > > Sorry I'm not understanding than what you are asking. Could you give > more > > detail on exactly what you are thinking about? Where do things line, who > is > > accessing them and from what context (built into system image, third > party > > app,. etc). > > > > > > > > On Tue, Feb 17, 2009 at 5:29 PM, vi <[email protected]> wrote: > > > > > Dianne: > > > > > I was asking in the context of (new) share-able resources. > > > Can we reference private resources from other packages, in the java > > > code? I mean, the external packages that are not part of the platform > > > today. I thought this is where we needed the jar support, from the > > > platform. > > > > > thanks, > > > -vi > > > > > On Feb 17, 4:54 pm, Dianne Hackborn <[email protected]> wrote: > > > > You can find all public and private resources in > com.android.internal.R. > > > > > > Please use this knowledge for good, not for evil. ;) > > > > > > On Tue, Feb 17, 2009 at 4:14 PM, vi <[email protected]> wrote: > > > > > > > On Feb 16, 1:35 pm, Dianne Hackborn <[email protected]> wrote: > > > > > > No it isn't, and simply and plain do NOT do that. You can > reference > > > > > private > > > > > > resources from other packages with "@*android:type/name". > > > > > > > Can we reference such resources in java code too? > > > > > Or, is this what you refer as missing 'true shared libraries' > earlier? > > > > > > > thanks, > > > > > -vi > > > > > > -- > > > > Dianne Hackborn > > > > 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. > > > > -- > > Dianne Hackborn > > 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. > > > -- Dianne Hackborn 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-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
