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.
Code less for capturing images/videos/files
Choose images from device or take a photo
Choose videos from device or record one
Choose files available on your device
Choose audio files available on your device
Choose a contact from the phonebook
Works with almost all content providers
Get all metadata about the media that you would probably need
Similar code base to implement irrespective of Android version of device.
Media types supported
Capture a still photo.
Record a video.
Pick/Record an audio.
Pick a contact (Display name, phones and emails).
Generate metadata of file (Size, MimeType, Extension)
Generate metadata of images (Width, Height, Orientation + metadata of files)
Generate metadata of videos (Width, Height, Orientation, Duration + metadata of files)
Generate metadata of audios (Duration + metadata of files)
Generate thumbnails of images (Big and Small)
Generate preview image of a video and it’s thumbnails.
Multiple file/image/video selection.
Configurable storage location of all files.
Easy handling for incoming share intents.
The implementation code is more concise and meaningful. Do give it a try.
Why Android Multipicker Library?
A little bit of background:
Picking images/videos on Android is not that straight-forward. It might be easy if you want to pick media from a specific app or the phone’s gallery. But it becomes very tricky when you have to deal with all kinds of apps. ex. Dropbox, Google Drive, various File Manager applications, different types of camera applications and so on. Android Multipicker Library makes it super easy for you to deal with all these scenarios, with a single codebase. So that you don’t have to keep writing code to handle all these scenarios differently.
You can try out this sample app and see how it works. Let us know your feedback or suggestions.
You have a form on WebView, with input type as “file”, and want to allow the user to upload a file from his device. Prior to Lollipop, this was not very straightforward, and you had to resort to using private APIs, which has always been discouraged. But, you had to do it. With Lollipop, there’s a new public API, which still isn’t very straight-forward to use, but at-least, should be reliable and compatible with newer Android/WebView versions. So, how do you implement File Upload from WebView on Android with the new public API?
This has been a long pending request, and people have implemented workarounds by using various versions of some private API’s for various older versions of Android.
Steps to Implement (3 steps)
Attach WebViewChromeClient, and override method callback for a click event on and input field of type file.
TinyPng is a nice service which provides you 500 free image compressions a month. And this is nice, since in a typical Android project, you wouldn’t have more than 500 images in any given month :). I have a simple script that scans through all your images, and tries to compress them using the tinypng api. All you need to do is to copy the script, put it in the root folder of your project and run it.
TinyPNG uses smart lossy compression techniques to reduce the file size of your PNG files. By selectively decreasing the number of colors in the image, fewer bytes are required to store the data. The effect is nearly invisible but it makes a very large difference in file size!
Advanced lossy compression for PNG images that preserves full alpha transparency.
Let’s jump into it. This script will search for all the images(pngs) in your Android project, pick each one, call the API, and overwrite the images, with a compressed version. And since this is a lossless compression, you won’t notice any change in quality. The overwriting part is probably a bit dangerous. So, with a little modification, you could change the script so that it creates a copy of the files.
Here’s a simple and easy implementation for adding PIN lock support for your Android apps. The library can be themed with your app theme colors. It has smooth animations and vibrate cues when something’s wrong.
To use this, you just have to write about 10 lines of code, including layouts and everything. It’s so simple.
I found a few non-documented sensors on Lollipop (Android 5.0) on a Nexus 5.
Tried looking for them, but could’t find any documentation on them on. Looks like they are mostly software sensors.
Here’s the list that I have found. I have written a simple app that displays all the sensors and shows there values. Not to mention that, only for the ones that are documented. For the ones not documented, you can only see it’s details.
In Android 5.0, a new tilt detector sensor helps improve activity recognition on supported devices, and a heart rate sensor reports the heart rate of the person touching the device.
New interaction composite sensors are now available to detect special interactions such as a wake up gesture, a pick upgesture, and a glance gesture.
Since there’s no documentation, for some of them, I don’t really know what they do. The only thing that gives you a clue is the sensor name. And, I don’t know how to work with them as well.