Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one textView and one switchButton in recyclerview. My question is how can I insert textView value into database when switchButton is checked. I have been trying since long time but unable to find out this.


Please help I am beginner with Android Studio.


Thanks

What I have tried:

...................................
Posted
Comments
David Crow 30-Jan-19 10:31am    
"I have one textView and one switchButton..."

By "switchbutton", do you mean this?


"My question is how can I insert textView value into database when switchButton is checked."

Are you having trouble:

1) getting TextView value?
2) inserting a row into a database table?
3) determining if the Switch control is on?
Member 12245539 1-Feb-19 11:49am    
Yes, please help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900