Code Monkey home page Code Monkey logo

cocoafish-android-sdk's Introduction

This open source Java library allows you to integrate Cocoafish into your Android application. Except as otherwise noted, the Cocoafish Android SDK is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

Getting Started

The SDK is lightweight and has no external dependencies. Getting started is easy.

Setup your environment

  1. Pull the repository from GitHub:

    git clone git://github.com/cocoafish/cocoafish-android-sdk.git

  2. If you have not already done so, follow the (http://developer.android.com/sdk/index.html)[Android SDK Getting Started Guide]. You will need the device emulator and debugging tools.

  3. The Cocoafish Android SDK works fine in any Android development environment. To build in Eclipse:

  • Create a new project for the Cocoafish SDK in your Eclipse workspace.
  • Select File -> New -> Project, choose Android Project (inside the Android folder), and then click Next.
  • Select "Create project from existing source".
  • Select the cocoafish subdirectory from within the git repository. You should see the project properties populated (you might want to change the project name to something like "FacebookSDK").
  • Click Finish to continue.

The Cocoafish SDK is now configured and ready to go.

Sample Applications

This library includes two sample applications to guide you in development.

  • demo: A simple demo app that demonstrates places map view, user signup, login and facebook login and user checkins.

  • Create the sample application in your workspace:

  1. Select File -> New -> Project, choose Android Project, and then click Next.
  2. Select "Create project from existing source".
  3. Choose demo. You should see the project properties populated.
  4. Click Finish to continue.
  • Build the project: from the Project menu, select "Build Project".

  • Run the application: from the Run menu, select "Run Configurations...". Under Android Application, you can create a new run configuration: give it a name and select the simple Example project; use the default activity Launch Action. See http://developer.android.com/guide/developing/eclipse-adt.html#RunConfig for more details.

Integrate with an existing application

The easiest way to get started is to copy/hack up the sample applications (that's what they are there for). However, if you want to just integrate the Facebook SDK with an existing application (or create a new one from scratch), then you should:

  • Add a dependency on the Cocoafish Android SDK library on your application:

    1. Select File -> Properties. Open the Android section within the Properties dialog.
    2. In the bottom Library section, click Add... and select the Cocoafish SDK project.
    3. Any issues? Check Android documentation
  • Ensure that your application has network access (android.permission.INTERNET) in the Android manifest:

cocoafish-android-sdk's People

Contributors

thebillwang avatar realpaul avatar jerrydong avatar

Watchers

Edward 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.