There is no packaging difference between developing for a platform or an
add-on.

The only difference is that the custom task "setup" will resolve the target
property from default.properties, see that it's an add-on, look up the list
of additional library provided by the add-on and set up a the class path to
contain android.jar from the base platform and the libraries from the add-on
(maps.jar in your case). This allows you to use the new API in your
application.

Look at SDK/platforms/android-1.6/template/android_rules.xml in the
"compile" target. The interesting attribute is
bootclasspathref="android.target.classpath"

You can look at the custom Ant task code to see how it's setup. It starts at
line 164:
http://android.git.kernel.org/?p=platform/development.git;a=blob;f=tools/anttasks/src/com/android/ant/SetupTask.java;h=04afba7c5456465af52a61e8c92b47f435213f45;hb=donut#l164

Xav

On Thu, Oct 8, 2009 at 9:08 AM, Raja Nagendra Kumar <
[email protected]> wrote:
>
> Hi Fred,
>
> Thank you for the pointers, could you pl. explain more on where
> exactly is the difference in compiling and building the application
> for Target 2 and Target 3.
>
> I understand Target 3 has maps.jar add on as booth path and for target
> 2 one needs to add the maps.jar as class path (i.e as external
> library) in case the application is using maps. However I am not sure
> where else these paths should be put forward, specially in packaging
> etc.
>
> Regards,
> Nagendra
> On Oct 8, 12:45 am, "Fred Grott(Android Expert)"
> <[email protected]> wrote:
>> two files alias.xml and anddroid_rules.xml
>>
>> one is in the sdk_install/tools/templates
>>
>> other one is in the sdk_install/platform15/tools/lib
>> or the sdk_install/platforms/16//tools/lib
>>
>> On Oct 7, 12:52 pm,RajaNagendraKumar<[email protected]>
>> wrote:
>>
>>
>>
>> > Hi,
>>
>> > What are the differences between building fortarget2  (no gmaps add
>> > on) andtarget3  (with gmaps addon).
>>
>> > Could any one has the ant scripts to bulids for these targets.
>>
>> > I see 1.5 SDK does these though custom ant tasks rather than 1.1 ant
>> > scripts (this was more clear and apperant on how it does the build)
>>
>> > Regards,
>> >RajaNagendraKumar,
>> > C.T.Owww.tejasoft.com
> >
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to