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

how to read table from mobile

vinal s.sen
Greenhorn

Joined: Jul 20, 2012
Posts: 9
i created a small program for inserting data into the table.two textfields and a button present

it is running in the emulator.i could view the tables using sqlite data browser.

how do i view the same table in my mobile device?i am able to run my program in the device(with or without rooting to pc).in my mobile,record inserted successfully(output of the program) comes.but how do i check database.where it will be stored? do i have to install any data browsing application in my mobile device?

Please help i am new to this android.

thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
Why not use the DB API within the app to check that?
vinal s.sen
Greenhorn

Joined: Jul 20, 2012
Posts: 9
thanks Ulf for the reply.can you please tell me what class I should be using.

I am building a small project. I need to show application on my mobile.

you mean to say that I should be using some class to display the tableview of my database???

whether the phone is rooted or not, no rows are displayed.does it not mean the data is not stored on my mobile??

working fine in emulator.all rows are displayed using toast.

thanks
vinal s.sen
Greenhorn

Joined: Jul 20, 2012
Posts: 9


this is the code i am using.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
I would retrieve all records to see what gets inserted, instead of trying to pick a specific one.

And you should NEVER use an empty catch block if you do I/O or DB operations. How will you know if there are any problems?
vinal s.sen
Greenhorn

Joined: Jul 20, 2012
Posts: 9
Ulf,I tried doing the things you asked.no error shows up in my mobile.

Please explain more about database in mobile.I need to show my application completely in mobile(without rooting to pc) what is the class I should use..?

Is there any tutorial or book out there to help me completely deploy my application in mobile?

Please help me.me confused.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42926
    
  68
If http://developer.android.com/guide/topics/data/data-storage.html#db plus the example source codes that come with the Android SDK which show DB use in action are not sufficient, then I would suggest to get a book on Android programming that does.
 
jQuery in Action, 2nd edition
 
subject: how to read table from mobile