I want to create a TextView in my first Activity as a link, when i click on that textview i want to start the second activity in my application.
Implement a View.OnClickListener for your TextView and start the other activity in the listener:
textView.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent intent = new Intent(this, OtherActivity.class);
startActivity(intent);
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With