• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to read table from mobile

 
vinal s.sen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not use the DB API within the app to check that?
 
vinal s.sen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this is the code i am using.

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic