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 target that would allow me to rebuild only this so
that I can just do a `adb sync` to apply the changes to my device?

Thanks!

On Fri, Jul 27, 2012 at 11:08 AM, Jeffrey Brown <[email protected]>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

Reply via email to