/ImagePicker

Primary LanguageJavaApache License 2.0Apache-2.0

ImagePicker

Build Status

One picker to rule them all.

Install

Declare provider

  • AndroidManifest.xml
      <application>
        ...
        <provider
          android:name="android.support.v4.content.FileProvider"
          android:authorities="PACKAGE_NAME.file_provider"
          android:exported="false"
          android:grantUriPermissions="true">
          <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/file_paths"/>
        </provider>
        ...
      </application>
  • @xml/file_paths
    <?xml version="1.0" encoding="utf-8"?>
    <paths xmlns:android="http://schemas.android.com/apk/res/android">
        <external-path name="my_images" path="Android/data/PACKAGE_NAME/files/Pictures" />
    </paths
  • PACKAGE_NAME: app's package name

See more in the sample

Download

Download the latest JAR or grab via Gradle:

compile 'vn.tiki.imagepicker:imagepicker:1.0.0'

or Maven:

<dependency>
  <groupId>vn.tiki.imagepicker</groupId>
  <artifactId>imagepicker</artifactId>
  <version>1.0.0</version>
</dependency>

Snapshots of the development version are available in Sonatype's snapshots repository.

ProGuard

No specific

License

Copyright 2016 Tiki Corp

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.