A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation codes like Share, Contacts, Email and etc, which you can easily use.

Overview

platform Android Arsenal JitPack License API Donate Made With Java Build With Love

GitHub followers GitHub forks GitHub stars GitHub watchers

Tweet

Android-Intent-Library

A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation codes like Share, Contacts, Email and etc, which you can easily use.

Contents

💻 How to include

Add the repository to your project build.gradle:

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

And add the library to your module build.gradle:

dependencies {
    implementation 'com.github.mohammadima3oud:Android-Intent-Library:1.0.0'
}

📄 Usage

Showing the intent immediately

SettingIntents.from(this).setting().show();
SettingIntents.from(this).applicationSetting().show();

Build the intent and show it your self

startActivity(SettingIntents.from(this).setting().build());
startActivity(SettingIntents.from(this).applicationSetting().build());

📄 List of Intents

  • AlarmIntents

    openAlarms()
    createAlarm(String message, int hour, int minutes, boolean skipUi)
    createAlarm(String message, int hour, int minutes, boolean skipUi, boolean vibrate)
    createAlarm(String message, int hour, int minutes, boolean skipUi, boolean vibrate, boolean isPm)
    Example
    AlarmIntents.from(this).openAlarms().show();
  • BrowserIntents

    openBrowser()
    openLink(String url)
    openLink(Uri uri)
    openGoogle()
    Example
    BrowserIntents.from(this).openBrowser().show();
  • CalculatorIntents

    openCalculator()
    Example
    CalculatorIntents.from(this).openCalculator().show();
  • CalendarIntents

    openCalendar()
    Example
    CalendarIntents.from(this).openCalendar().show();
  • CameraIntents

    openPhotoCamera()
    openVideoCamera()
    capturePhoto(Uri location, String fileName)
    captureVideo(Uri location, String fileName)
    Example
    startActivityForResult(CameraIntents.from(this).openPhotoCamera().build(), RequestTag.IMAGE_CAMERA);
  • ContactIntents

    openContacts()
    viewContact(String name)
    editContact(String name)
    editContact(String name, String newEmail)
    insertContact(String name, String phone, String email, String company, String job, String notes)
    pickContact()
    pickSpecificContactData()
    Example
    ContactIntents.from(this).openContacts().show();
  • EmailIntents

    openEmail()
    sendEmail(String to, String subject, String message)
    sendEmail(String[] to, String subject, String message)
    sendEmail(String[] addresses, String[] cc, String[] bcc, String subject, String message)
    Example
    EmailIntents.from(this).openEmail().show();
  • EventIntents

    createEvent(String title, String description)
    createEvent(String title, String description, String location, long begin, long end, int color, boolean allDay)
    Example
    EventIntents.from(this).createEvent("Birthday", "Make a birthday cake").show();
  • FileIntents

    fileChooser()
    pickFile()
    pickImageFile()
    pickImageFile(Boolean allowMultiple, Boolean localOnly)
    Example
    startActivityForResult(FileIntents.from(this).fileChooser().build(), RequestTag.FILE_CHOOSE);
  • GalleryIntents

    openGallery()
    pickImage()
    Example
    startActivityForResult(GalleryIntents.from(this).pickImage().build(), RequestTag.PICK_IMAGE);
  • MapIntents

    locationOf(String address, String placeTitle)
    locationOf(float latitude, float longitude)
    locationOf(float latitude, float longitude, String placeName)
    navigateTo(String address)
    navigateTo(float latitude, float longitude)
    streetViewOf(float latitude, float longitude)
    streetViewOf(float latitude, float longitude, float zoom)
    streetViewOf(float latitude, float longitude, float zoom, int mapZoom)
    showLocationServices()
    Example
    MapIntents.from(this).locationOf("Champ de Mars, Avenue Anatole France, Paris, France", "Eiffel Tower").show();
  • MarketIntents

    showThisAppInMarket()
    showThisAppInGooglePlay()
    showThisAppInAmazon()
    showInMarket(String packageName)
    showInGooglePlay(String packageName)
    showInAmazon(String packageName)
    showGooglePlay()
    searchAppInGooglePlay(String appName)
    Example
    MarketIntents.from(this).showInMarket("com.instagram.android").show();
  • MediaIntents

    playAudio(String url)
    showImage(String url)
    playVideo(String url)
    playYouTubeVideo(String videoId)
    Example
    MediaIntents.from(this).playYouTubeVideo("gOzdLhJG2EQ").show();
  • MessagingIntents

    openMessages()
    createEmptySms()
    createEmptySms(String phoneNumber)
    createEmptySms(String[] phoneNumbers)
    createSms(String body)
    createSms(String body, String phoneNumber)
    createSms(String body, String[] phoneNumbers)
    Example
    MessagingIntents.from(this).createEmptySms().show();
  • MusicIntents

    openPlayMusic()
    Example
    MusicIntents.from(this).openPlayMusic().show();
  • PhoneIntents

    showDialNumber()
    showDialNumber(String phoneNumber)
    callNumber(String phoneNumber)
    Example
    PhoneIntents.from(this).showDialNumber().show();
  • SearchIntents

    searchInGooglePlay(String query)
    searchWeb(String query)
    Example
    SearchIntents.from(this).searchInGooglePlay("Instagram").show();
  • SettingIntents

    setting()
    apnSetting()
    bluetoothSetting()
    dateSetting()
    displaySetting()
    localeSetting()
    securitySetting()
    wifiSetting()
    wirelessSetting()
    accessibilitySetting()
    applicationSetting()
    captioningSetting()
    castSetting()
    dreamSetting()
    airplaneModeSetting()
    inputMethodSetting()
    locationSourceSetting()
    internalStorageSetting()
    memoryCardSetting()
    homeSetting()
    nfcSetting()
    nfcSharingSetting()
    nfcPaymentSetting()
    printSetting()
    privacySetting()
    searchSetting()
    soundSetting()
    syncSetting()
    webViewSetting()
    vpnSetting()
    applicationDetailSetting(String packageName)
    applicationDevelopmentSetting()
    batterySaverSetting()
    dataRoamingSetting()
    deviceInfoSetting()
    hardKeyboardSetting()
    manageApplicationSetting()
    manageWriteSetting()
    networkOperatorSetting()
    notificationListenerSetting()
    usageAccessSetting()
    userDictionarySetting()
    voiceInputSetting()
    vrListenerSetting()
    wifiIpSetting()
    ignoreBatteryOptimizationSetting()
    manageAllApplicationSetting()
    manageDefaultAppsSetting()
    inputMethodSubtypeSetting()
    notificationPolicyAccessSetting()
    ignoreBackgroundDataRestrictionsSetting(String packageName)
    Example
    SettingIntents.from(this).setting().show();
  • ShareIntents

    shareText(String subject, String message)
    shareText(String subject, String message, String chooserDialogTitle)
    Example
    ShareIntents.from(this).shareText("Subject example","message example").show();
  • TimerIntents

    createTimer(String subject, int seconds, boolean skipUi)
    Example
    TimerIntents.from(this).createTimer("Run", 180, false).show();
  • VoiceRecorderIntents

    openVoiceRecorder()
    Example
    startActivityForResult(VoiceRecorderIntents.from(this).openVoiceRecorder().build(), RequestTag.RECORD_VOICE);

