1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to convert ASCII character to decimal number in Android?

Discussion in 'Android Development' started by adamhala007, Jul 28, 2013.

  1. adamhala007

    adamhala007 Lurker
    Thread Starter


    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.

    1. Download the Forums for Android™ app!


  2. SiempreTuna

    SiempreTuna Android Expert

    Don't know anything about Android programming but this might help.

    Google is your friend ;)
    adamhala007 likes this.

Share This Page