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

setText on Button Click Crashes APP?

Discussion in 'Computers' started by VaMoose, Dec 9, 2012.

  1. VaMoose

    VaMoose Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Dec 7, 2012

    Dec 7, 2012
    5
    0
    5
    Male
    Web and Graphics Designer
    Bryanston, Gauteng, South Africa
    Hi there. I am trying to set the Text of a Text View when a button is clicked.

    I have been struggling, because the variable will increment, but If i put the code in to set the text, it crashes the app ?

    Here is my code when it crashes:

    however if I comment out the line
    , the app doesnt crash, but it doesnt do anything then.

    Please can someone help me!
     

    Advertisement

  2. SUroot

    SUroot Android Expert
    Rank:
    None
    Points:
    1,123
    Posts:
    23,925
    Joined:
    May 25, 2010

    May 25, 2010
    23,925
    5,304
    1,123
    UK Technical Lead; Desktop Support
    Riddlesden, West Yorkshire, UK
    Are you developing an app? The development section would probably be a better place for this
     

Share This Page

Loading...