I prepared html codes in string.xml. I want to show html text in textview at secondactivity after button click. But I couldnt. I mean every html tags still there.
here my codes in main activity.
bir.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String veri = getString(R.string.dahi);
Intent intent = new Intent(MainActivity.this, Main2Activity.class);
intent.putExtra("veri", veri);
startActivity(intent);
}
});
}
//and here is second activity:
te=(TextView)findViewById(R.id.te);
Intent intent=getIntent();
String gelenVeri=``intent.getStringExtra("veri");
te.setText(gelenVeri);
enter code here
I want to see normal text after buttonclick, yet I still html codes. what can I do? thanks everyone.