I’ve a Sqlite with many tables and I want to make a TextBox which is able to search on SQL , How can I do this?
I’ve a Sqlite with many tables and I want to make a TextBox which
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.
First of all: That Question is too big of a scope. Second: You usually don’t want people to search your entire DB… for obvious reasons: Content they should not see, like Passwords of other users.
So you have to compile a List of all contents that should be searchable first. On each of those tables in your DB you can search the columns by for example:
This is assuming you have a Table shaped like
ID, linkToResource, allowedContent1, allowedContent2, secretContent1, secretContent2In Android that statement looks like this:
You retrieve a String from a EditText like this:
Here is hoping you got an idea of it 😀
Next time please provide some code with a more precise problem (e.g. “Why won’t the following code return a four digit int?”)
Enjoy!