Awesome Open Source
Awesome Open Source

Potato Library

Easy to use Utility library for Android.

Download Android Arsenal

Usage

Gradle

To the module's build.gradle file, add

dependencies {
    compile 'me.kartikarora.potato🥔0.2.1'
}

Call the library using Potato.potate(context) 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 placing a call

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

For sending SMS

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

For bluetooth tools

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

For WiFi tools

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

For Mobile network tools

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

For GPS tool

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

For reading external storage

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

Please make sure to request appropriate runtime permisions on Android Marshmallow (SDK 23) and above

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
java (30,358) 
android (6,099) 
library (1,276) 
notifications (286) 
utility (205) 
wifi (186) 
bluetooth (174) 
gps (102) 
sms (100) 
clipboard (73) 
intent (25) 

Find Open Source By Browsing 7,000 Topics Across 59 Categories

Advertising 📦 10
All Projects
Application Programming Interfaces 📦 124
Applications 📦 192
Artificial Intelligence 📦 78
Blockchain 📦 73
Build Tools 📦 113
Cloud Computing 📦 80
Code Quality 📦 28
Collaboration 📦 32
Command Line Interface 📦 49
Community 📦 83
Companies 📦 60
Compilers 📦 63
Computer Science 📦 80
Configuration Management 📦 42
Content Management 📦 175
Control Flow 📦 213
Data Formats 📦 78
Data Processing 📦 276
Data Storage 📦 135
Economics 📦 64
Frameworks 📦 215
Games 📦 129
Graphics 📦 110
Hardware 📦 152
Integrated Development Environments 📦 49
Learning Resources 📦 166
Legal 📦 29
Libraries 📦 129
Lists Of Projects 📦 22
Machine Learning 📦 347
Mapping 📦 64
Marketing 📦 15
Mathematics 📦 55
Media 📦 239
Messaging 📦 98
Networking 📦 315
Operating Systems 📦 89
Operations 📦 121
Package Managers 📦 55
Programming Languages 📦 245
Runtime Environments 📦 100
Science 📦 42
Security 📦 396
Social Media 📦 27
Software Architecture 📦 72
Software Development 📦 72
Software Performance 📦 58
Software Quality 📦 133
Text Editors 📦 49
Text Processing 📦 136
User Interface 📦 330
User Interface Components 📦 514
Version Control 📦 30
Virtualization 📦 71
Web Browsers 📦 42
Web Servers 📦 26
Web User Interface 📦 210