1. Download our Official Android App: Forums for Android!

Apps 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
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Jul 18, 2013

    Jul 18, 2013
    6
    0
    5
    Male
    Slovakia
    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.
     

    Advertisement

  2. SiempreTuna

    SiempreTuna Android Expert
    Rank:
    None
    Points:
    423
    Posts:
    3,892
    Joined:
    Jan 11, 2013

    Jan 11, 2013
    3,892
    1,053
    423
    Don't know anything about Android programming but this might help.

    Google is your friend ;)
     
    adamhala007 likes this.

Share This Page

Loading...