How to order OEM resources' id.

by cht » Fri, 24 Jul 2009 03:26:32 GMT

Sponsored Links
 For OEM, we add some resources, includs drawables, layouts and some
other no-file resources like strings and id. we put this resources to
the android framework resource directory: frameworks/base/core/res/

But we face a big problem, the android internal resource id will be re-
ordered(we can fild it here: out\target\common\R\com\android\internal
\, our new resource id will be insert into the android resource
id.  but we want our resource id just appended behind the android

because of this, some CTS cases will not pass. and we face some other
compatible problems.

can you tell me how to organize our self framework resources, let the
resource id append behind the android resource.

thank you!

How to order OEM resources' id.

by dan raaka » Fri, 24 Jul 2009 05:34:31 GMT

 you should put it under /vendor/<your-company-name>
and use product overlays ..



Sponsored Links

How to order OEM resources' id.

by Jey Michael » Fri, 24 Jul 2009 05:42:36 GMT

 Overlays do not support addition.  You create a dummy entry in the
core/res/res and then replace dummys in overlays, when you add new
Overlays do not address this index question, AFAIK.

There is a problem in the CTS src, where it refers to  (grep for this string)   Obviously it would
break, because CTS is compiled against the google cupcake tree, and
you are probably running that CTS binary against your locally modified
src tree.  It is bound to fail for those tests.

Besides the CTS issue above, your question still remains open.
Someone else can clarify, I hope.


How to order OEM resources' id.

by Jey » Fri, 24 Jul 2009 05:54:06 GMT

 Old thread on this similar topic.  :-)

Other Threads

1. MediaPlayer blocked(AudioFlinger write blocked) while playing animation

Hi all,

I have a thread to play audio and animation together. It's a frame
animation. The drawable resources are in sdcard. When I play the
animation, I use a handler to send message to refresh images one by
Here's my code:
final Handler handle = new Handler(){
     public void handleMessage(Message msg){
          BitmapDrawable bmpDraw = new BitmapDrawable("sdcard/
          if(msg.what < fileNames.length-1){
MediaPlayer mp = new MediaPlayer();
...//play audio

The animation performs fine, but the audio will be stopped when it
begins to play for seconds. From logcat I see AudioFlinger: write
blocked for 89 msec...

I don't use AnimationDrawable because there are many images in sdcard,
when I use addFrame(AnimationDrawable.createFromPath(...)) I got an
OutOfMemory Exception.

Am I doing the right thing? Can anyone help me?


2. How to close all activities on android app

Hi for all

I'he a android app with 5 activities and i would close all open
activities by pressing a button, for example. How I do it exactly?
What is the better strategy? Somebody can help me?


3. TransitionDrawable with different sized bitmaps

4. Saving an image

5. how to give effects to livewallpaper?

6. StartActivityForResult

7. comparison of Thread vs Asynctask in android?