Google Places API for Android - PlacePikcer without search option - java

I am building an application, where the user has to select a Place he wants.
For that, I am using the PlacePicker dialog, as the Google Places API for Android is teaching in the API reference site.
However, when the user click the button and open the Place Picker Dialog, it does not have any button where the user can type the name of the place he wants to select. So, the user will have to select a place just dragging on the map; this is horrible for the user, specially if he wants to choose a specific location far from his location or he doesn't know where is the place on the map.
So, I've tried searching on Google and foruns on the internet and I didn't find anything about how to set the dialog to appear the search button.
Thank you! ;)

Unfortunately the Place Picker does not support what you are asking for.

From what I can see search is currently not supported in the PlacePicker API. You can look at: PlacePicker.IntentBuilder and PlacePicker
#Ferran Negre: Yes, I also saw that Hangouts (version 4.0.100406486) seems to use the PlacePicker with search. I actually logged it to make sure and they do use the PlacePicker activity. SO either they copied the PlacePicker code into Hangouts and modified it (they are Google and should have access) OR there is a hidden API for showing search that for some reason has not yet been released. Even if such a hidden API exists though it would be bad practice to try to use it.

It looks like that they have listened to us and they already support this feature!
We have also added the autocomplete functionality to the place picker—a UI widget that helps users communicate their current location, such as a place, address or location on a map.
http://googlegeodevelopers.blogspot.com/2015/12/autocomplete-widget-and-updated-place.html

Place picker currently not supporting option to search ,but you can use android-place-picker
library
by this lib you can achieve this functionality + you can display recent searched locations also.And hope Google will soon add this feature to Place Picker.till that time you can use this. :)

Related

Android Biometric Auth without BiometricDialog

Is it possible to do a biometric authentication without the BiometricDialog?
I mean it seems to be done by some apps (Revolut and other financial apps).
Right now I'm using this library: https://github.com/pwittchen/RxBiometric
to handle the dialog and preconditions but I'm open to drop it.
My idea is to have a screen with an icon/label on the middle and to wait until the user touches the sensor, without any dialog.
All I can find around the web is using BiometricDialog.
P.S. using kotlin but I'm open to java solutions as well
As Micheal suggested in the comment, the old FingerprintManager did the trick. It's deprecated but seems to work just fine.

Instagram follow on button click

I'm currently trying to add a feature which allows users to follow an instagram account by clicking a button. I've seen other apps use that but I could not figure out how. As you can see in this post, following people by using the api is no longer availible. https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates/
Maybe some of you know how to do what I want.
You can do it with a hack that is..
Intent externalIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("instraURL"));
startActivity(externalIntent);
App will move user to external Browser and browser will move user on Instagram app..
As it is not perfect solution but i am just sharing because it can help developers when they don't have SDK.

pop up window when message selected in other app - Android

Is it possible to pop up a window for a selected text within another android app ?
for example a user is using some pdf reader and selects a word and a small window pops up that provides the options to highlight the text or Define and ... , I want to know is it possible to add another option to that window (or add a small window next to that) that defines the meaning using my dictionary app, not the pdf reader's dictionary?
basically I want to know if it is possible to have the user to use my dictionary app for all his needs , surfing web, reading pdf , looking up words directly ..
No, its not possible.
Only way of do that if you upload your app to Google Play and shared the options with other apps (using PendingIntents and Broadcast actions), but the code of other apps must use your code, you can not modify other app installed.
If I have understood your question correctly then NO.
It is not possible to edit the behavior of other apps with your own since then you would have to edit that apps source code. As far as I know the system does not provide any overhead setting for what your asking as it does for sharing things whith different apps (email, social media etc.)

implement list of user's facebook friends that are also using my application

I'm trying to implement an Android activity witch shows a list of images of the user's friends that use the same app also (like in Tinder app). I've searched the web for days and everything I found is too old or doesn't seem to work properly (mainly because they are all based on earlier versions of facebook SDK).
Can somebody please attached an explanation, or even better, an open source of example like that.
There's an example in the docs. I wonder how you didn't find that...
See
https://developers.facebook.com/docs/android/scrumptious/show-friends

Saving portions of a Google map

As I'm developping an application for hikers, I want to be able to store, somewhere in the device memory, the portion of the map where the user will travel. This is necessary because those places are generally out of any network reach.
Does anyone know how I can do that?
This is not alowed under the google licence so you should not even look at trying.
You could use another mapping source e.g. OpenStreetMap. There is an android Library osmdroid that I have managed to get to work. With this you can legaly cache the tiles. As for how to get them I have not implemented that yet but if the user looks at the area of interest first manualy it is just working for me.
Somthing cleverer will take more work but should be possible.

Categories

Resources