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 will break compatibility.

Jeff.
On Aug 4, 2012 3:10 PM, "Alexandre Dumont" <[email protected]> wrote:

> 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, July 27, 2012 8:08:49 PM UTC+2, Jeffrey Brown wrote:
> > 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" <[email protected]>
> wrote:
> >
> > 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 java code, I get a "cannot find symbol" error.
> >
> >
> >
> > I tried just to build the res folder (mmm frameworks/base/core/res), the
> whole framework part (mmm frameworks/base) or even recompile the whole
> system (make), but this resource is never available.
> >
> >
> >
> > Thanks.
> >
> >
> >
> >
> > --
> >
> > unsubscribe: [email protected]
> >
> > website: http://groups.google.com/group/android-porting
>
>
>
> On Friday, July 27, 2012 8:08:49 PM UTC+2, Jeffrey Brown wrote:
> > 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" <[email protected]>
> wrote:
> >
> > 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 java code, I get a "cannot find symbol" error.
> >
> >
> >
> > I tried just to build the res folder (mmm frameworks/base/core/res), the
> whole framework part (mmm frameworks/base) or even recompile the whole
> system (make), but this resource is never available.
> >
> >
> >
> > Thanks.
> >
> >
> >
> >
> > --
> >
> > unsubscribe: [email protected]
> >
> > website: http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to