I have a s3db database in SQLite. Now I want to attach or open it in the application? Please tell me what code needs to be written to connect to the database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I will give u an example with the help of that u can easily understand how can we show the data from the database on a textview. Below is the code in which the testdata is the name of the database which have user table in which 2 columns are present. i show the data of these 2 columns on 2 diff. textviews.
you can easily access the data like this