I want to convert my int expression obtained with this :
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_full_screen_image);
imageViewFullScreen = findViewById(R.id.imageView_fullscreen);
textViewFullScreen = findViewById(R.id.textView_fullscreen);
try
{
Bundle bundle = getIntent().getExtras();
imageId = bundle.getInt("imageId");
}
into a String expression, but when I try to do it, it doesn't work.
I try to put it in a TextView, with the int expression I have the right thing, but with String I only have numbers and not text.
I want to do that to cut a part of String which interest me.
There are solution to have what I want whitout passing by a String ? or to convert correctly my int expression ?
I've try to do this :
imageViewFullScreen.setImageResource(imageId);
textViewFullScreen.setText("");
textViewFullScreen.append("Ref : " + imageId);
I want to have : res/drawable/cata_01jpg
, but I have : 2131099745
thank's for all !