Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2013-02-06 Thread Mikkel Christensen
Hi, Depending on what version of JB you are using you should either use the public.xml or symbols.xml to add your new id's. Adding new id's to public.xml was abandoned in this commit: http://git.omapzoom.org/?p=platform/frameworks/base.git;a=commitdiff;h=9d9ece3c1e16001b63244459cdf4b428f4272d2e

Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2013-01-14 Thread JUHYUN CHOI
I still don't understand why we need to add resource to public.xml. As Alex said, I didn't have any problem with public.xml in GB and ICS. Furthermore, do I need to add string resource to public.xml whenever adding string to string.xml? Julia. -- unsubscribe:

Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2012-08-06 Thread Jeffrey Brown
This mechanism has been around for a long time. Please keep in mind that you should only add private symbols to public.xml (yes, it's weird that the file is called public.xml but contains a mix of private and public symbols). Adding new public symbols is an API change, which is not allowed and

Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2012-08-04 Thread Alexandre Dumont
Thanks Jeffrey for the tip. Is it something new since JB? I don't remember needing that neither in GB nor ICS. Any link where more info about this can be found? I've search Google but I couldn't find any relevant info, excep this thread on Google Groups. THanks in advance, Alex On Friday,

Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2012-07-27 Thread Nathan Barraille
Thank you Jeff, that was indeed what was missing. Another quick question, when I add symbols to public.xml, rebuilding the framework-res.apk doesn't seem to be enough to regenerate the R.java file. So every time I have to do this, I would have to rebuild the whole system (make). Is there a make

Re: [android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2012-07-27 Thread Jeffrey Brown
Add the id to public.xml as a java-symbol element in the top part of the file where all of the private symbols are declared. On Jul 26, 2012 9:23 AM, Nathan Barraille nathan.barrai...@gmail.com wrote: Hello, I am trying to add a TextView in

[android-porting] How can I make resources added in frameworks/base/core/res/res available in com.android.internal.R.java

2012-07-26 Thread Nathan Barraille
Hello, I am trying to add a TextView in frameworks/base/core/res/res/layout/keyguard_screen_unlock_landscape.xml, with a specific ID so that I could reuse it in the Java code, but it looks like this ID is never added to com.android.internal.R.java, so every time I try to access it from the