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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 263
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: 9995
    
    7

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: 263
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
 
Similar Threads
NullPointerException problem
Trying to collect wifi data like Metal Gear Solid Portable Ops
telephonyManager.getCellLocation() gives null
Android CustomListView getView() getting nullpointerexception
put in LIST Sample Data to debug, also how view SQLITE DB Data from Eclipse IDE for debug purposes