title: Convert number in textview to int
body: <p>So, I am messing around with java/android programming and right now I am trying to make a really basic calculator.  I am hung up on this issue though.  This is the code I have right now for getting the number thats in the textview and making it an int</p>
  
  <pre><code>CharSequence value1 = getText(R.id.textView);
  int num1 =  Integer.parseInt(value1.toString());
  </code></pre>
  
  <p>And from what I can tell it is the second line that is causing the error, but im not sure why it is doing that.  It is compiling fine, but when it tries to run this part of the program it crashes my app.  And the only thing thats in the textview is numbers</p>
  
  <p>Any advice?</p>
  
  <p>I can also provide more of my code if necessary</p>