File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes how to diaplay no result found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
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: 6657
    
    5

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 - More SCJP Mocks
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
Rancher

Joined: Jan 08, 2009
Posts: 1398
    
    6

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
Rancher

Joined: Jan 08, 2009
Posts: 1398
    
    6

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
Rancher

Joined: Jan 08, 2009
Posts: 1398
    
    6

You are welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to diaplay no result found
 
Similar Threads
how to declare array of list for an file
how to make case insensitive in android
How to add new country and flag in the list view
Error: "R cannot be resolved"
how can we view the two lists on a single display???