I am using a search widget in my application.I want to provide the search suggestions with the person names in the server. How to provide custom search suggestions where the names are retrieved from a webservice?
What are the steps i need to follow here?
How about these links to get you started, Android Search Overview and How to add search functionality to your Android application.
Related
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.
I want to learn how to create a form same as one that is given in the contact application of android. You can see that form when you open your contact application and click on create my profile image in the option menu.
If you know any tutorial that have sample code to create such form , plz give me those links. I am also searching for such tutorials.
From Android :
http://developer.android.com/resources/tutorials/views/hello-formstuff.html
Other:
http://mobile.tutsplus.com/tutorials/android/android-sdk-creating-forms/
http://vimaltuts.com/android/finalize-your-login-form-part-3
There are many more out there. But I would suggest, you start from the one on the Android documentation site - this.
I am developing an android app which requires search functionality.
My app contains action bar and I have search button on it. On click of search button, I want search dialog to appear on top and do some search for me.
I need help in implementing this.
I tried the Google I/O sched project, but its too complex for me.
Can anybody help me develop a simple search dialog.
Also, I want the search to have 2 search options.
I have 2 different lists containing different data. So, I want to make search on both these lists but separately.
Check out this twitter app, the search bar has 2 options, it can search from tweets or people, I want some thing like thatA.
Any help is appreciated.
Thanks
Just go through these two links they will give a basic idea of how to add a searching functionality in your application.The idea can then be extended to have search based on two buttons.
http://shapingclouds.com/2009/10/19/how-add-searchmanager-quick-search-to-your-android-application/
http://developer.android.com/guide/topics/search/search-dialog.html
After you have done with above two links go through these links.They will give you idea of Twitter application's search.You can then extend the idea to create your own search functionality.
http://www.vogella.de/blog/2010/02/15/twitter-android/
I hope this may help you.
I am doing search_bar in my android application, for that i created edit text and button. it will search data whatever we edited in edit text.But giving more attraction to my search_bar i have a idea to include android default search box to my application. i am not sure about the possibility of including default search bar to my application. I searched in google, but i cant get any proper guidance. if any of you guys having idea about this issue please guide me..
If you want to make a custom search bar, look at the Dictionary example given in the Android developer guide. I am having trouble myself modifying the example, but it was helpful starting point to create my own customizable search
I am new to android and have been teaching myself how to create apps through the android developers website. My app itself is like a recipe book. It lets me add my favourite recipes to a database so therefore where ever I am I am able to see what ingredients and the method for creating my favourite dishes. The list is getting rather long now so I was wondering if there was a way to search through a list like you do for contacts in your phone book. This would make things a lot easier for me.
Thanks in advance
You can actually integrate the Android search box (the one that pops up when you hit the "search" hardware key) into your application, so it searches your data. There's a page on Using the Android Search Dialog in the Android Developer Guide.
Also for user convenience and habbits to use search button you can override onSearchRequested method and do anything you want, show additional layout etc...