aspose file tools*
The moose likes Android and the fly likes how to store the result of the request in table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to store the result of the request in table" Watch "how to store the result of the request in table" New topic
Author

how to store the result of the request in table

Sarra Sakka
Ranch Hand

Joined: Jul 12, 2013
Posts: 274
I created a method to store the result of the request SQLite in a table


I want to get the number of elements in this table, so i put this :

But when i compile my application, n get 0 !!!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Did you try setting a break point on line 10 of your getProductName method and see c.getCount() actually is?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Sarra Sakka
Ranch Hand

Joined: Jul 12, 2013
Posts: 274
I correct it by my self
It's lacks :
if(c.moveToFirst())
{ ...
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to store the result of the request in table