I code some TextViews programatically and I want to provide them with ids. In the xml file I would have done something like:
android:id="@+id/btn0"
but in the .java file I'm allowed to set the id only as a number:
t1.setId(3);
Is there any possibility to convert "btn0" in a number and then to use findbyid() functions using as a parameter the string "btn0"?
P.S. I experimented logging the value of R.id.btn0 and I get a number : 2131361887
Log.d("aaa", Integer.toString(R.id.btn0));
Is there any possibility to convert this number back in string of ASCII characters?
Thank you a lot!