setText on Button Click Crashes APP?


Last Updated:

  1. VaMoose

    VaMoose Member This Topic's Starter

    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    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 Well-Known Member Developer

    Joined:
    May 25, 2010
    Messages:
    23,925
    Likes Received:
    5,302
    Are you developing an app? The development section would probably be a better place for this
     

Share This Page

Loading...