Giter Club home page Giter Club logo

potato-library's Introduction

Potato Library

Easy to use Utility library for Android.

JitPack Status

Travis-CI Build Status

Usage

Gradle

Add the following to your module's build.gradle

repositories {
    maven {
	    url "https://jitpack.io"
	}
}

dependencies {
    compile 'com.github.chipset95:Potato-Library:0.1.4'
}

Maven

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

<dependency>
    <groupId>com.github.chipset95</groupId>
    <artifactId>Potato-Library</artifactId>
    <version>0.1.4</version>
</dependency>

Call the library using Potato.potate() and you will get following methods to use:

  • Utils() - Utility methods to check Internet connection, methods on Bluetooth connection, methods for WiFi, get Battery level etc.
  • Notifications() - Create a notification with or without sound
  • Preferences() - Store and Retrieve data to/from SharedPreferences easily
  • Intents() - Create Intents for email, call, sms and browser with ease

Permissions

The following permissions need to be added to AndroidManifest.xml file of your project

For checking internet connection

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

For bluetooth tools

<uses-permission android:name="android.permission.BLUETOOTH" />

For WiFi tools

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />

Further Development

Plan to add Android Wear support.

Contribution

Feel free to fork the repo, add new methods, send in pull requests and add new issues. There's no license right now.

Thanks to

potato-library's People

Contributors

kartikarora avatar anuraagbaishya avatar sakethkaparthi avatar

Watchers

Michael jentsch 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.