Giter VIP home page Giter VIP logo

phonegap-android's Introduction

PhoneGap Android

PhoneGap Android is an Android application library that allows for PhoneGap-based projects to be built for the Android Platform. PhoneGap-based applications are, at the core, an application written in web-based languages, generally HTML, CSS and JavaScript.

Pre-requisites

Recommended:

  • Eclipse (Recommended for back-end debugging, not required)

Getting Started with PhoneGap Android

  1. Make sure you have Ruby and the nokogiri gem installed. Run 'gem list' to see a list of installed Ruby gems, and 'gem install nokogiri' from command-line if you don't have it.
  2. Clone the repository using git, from command line: git clone git://github.com/phonegap/phonegap-android.git
  3. Run 'cd phonegap-android/framework'
  4. Make sure you change the location of your Android SDK, this is inside the local.properties file
  5. Run 'ant jar' - this will create the phonegap.jar file and build a fresh phonegap.js for use in your HTML/JS/CSS-based application (for accessing native functionality).
  6. cd back to the root directory (cd ..)
  7. Run 'ruby build.rb <package_name> ', where:
  • app-name: Name of application without spaces
  • package name: Java namespace of package ( i.e. com.nitobi.demo). This must be unique otherwise it won't load properly on your phone
  • www-dir: www directory which includes an icon.png file for the icon
  • path: The path to copy the final project assets into, i.e. the final build path
  1. Now you can use the generated Android code that is located in the 'path' directory from the above step and do what you want with it: import into Eclipse to test with the simulator or otherwise.

Using Eclipse with PhoneGap

The wiki article to get started with Eclipse can be found at http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse

phonegap-android's People

Contributors

fredgrott avatar sintaxi avatar rayvahey avatar

Watchers

James Cloos avatar Justin M Rousseau, CEO 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.