-2

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.

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

1 Answers1

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