Android Google place picker - android

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.

Related

How to make text input with dropdown suggestions using Flutter

I have just begun using Flutter to create a mobile app.
The first thing I need the app to do is to take an Address/location as input from the user.
I would like to use a text input field that once you start typing it suggests locations based on the google place API.
Sadly there is no widget to enable this out of the box, but it shouldn't be so hard to do. Google's places API returns results based on any text input, so you can just keep sending keystrokes until the user sees (and selects) their desired location. I've got the API working already.
Now I'm struggling with how to build the front end experience.
I was hoping to have a drop-down text field, but I'm not finding anything similar in the widget library.
My next best idea was an input field with a DropdownButton class next to it. I want to make the DropdownButton invisible (0 width) but programmatically make it drop down once the user begins typing.
Sadly I don't see any way to control the visibility of the Dropdown List, so I'm not sure this will work.
Does anyone have any better ideas?
Image of what I have so far but obviously this is not optimal:
It's probably late for an answer but I'll still post this in case anyone else is still curious about this.
If you have the API wired up then what might prove useful is this third-party package.
It's called Flutter Typeahead.
It's a generic input with dropdowns and the data can come from any API and not just the Google Places API.

Change the message in the Google Location Services dialog

I noticed that Yandex maps application change the title in the Google Location Services dialog (or they completely repeated the design and implemented 'Ok' button tap to turn on setting immediately, if so, please let me know how I can do this). I've made this conclusion, because a default text is a bit different , e.g. screenshot from the Google maps application .
Is there way to customize the mentioned dialog?
I've confused since there is an answer about this, but I wanted to be sure that it's impossible, because I found the app which was able to do it.

Android whats new screen

I am re-pharsing my question to avoid negative points. I am aware of web view, dialogs, popups, notifications. if you have some other ideas please let me know.
I am working on a very big android application, in which I have to add some popup kind of thing, which tells the user what we have updated for this version. Kind of like, what bugs are fixed or whats new things are added.
The window have to be populated once or twice and it have to have user interactions, like click on the link, or contact us, or click on the image to go to some page inside the app. Please let me know any good ideas.
You definitively should give a look to the AlertDialog class
http://developer.android.com/reference/android/app/AlertDialog.html
This is basically the class used to display a message and get the ok/cancel/anything answer from the user. But it's customizable and you can make more or less what you want according to which button is pressed by the user.

Autofill forms on Android from password manager

I want to build an password manager for Android. The Problem is I don't know how to get it to fill login forms of third party applications. I know this is working, because LastPass does exactly what I want.
I don't want a complete solution ;) I just need a point to start. Secondly I don't want to replace the system keyboard like Keepass2Android does. I googled nearly two days about this but I can't get the right keywords to find a starting point.
So the questions are:
How do I detect login forms on the active activity?
How do I paste the credentials to this inputs?
If you don't know the id from a TextView then you need to use getIdentifier() function. You can find a potential usage here.
When you will get the id from your TextView you can paste a text in your form with something like this
instantFromTextView.setText("your creds");
I hope to help!

Implement QSB like suggestions in android app

I need to give a search box in my android app. As the user starts typing in the search text, I need to show him relevant suggestions. (As we see in the google-search widget on the home screen. If we see from the logs, com.android.quicksearchbox/.SearchActivity is started with android.search.action.GLOBAL_SEARCH intent and it searches in following: corpora:[web, apps, com.android.contacts/.activities.PeopleActivity]).
Only thing is I need the suggestions to be displayed from the web & my application DB.
Any idea how to implement this ? Do I need to implement my own SuggestionsProvider or can I directly use the native implementation? If so, how?
I think i figure it out myself.
Went through Searchable Dictionary code & QuickSearchBox code in android source.
Need two start 2 activities in a background thread. One will search for the search-term in my DB & other will search the same in Google. All the results will be seen in the suggestion list.
Google Suggest API provides suggestions as the user enters the text.

Categories

Resources