| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
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'
}SettingIntents.from(this).setting().show();
SettingIntents.from(this).applicationSetting().show();startActivity(SettingIntents.from(this).setting().build());
startActivity(SettingIntents.from(this).applicationSetting().build());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)AlarmIntents.from(this).openAlarms().show();openBrowser()
openLink(String url)
openLink(Uri uri)
openGoogle()BrowserIntents.from(this).openBrowser().show();openCalculator()CalculatorIntents.from(this).openCalculator().show();openCalendar()CalendarIntents.from(this).openCalendar().show();openPhotoCamera()
openVideoCamera()
capturePhoto(Uri location, String fileName)
captureVideo(Uri location, String fileName)startActivityForResult(CameraIntents.from(this).openPhotoCamera().build(), RequestTag.IMAGE_CAMERA);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()ContactIntents.from(this).openContacts().show();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)EmailIntents.from(this).openEmail().show();createEvent(String title, String description)
createEvent(String title, String description, String location, long begin, long end, int color, boolean allDay)EventIntents.from(this).createEvent("Birthday", "Make a birthday cake").show();fileChooser()
pickFile()
pickImageFile()
pickImageFile(Boolean allowMultiple, Boolean localOnly)startActivityForResult(FileIntents.from(this).fileChooser().build(), RequestTag.FILE_CHOOSE);openGallery()
pickImage()startActivityForResult(GalleryIntents.from(this).pickImage().build(), RequestTag.PICK_IMAGE);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()MapIntents.from(this).locationOf("Champ de Mars, Avenue Anatole France, Paris, France", "Eiffel Tower").show();showThisAppInMarket()
showThisAppInGooglePlay()
showThisAppInAmazon()
showInMarket(String packageName)
showInGooglePlay(String packageName)
showInAmazon(String packageName)
showGooglePlay()
searchAppInGooglePlay(String appName)MarketIntents.from(this).showInMarket("com.instagram.android").show();playAudio(String url)
showImage(String url)
playVideo(String url)
playYouTubeVideo(String videoId)MediaIntents.from(this).playYouTubeVideo("gOzdLhJG2EQ").show();openMessages()
createEmptySms()
createEmptySms(String phoneNumber)
createEmptySms(String[] phoneNumbers)
createSms(String body)
createSms(String body, String phoneNumber)
createSms(String body, String[] phoneNumbers)MessagingIntents.from(this).createEmptySms().show();openPlayMusic()MusicIntents.from(this).openPlayMusic().show();showDialNumber()
showDialNumber(String phoneNumber)
callNumber(String phoneNumber)PhoneIntents.from(this).showDialNumber().show();searchInGooglePlay(String query)
searchWeb(String query)SearchIntents.from(this).searchInGooglePlay("Instagram").show();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)SettingIntents.from(this).setting().show();shareText(String subject, String message)
shareText(String subject, String message, String chooserDialogTitle)ShareIntents.from(this).shareText("Subject example","message example").show();createTimer(String subject, int seconds, boolean skipUi)TimerIntents.from(this).createTimer("Run", 180, false).show();openVoiceRecorder()startActivityForResult(VoiceRecorderIntents.from(this).openVoiceRecorder().build(), RequestTag.RECORD_VOICE);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.
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
Of course, you can also choose what you want to donate, all donations are awesome!
Using Android-Intent-Library in your app and want it to get listed here? Email me at: ma3udmohammadi@gmail.com
See the CHANGELOG.md file.
See the CONTRIBUTING.md file.
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.
| Back | FazBrowse Home | New Git URL |