Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To expand on Yahel's answer, yes I think Ant is the way to go. It can be a bit intimidating, but it's urprising how well it works 'out of the box' without too much messing about. Customising it takes a bit of reading but I managed it, so I'll give you the benefit of my experience.</p> <p>Firstly create a sample application as suggested. Let's suppose you want it to be created in <strong>c:\junk.</strong> Then from your a command prompt in Android SDK\tools directory type:</p> <pre><code>android create project -t 5 -n AndSampleApp -p c:\junk\AndSampleApp -a AndSampleApp -k com.yourpackage.andsample. </code></pre> <p>( -t 5 gives you API level 7, type 'android list targets' to see other options)</p> <p>Let's assume you've been building your projects in an Eclipse workspace (it's /dev/projects/EclipseHelios/AndroidWorkspace on my machine). Copy the sample app's build.xml and build.properties to the project folder in Eclipse</p> <p>and edit the newly created build.xml and remove the line</p> <pre><code>&lt;project name="AndSampleApp" default="help"&gt; </code></pre> <p>and replace it with just:</p> <pre><code>&lt;project&gt; </code></pre> <p>Now edit the the newly created build.properties which will be empty except for comments and add (customisng where necessary):</p> <pre><code># The password will be asked during the build when you use the 'release' target. # OH NO IT WON'T! IF YOU PUT THE KEYS &amp; PWDS IN AS BELOW - It'S AUTOMATIC # Customised (hard coded) section --------------------- projectname=YourActualProjectName # Line below is the parent folder of where the sources are workspace.dir=/dev/projects/EclipseHelios/AndroidWorkspace # Line below is where you want the binaries to go outbasebase.dir=/dev/projects/AntBuilds key.store=c:/users/you/your-release-key.keystore key.alias=your_release_alias key.store.password=YourSecretPassword key.alias.password=YourSecretPassword #------------------------------------------------------ ant.project.name=${projectname} base.dir=${workspace.dir}/${projectname} source.dir=${base.dir}/src outbase.dir=${outbasebase.dir}/${projectname} out.dir=${outbase.dir}/bin layout.dir=${base.dir}/res/layout </code></pre> <p>If you then get a command line prompt in /dev/projects/EclipseHelios/AndroidWorkspace/YourActualProjectName</p> <p>and type 'ant release', you should end up with a built and signed apk in /dev/projects/AntBuilds/YourActualProjectName</p> <p>You should be able to customise the assets location by the adding an <strong>assets.dir</strong> entry in the build.properties</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload