hoijui wrote:
> 2. samples should contain ant scripts
> I would like the samples shipped with the SDK to contain buil.xml
> files.
> I figured out an easy way to create them:
> (1) create a temporaty Activity with the activity creator
> (2) copy files to sample project folder (eg LunarLander)
> - build.xml
> - libs (empty folder)
> - default.properties
> (3) edit build.xml
> - <project name="HelloAndroid" default="debug">
> + <project default="debug">
> - <property name="application-package" value="com.android.hello" />
> (4) create file build.properties, containing:
> "
> # This file is handmade
> 
> ant.project.name=LunarLander
> application-package=com.example.android.lunarlander
> 
> "

The easier solution is to run activitycreator, passing it the name of a
class that already exists:

activitycreator com.sample.this.class.is.in.the.app.Already

The activitycreator script will then just create the missing build.xml
file for you.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to