Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.xHunter:android-multipicker-library:v0.9.10'
}
dependencies {
implementation("com.github.xHunter:android-multipicker-library:v0.9.10")
}
<dependency>
<groupId>com.github.xHunter</groupId>
<artifactId>android-multipicker-library</artifactId>
<version>v0.9.10</version>
</dependency>
libraryDependencies += "com.github.xHunter" % "android-multipicker-library" % "v0.9.10"
:dependencies [[com.github.xHunter/android-multipicker-library "v0.9.10"]]
Makes it easy and simple to integrate "Attach that file" feature into your android apps.
Don't worry about various devices/OS variations.
Don't worry about out-of-memory errors.
Don't worry about creating thumbnails to show a preview.
Picking up any file for your app, and it's details.
Picking up audio files.
compile 'com.kbeanie:multipicker:0.9.9@aar'
<dependency>
<groupId>com.kbeanie</groupId>
<artifactId>multipicker</artifactId>
<version>0.9.9</version>
</dependency>
See Wiki Pages for code snippets.
Try out the sample app if you want to test it out first.
<a href="https://play.google.com/store/apps/details?id=com.kbeanie.multipicker.sample&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1"> <img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" width="150px"/> </a>ChosenFile
to provide a way to differentiate between callbacks.CacheLocation.EXTERNAL_STORAGE_PUBLIC_DIR
Copyright 2016 Kumar Bibek
Licensed under the Apache License, Version 2.0 (the "License");<br /> you may not use this file except in compliance with the License.<br /> 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<br /> distributed under the License is distributed on an "AS IS" BASIS,<br /> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br /> See the License for the specific language governing permissions and<br /> limitations under the License.