How to convert ASCII character to decimal number in Android?

  • Replies:0
Ádám Halász
  • Forum posts: 4

Jul 28, 2013, 6:05:20 PM via Website

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.

Reply