i have added onClick in my mainactivity for my textview and i had no errors but when i run the app it crashes saying app has stopped working even though i have no errors in my c
Your id for linear layout and text-view both are same or what, if it is so, then change the id of linear layout. by below line of code it is clear that you have assigned same id to linear layout and text-view.