the data from sqlite is not view in textview if inserted value in database .what i should do ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

the data from sqlite is not view in textview if inserted value in database .what i should do ?

after get text from edittext and inserted in database .is not show in text view this is code public void addedinfo() { SetContentView(Resource.Layout.main2); View customView = LayoutInflater.Inflate(Resource.Layout.main2, null); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.SetPositiveButton("Save", (senderAlert, args) => { title = FindViewById<EditText>(Resource.Id.editText1); email = FindViewById<EditText>(Resource.Id.editText2); password = FindViewById<EditText>(Resource.Id.editText3); string f = title.Text.ToString(); string fe = email.Text.ToString(); string fp = password.Text.ToString(); dbManager.insert(f, fe, fp); }); builder.SetNegativeButton("Cancel", (senderAlert, args) => { }); builder.SetView(customView); builder.Create(); builder.Show(); }

31st Dec 2018, 9:57 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
1 Answer
0
I'm not much with xamarin, but i can see you only inserting the data to db. Try to repopulate the textview from db after insert. At least thats how it was done in AS
31st Dec 2018, 11:23 AM
Taste
Taste - avatar