aspose file tools
The moose likes Android and the fly likes how to diaplay no result found Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "how to diaplay no result found " Watch "how to diaplay no result found " New topic
Author

how to diaplay no result found

deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
hi ,
i want to display a command in the coding "No Result Found" if the data does not exists in the coding while searching. how to display that command ? can any one tell this ?

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6601
    
    1

I cannot tell what your code is trying to do because it is difficult to read. Have you considered using a Toast ?


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
i have an query to search the data from an string. and i get the results for what queries that exists in the string. but it does not give any result if the data does not exists in the system. want to make that display. i am trying to use that result in the code. but it does not work or shows some error. i am not sure where to use the code. till i used i have used it in "if" case (i.e) after the if case i have used an "else" statement for displaying that result. but it does not work.
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1235

Deepika,

Do you mean in each keypress it searches the array and if a match is found starting with those characters it displays the matched result or else it displays no result found?


Swastik
deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
ya exactly that is the case
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1235

Deepika,

Could you please try this once


main.xml
-----------
deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
ya the code works fine. thank you
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1235

You are welcome.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to diaplay no result found
 
Similar Threads
How to add new country and flag in the list view
Error: "R cannot be resolved"
how to declare array of list for an file
how can we view the two lists on a single display???
how to make case insensitive in android