FAQ

some intents will return data, which should be handeled in onActivityResult, use .build and startActivityForResult for them. Example

startActivityForResult(VoiceRecorderIntents.from(this).openVoiceRecorder().build(), RequestTag.RECORD_VOICE);

Android-Intent-Library doesn't handle the returned data, you need to handle them your self in onActivityResult.

Checkout My Libraries

  • Android-Intent-Library: A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation codes like Share, Contacts, Email and etc, which you can easily use.
  • Material-Resources-Library: A list of most useful resources for designing android apps such as all material colors and dimens, 180 Gradient background + html, social, flat, fluent, metro colors.
  • Complete-Google-Map-API-Tutorial: Learn How to use Google Map API for Android from Basic to Advance with complete examples.
  • DropSignIn: Sign In UI Design
  • BlueSignIn: Sign In and Sign Up Ui Design

💰 Donations

This project needs you! If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!

PayPal

  • Donate $5: Thank's for creating this project, here's a tea (or some juice) for you!
  • Donate $10: Wow, I am stunned. Let me take you to the movies!
  • Donate $15: I really appreciate your work, let's grab some lunch!
  • Donate $25: That's some awesome stuff you did right there, dinner is on me!
  • Donate $50: I really really want to support this project, great job!
  • Donate $100: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate $2799: Go buddy, buy Macbook Pro for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!

