I tried to create SDK addon.
I put mystrings.xml at vendro/sample/frameworks/base/core/res/res/
values.
And, I wrote PRODUCT_PACKAGE_OVERLAYS in sample_addon.mk
So, I did below command.
$ make PRODUCT-sample_addon-sdk_addon
But, below error ocuured and make stopped.
Resource at foo appears in overlay but not in the base package; use
<add-resource> to add.
What error?
I did not found informations about this error on web.
Are there someone who have same problem?
Below is mystrings.xml.
------------------
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="foo">Hello World</string>
</resources>
------------------
Regards.
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
I want to know how to use <add-resource>, but I didn't find the
information about <add-resource>.
So, I read aapt's source, and I guessed how to use <add-resource>
.
I wrote below code to string.xml.
<add-resource type="string" name="foo">Hello World</add-resource>
Building string.xml was procceeded.
Is is correctly?
By the way, where is the information about resource xml tag (e.g. <add-
resource>)?
I don't want to read aapt's source further, whenever an error
happening.
Regards.
Regards.
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
I.e. you need to do this:
<add-resource type="string" name="foo"></add-resource>
<string name="foo">Hello</string>
From what I can see, aapt throws away everything but the name and type
attributes in the <add-resource> tag.
This makes sense because otherwise the <add-resource> tag would need
to be able to describe every other possible resource.
Craig
On Jan 23, 8:47 pm, Dianne Hackborn <hack...@android.com> wrote:
> Yeah looks fine. I think currently the only information about this is in
> the aapt source.
>
>
>
> On Sat, Jan 23, 2010 at 8:14 AM, dnak <newvf91.brjtn579...@gmail.com> wrote:
> > Thank you for your reply.
>
> > I want to know how to use <add-resource>, but I didn't find the
> > information about <add-resource>.
> > So, I read aapt's source, and I guessed how to use <add-resource>
> > .
> > I wrote below code to string.xml.
>
> > <add-resource type="string" name="foo">Hello World</add-resource>
>
> > Building string.xml was procceeded.
> > Is is correctly?
>
> > By the way, where is the information about resource xml tag (e.g. <add-
> > resource>)?
> > I don't want to read aapt's source further, whenever an error
> > happening.
>
> > Regards.
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
> --
> Dianne Hackborn
> Android framework engineer
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting