Giter Site home page Giter Site logo

accountlist-phonegap-android-plugin's Introduction

AccountList Phonegap Plugin for Android
=======================================
This plugin allows you to obtain an array containing all the accounts configured on the device

Adding the Plugin to your project
=================================

    To install the plugin, copy accountlist.js to your project's www folder and include a reference to it in your html files.

    <script type="text/javascript" src="accountlist.js"></script>

    Create a folder called 'com/seltzlab/mobile' within your project's src folder and copy AccountList.java file into that new folder.

    Add a plugin line to res/xml/plugins.xml
    <plugin name="AccountList" value="com.seltzlab.com.AccountList" />

    Add a permission line to the AndroidManifest.xml
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    
Using the plugin
================
    window.plugins.AccountList.get(
        {
            type: 'account type' // if not specified get all accounts
        },
        function (result) {
            console.log(result.length);
            for (i in result) {
                console.log(result[i]);
            }
        },
        function (error) {
            console.log(error);
        }
    );

accountlist-phonegap-android-plugin's People

Contributors

anto-acube 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.