Giter Club home page Giter Club logo

android-app-template's Introduction

Android App Template

Version 2.0.0

Environment

  • OS: Ubuntu 12.04 amd64
  • JDK: OpenJDK 1.7
  • Eclipse: Eclipse IDE for Java EE Developers (4.3 (Kepler))
  • Apache Ant: 1.9.2
  • Android SDK: r22.3-linux

How was this created

  1. Launch Eclipse
  2. File > New > Other... > Android > Android Application Project
  3. "New Android Application" wizard
    1. Create a new Android Application
      • Application Name: AndroidAppTemplate
      • Project Name: android-app-template
      • Package Name: net.kaosfield.app
      • Minimum Required SDK: API8: Android 2.2
      • Target SDK: API18: Android 4.3
      • Compile With: API19: Android 4.4
      • Theme: Holo Light
    2. Configure Project (all default)
      • Create custom launcher icon: checked
      • Create activity: checked
      • Mark this project as a library: unchecked
      • Create Project in Workspace: checked
      • Working sets > Add project working sets: unchecked
    3. Configure the attributes of the icon set (all default)
      • Foreground: Image
        • Image File: launcher_icon
        • Trim Surrounding Blank Space: checked
      • Foreground Scaling: Crop
      • Shape: None
      • Background Color: "white"
    4. Select whether to create an activity, and... (all default)
      • Create Activity: checked
      • select "Blank Activity"
    5. Create a new blank activity, with... (all default)
      • Activity Name: MainActivity
      • Layout Name: activity_main
      • Navigation Type: None

Edit .gitignore

Ignore .classpath, .project, .settings/, bin/, gen/ and local.properties.

.classpath
.project
.settings
bin
gen
local.properties

Manage "assets" directory

touch assets/.gitkeep

Enable to build from command line

Execute android update project -p ./. local.properties file is generated by this command, and it should be ignored.

Now you can build with ant debug or ant release.

android command is <android-sdk-path>/tools/android.

ant command is Apache Ant.

License

MIT

Copyright 2013 ka

android-app-template's People

Contributors

kaosf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.