• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to convert ASCII character to decimal number in Android?

Hi!

I'm working on an Android app. 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.
 
Back
Top Bottom