2 would be best, but currently we don't support shared libraries with resources so you can't really do it.
In cupcake you can define PRODUCT_PACKAGE_OVERLAYS in your product makefile to specify one or more directories that will be merged in with the base platform directories. For example: PRODUCT_PACKAGE_OVERLAYS := vendor/mycompany/prod_overlay vendor/mycompany/base_overlay Now you can replace or add framework resources by putting them in either of these: vendor/mycompany/base_overlay/frameworks/base/core/res/res/ vendor/mycompany/prod_overlay/frameworks/base/core/res/res/ You can use this to replace any resource in the tree, both in the framework and in specific packages, by just putting them in a directory corresponding to the same path where you find them in the platform tree. Also when adding new resources to the frameworks that you want to use in your own apps that are built into the system image, you can use the magic syntax "@*android:type/name" to reference them without having to make them public. You can likewise find private resources in Java at com.android.internal.R. On Thu, Feb 19, 2009 at 12:05 AM, cht <[email protected]> wrote: > > may be there are someways: > 1: put their own resources under the folder "frameworks\base\core > \res", mix with android's original resources, although it works, but > idont think it is a best way? > 2: make their own resource apk like "framework-res.apk", it can > separate their own resources from android's original res, but i don't > kown how to implements it, and i don't kown whether it is feasible. > 3: some else? > > i think the second is the best, but i don't kown how to implements > it. > > cht > thanks > > > -- 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 -~----------~----~----~----~------~----~------~--~---
