Git Product home page Git Product logo

tictactoe's Introduction

Sample: TicTacToeLib and TicTacToeMain.

--------
Summary:
--------

These two projects work together. They demonstrate how to use the ability to
split an APK into multiple projects.

Build is supported both via Ant (command-line tools) or via ADT (the Android
plugin for Eclipse).

--------
Details:
--------

TicTacToeMain is the main project. It defines a main activity that is first
displayed to the user. When one of the start buttons is selected, an
activity defined in TicTacToeLib is started.

To define that TicTacToeMain uses TicTacToeLib as a "project library", the
file TicTacToeMain/default.properties contains the special line:
  android.library.reference.1=../TicTacToeLib/


TicTacToeLib is the "project library". It can contain both source code (.java)
and Android resources (anything under /res) that will be merged in the final
APK. To define this is a library, the file TicTacToeLib/default.project
contains the special line:
  android.library=true


One important thing to realize is that the library is not a separately-compiled
JAR file: the source and resources from the library are _actually_ merged in
the main project and the result is used to generate the APK. This means that
the main project can either use or redefine behavior from the libraries.


To use the main vs library project:
- In ADT, just open import both projects and launch the main project.
- In Ant, use 'android update project' to create the build files and set the SDK location,
  and then run 'ant debug' on the main project.


For more details on the purpose of this feature, its limitations and detailed usage,
please read the SDK guide at
  http://developer.android.com/guide/developing/eclipse-adt.html

tictactoe's People

Contributors

dareed avatar

Watchers

 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.