i am using sqlite and i have some textview in a xml file.The process is to fetch the text from textview and save those in database.But i am unable to fetch text from textview.why?
i.e. it fetches data from editText.
Asked
Active
Viewed 59 times
-2

Phantômaxx
- 37,901
- 21
- 84
- 115

Md Faysal Ahmed Akash
- 196
- 1
- 2
- 14
-
1Please add the code so we could help you more effectively – regev avraham Feb 03 '18 at 21:33
1 Answers
1
To fetch data from TEXT VIEW use
String text=textViewName.getText().toString();
now you can use the text string and send it to your database

007
- 516
- 1
- 5
- 17
-
you have no idea how much thnx u deserve....i was stuck for 2 days with this problem.thnx a bunch! – Md Faysal Ahmed Akash Feb 03 '18 at 22:11