Android: Implementing WhatsApp File Picker - android

I want to implement something like WhatsApp file picker in Android, but I do not really know how to do it.
WhatsApp Android version has a nice file picker ripple transition and I want to implement it in my app.
Is there any ready component to do something like this or maybe I should extend a dialog?

I have also been searching for a library like that for ages and today, I found it here
Universal Media Picker
Screenshot
Try it out and let me know if you liked it :)

Related

Android Google place picker

I am using google place picker in my app and each and everything is working fine. But there are some requirements of my app too.
When we open the place picker via intent it just look like this
As you can see there is a search field on the top of Place picker , I just want to change the hint from the search to the string that I want. let say locate or anything else.
Please tell me how can I do this . I am pretty sure it can be done. But from intent builder it seems impossible.
Please help.
I'm afraid currently this is not possible to set custom placeholder text in search element. I can see the following feature requests in Google issue tracker you might be interested in:
https://issuetracker.google.com/issues/64892097
https://issuetracker.google.com/issues/62256415
Feel free to star these feature requests to add your vote and subscribe to notifications.

input date picker on android shows wrong picker on WebView

I've got an HTML5 INPUT (type="datetime-local") in a WebView, but when I select it, it shows a date-time field that looks like this:
But the same identical element in Chrome looks like this:
This is under Android 7.1, with Chrome v55 installed, so Chrome is being used the WebView component. So, both should show the same thing, right?
I need the latter picker to show up in the WebView, it is much more user friendly (to scroll you can just flick up and down rather than having to repeatedly press the plus or minute buttons.
How do I accomplish this?
Update: I have tried creating this natively using a DatePickerDialog and it does the same thing! I'm targeting minSdkVersion=22, targetSdkVersion=25 (although I have also tried minSdkVersion=25). How do I force Android to display the correct picker for my app?
Update 2: I downloaded a sample app using the native DatePickerDialog and it displays the dialog ok. I don't like the idea of having to try to find the difference between the two projects which is causing the behavioral difference as it could be anything and take an excessive amount of time to find.
Update 3: Using the answer provided by Oleg, I was able to reproduce the second picker using android:Theme.Holo.Light.DarkActionBar. But if I use android:Theme.DeviceDefault.Light I can get a calendar view for input type="date". But the corresponding time picker in the Default theme (the round clock) does not show up for input type="time" and ``input type="datetime-local"` doesn't use the calendar view either.
As discussed in comments, you are likely missing the proper theme. Given that you have access to working app, please apply the same theme, it should solve it

Imagepicker like datepicker in android

Is it possible to make image picker in android like date picker or time picker? Actually i am making an app in which i need to make a image picker from where user can select small image. Like date picker or time picker here in this picker user can scroll and select small images then numbers. Please anybody help me to achieve this.
I think you want to use UI controller like iphone. Basically you are talking about wheel UI controller of android. Specifically it is not in-built android UI Controller but you have to make it costume. Please check this tutorial is exactly what you want : Here
Hope you got solution.
There is no imagepicker available in android . You can use intent to pick image, Click on the below link Android image picker for local files only.
Hope it helps.

Add animated GIF to email/sms/whatsapp

I was wondering how to get to add some custom designed animated GIF emoticons to native applications in android like SMS/EMAIL and to other applications like Whatsapp?
I know how to display an animated Gif in Android using AnimationDrawable object. I just want to know if it's possible to do the following:
1) Add custom animated images to Whatsapp application.
2) Add custom animated images to SMS/EMAIL in some easy way?
Just give me hints. I have been looking everywhere.
Thanks in advance.
Unless the application explicitly provides hooks for you to extend its configuration with particular animations/images there is no way to add any content to the existing application APKs. As far as I can tell the whatsapp application and the default email and sms apps do not provide extension hooks, so you won't be able to do this.

QuickActions like the Twitter app

I want to add Pattern 6: QuickActions from android's blog to my app.
Any code snippet?
Anyone try to do it already?
Should this work on android 1.5?
I just found this question right after I posted my own question/answer. Here's the code I developed for this. http://code.google.com/p/simple-quickactions/
I also have been searching for this and found someone through the wave of the Google IO session who has implemented such thing.
He posted the code on GitHub. I just tested it, and it works just great!
You'll also need some ressources from the project (drawables, styles..).
Look at line 1310 of ContactsListActivity.java from the Contacts application. It's the code that creates the intent for the contact shortcuts on the home screen that launch the quick actions intent for a contact.
This won't work before eclair.
Until the official Twitter app is open sourced by Google, you may want to take a look at this implementation:
It's really easy to use and works great.
That app is going to be open sourced at some point so you may want to wait until then. But it could be done with a Dialog with a custom background drawable, and using Window.LayoutParams to position the dialog.

Categories

Resources