Hi, im adding a search function from my contact database(tinydb). Here’s what i have attempted soo far.
The app crashes when implementing this. Could someone show me the proper way?
Hi, im adding a search function from my contact database(tinydb). Here’s what i have attempted soo far.
What do you mean by crash?
Does it show errors? if so you can post here
it does not, the app immediatly closes.no errors shown so im not sure
I think the first “if” block is text box text lenght != 0, and the second “if” is using “contains text” downcase of get contact_tags
use logcat to find out what happens
Taifun
I have solved the crashing issue it was due to the value of the textbox equal to 0 so i changed it to more than zero and now it is fixed. But now im having issues on retrieving the data from tiny db. It cant retrieve data and gives out not found error. Here’s the updated version
What is the error and what is your tinydb data looks like?
According to me, I am not sure if I am right,
The TinyDB getvalue should have Select list item from list “contact_data” of index “number”.
Nd accordingly it should be add item to list
“Phone Numbers”
it consist of name and phone number. The error is data is not found
let me check
answer this:
why you set your textbox.text to “close”?
everytime the text box get filled the search icon will change to close icon
look at your own blocks, anything changed on Text_Box1, you set Text_Box1.Text to “close”. Perhaps you mean set Clear_all.Text to “close”
try This. I was Suggesting you to do this
trying it now
just want to confirm how would the image+listview would receive the data?
The app crashes immediately, the way i called the blocks incorrect?
Not like this Buddy. pls PM me your AIA I will fix and give