How to convert ASCII character to decimal number in Android?

I have a TextView which contains an ASCII character. This character changes every 2 hours. I need to be able to read this character and convert it to decimal number, and then write it to an another TextView. So let’s say the character is “[” and it’s decimal value is 91. 2 hours later this character changes to “U” and it’s decimal value is 85. Can anyone help me what kind of code should I use in my app to be able to convert ASCII character to decimal number? Thanks for helping.

Let me google that for you :slight_smile:
first result, second result, 4th result, 6th result, almost every result