📄 Hall of Fame

Using Android-Intent-Library in your app and want it to get listed here? Email me at: [email protected]

📄 Changelog

See the CHANGELOG.md file.

👍 Contribution

See the CONTRIBUTING.md file.

📃 License

Copyright 2019 mohammadima3oud

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
TaggerString is very light library which allows to build dynamic string resource in much more readable way.

TaggerString TaggerString is very light library which allows to build dynamic string resource in much more readable way. I guess that every Android de

Library that makes it possible to read, edit and write CSV files
Library that makes it possible to read, edit and write CSV files

AdaptiveTableLayout Welcome the new CSV Library AdaptiveTableLayout for Android by Cleveroad Pay your attention to our new library that makes it possi

Simple library to generate and view PDF in Android
Simple library to generate and view PDF in Android

PDFCreatorAndroid Simple library to generate and view PDF in Android A simple library to create and view PDF with zero dependency Or native code. Add

Android Material Design Theme UI and Tool Library. Support: 4.0.3~O
Android Material Design Theme UI and Tool Library. Support: 4.0.3~O

GitHub OSChina 中文 English Genius-Android Genius-Android: by Material Design style and some commonly used packages. Starting in 2015, The divided into

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

usb-serial-for-android This is a driver library for communication with Arduinos and other USB serial hardware on Android, using the Android USB Host M

A cli tool that helps signing and zip aligning single or multiple Android application packages (APKs) with either debug or provided release certificates. It supports v1, v2 and v3 Android signing scheme has an embedded debug keystore and auto verifies after signing. Android Library Finder
Android Library Finder

alfi Android Library Finder Search through thousands of android libraries that can help you scale your projects elegantly Usage Search for something a

Remote script to create a maven compatible release of an android library (aar)

release-android-library 🚨 Deprecated 🚨 This script is deprecated in favour of: novoda/bintray-release Remote script to create a maven compatible rel

:inbox_tray: [Android Library] Hunt down all package information
:inbox_tray: [Android Library] Hunt down all package information

Android library to hunt down package information. The library is built for simplicity and approachability. It not only eliminates most boilerplate cod

Releases(1.0.0)
Owner
Next
Android Developer and Designer. UI/UX Designer. Instructor
Next
Android Resource Manager application to manage and analysis your app resources with many features like image resize, Color, Dimens and code Analysis

Android Resource Manager application to manage and analysis your app resources with many features like image resize, Color, Dimens and code Analysis

Amr Hesham 26 Nov 16, 2022
Enhance the adb shell using busybox, supporting vi、grep and awk etc. No need root.

super-adb 用busybox加持的功能更加强大的adb shell;不需要root。 使用方法 准备工作 安装 python,注意选择安装python 2.x 安装pexpect这个python库: pip install pexpect 下载super_adb,把它放到系统路径 cp su

weishu 273 Dec 7, 2022
Android Layout (Relative Layout, Linear Layout etc) to Image

Layout-to-Image Android Layout Xml File Containing any Parent Layout (Relative Layout, Linear Layout etc) to Image Screenshot of Sample Application Qu

Vipul Asri 166 Nov 22, 2022
An easy to use translation / localization api written in Kotlin that can be used with Java and Kotlin

KTranslate KTranslate is an easy to use TranslationAPI written in Kotlin, with currently 26 supported languages. It is very easy to use in Kotlin and

Felix Beinssen 0 Sep 2, 2022
Taskbar puts a start menu and recent apps tray on top of your screen that's accessible at any time

Taskbar puts a start menu and recent apps tray on top of your screen that's accessible at any time, increasing your productivity and turning your Andr

Braden Farmer 551 Dec 31, 2022
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

simpligility 1.4k Dec 27, 2022
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

simpligility 1.4k Dec 27, 2022
Use an expanded notification as a makeshift Android log output console

NotificationLog Use an expanded notification as a makeshift Android log output console. https://vine.co/v/bFxhUAVjvrY The design goals of this project

Jeff Gilfelt 162 Nov 15, 2022
Use a jar executable to create a Drawable class to display a SVG on Android.

SVG2Drawable Use a jar executable to create a Drawable class to display a SVG on Android. This is a standalone library, not a Runtime Android library.

Stan Kocken 202 Nov 28, 2022