Skip to content

Headless creating an Android intent chooser

Notifications You must be signed in to change notification settings

tutoruniverse/IntentChooser

 
 

Repository files navigation

Simple way to make an intent chooser.

Installation

compile 'com.tuanchauict.intentchooser:intentchooser:0.1.+'

Usage

Intent intent = SharePlainTextChooserMaker.newChooser(MainActivity.this)
                        .add(new SMSChooser("SMS"))
                        .add(new FacebookChooser("https://google.com", false))
                        .add(new TwitterChooser("This is text for twitter"))
                        .add(new GooglePlusChooser("This is a text: http://google.com"))
                        .add(new EmailChooser("Email subject", "Email body"))
                        .add(new FacebookMessengerChooser("Facebook messenger"))
                        .add(new ViberChooser("Viber message"))
                        .add(new UniversalChooser("Universal subject", "Universal Text"))
                        .create("Share To");
startActivity(intent);

For Image selection, please take a look at example app's MainActivity

About

Headless creating an Android intent chooser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%