Giter Club home page Giter Club logo

parseui-android's Introduction

ParseUI

Overview

This project contains the ParseLoginUI library for building login and signup flows with the Parse Android SDK. You can easily configure the look and feel of the login screens by either specifying XML configurations or constructing an Intent in code. To use this project with your app, you should import it as a library project in Android Studio or Eclipse.

sample screens

We also provide several sample projects demonstrating how to use the ParseLoginUI library. To run these sample projects, you need to do the following:

  1. Clone this repository onto your machine.
  2. Fetch the Facebook SDK Git submodule by running the following command in your local ParseUI-Android repository directory: git submodule update --init --recursive
  3. Import this repository's projects with Android Studio or Eclipse.
    1. For Android Studio, just import your local ParseUI-Android repository directory.
    2. For Eclipse, import the following projects. In the Eclipse import pop-up, be sure to edit the "New Project Name" column to match each sample project's folder name as shown below (or else Eclipse will automatically use the name of the first activity in AndroidManifest.xml and cause name collision error "SampleProfileActivity already exists").
      • ParseLoginUI
      • ParseLoginSampleBasic
      • ParseLoginSampleCodeCustomization
      • ParseLoginSampleLayoutOverride
      • ParseLoginSampleWithDispatchActivity
      • facebook-sdk/facebook eclipse import
  4. Make sure you have Android Build Tools 19.1 installed through Android SDK Manager. If you are using Android Studio, please also change facebook-sdk/gradle.properties to say ANDROID_BUILD_TOOLS_VERSION=19.1.0
  5. Place the following in res/values/strings.xml of each sample project:
  • Parse application id and client key
  • Facebook application id
  • Twitter consumer key and consumer secret
  1. Build and run the sample project using Android Studio or Eclipse.

Documentation

For complete details about this library project, please see our documentation on the Parse website. We'll discuss some highlights here.

To start the login flow from your own activity, you launch the ParseLoginActivity with two lines of code:

ParseLoginBuilder builder = new ParseLoginBuilder(MyActivity.this);
startActivityForResult(builder.build(), 0);

ParseLoginActivity will guide the user through the login experience, where the user can also sign up or reset a forgotten password. Each screen in the login experience is implemented by a fragment hosted within this activity. When ParseLoginActivity finishes, you can check ParseUser.getCurrentUser() in your own activity to see whether the user actually logged in.

This library is ultra-customizable, allowing you to configure the login experience through either XML or code. For example, you can directly configure the login experience through the activity meta-data in AndroidManifest.xml.

<activity
    android:name="com.parse.ui.ParseLoginActivity"
    android:label="@string/my_app_name"
    android:launchMode="singleTop">
    <meta-data
        android:name="com.parse.ui.ParseLoginActivity.PARSE_LOGIN_ENABLED"
        android:value="true"/>
    <meta-data
        android:name="com.parse.ui.ParseLoginActivity.PARSE_LOGIN_EMAIL_AS_USERNAME"
        android:value="true"/>
    <meta-data
        android:name="com.parse.ui.ParseLoginActivity.FACEBOOK_LOGIN_ENABLED"
        android:value="true"/>
</activity>

Please see the Parse website for additional documentation.

Contributing

See the CONTRIBUTING file for how to help out.

License

Copyright (c) 2014, Facebook, Inc. All rights reserved.

You are hereby granted a non-exclusive, worldwide, royalty-free license to use, copy, modify, and distribute this software in source code or binary form for use in connection with the web services and APIs provided by Facebook.

As with any software that integrates with the Facebook platform, your use of this software is subject to the Facebook Developer Principles and Policies [http://developers.facebook.com/policy/]. This copyright notice shall be included in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

parseui-android's People

Contributors

afzalive avatar liron-k avatar stanleyw 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.