This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes how to create an search box and search an query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to create an search box and search an query" Watch "how to create an search box and search an query" New topic
Author

how to create an search box and search an query

deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
hi ,

i have an application that displays the results for both English and Tamil. i want to create an search application for this data such that the user i able to give an query.



can any one help me?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

Let me guess what your exact requirement is. You have listview that displays the data in tamil font, right? You have an edittext where the user a text and that is in tamil, and the searched result is displayed in text view, right?


Swastik
deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
ya exactly yar
thomas brian
Greenhorn

Joined: Apr 19, 2012
Posts: 16
use this coding :


HTML source code: <form method="get" action="http://www.mysite.com/search.php">
<table cellpadding="0px" cellspacing="0px">
<tr>
<td style="border-style:solid;border-color:#CCCCCC;border-width:1px;">
<input type="text" name="zoom_query" style="width:100px; border:0px solid; height:17px; padding:0px 3px; position:relative;">
</td>
<td style="border-style:solid;border-color:#CCCCCC;border-width:0px;">
<input type="submit" value="" style="border-style: none; background: url('searchbutton2.gif') no-repeat; width: 24px; height: 22px;">
</td>
</tr>
</table>
</form>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

thomas, is your response actually for this question? It seems out of place, there isn't any html in the OP's code.

Also, please use the CODE tags when posting any type of code so that the indentation remains with the code and we can read it.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I'd also like to point out that that html has styling in it and also using a table, when CSS should be used for both.

Mark
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Instead of implementing your own search solution, I think it's much better to hook into Android's built-in search framework. If you organize your content as a ContentProvider, and declare it to be searchable in the manifest, then you can use the system-wide search box to search for your content.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to create an search box and search an query
 
Similar Threads
how to declare array of list for an file
styling items of a ListView
how to use tamil fonts in android mobile
How to get the complete path of file from android application
getting null pointer