title: java.lang.numberformatexception: invalid long:""
body: <blockquote>
    <p>Firstly I want to connect WebServis has parameters(identification number,name,surname,date of birth).But I can't resolve this error.</p>
  </blockquote>
  
  <pre><code>EditText txtTC;
  EditText txtAd;
  EditText txtSoyad;
  EditText txtDogumYili;
  Button btnDogrula;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      txtTC=(EditText)findViewById(R.id.txtTC);
      txtAd=(EditText)findViewById(R.id.txtAd);
      txtSoyad=(EditText)findViewById(R.id.txtSoyad);
      txtDogumYili=(EditText)findViewById(R.id.txtDogum);
      btnDogrula=(Button)findViewById(R.id.btnDogrula);
  
  
  
      btnDogrula.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
  </code></pre>
  
  <blockquote>
    <p>Inputs that is taked from user in this class is embed in tcKnoInput </p>
  </blockquote>
  
  <pre><code>            final TCKimlikNoInput tcKnoInput=new TCKimlikNoInput();
              tcKnoInput.setTcKimlikNo(Long.parseLong(txtTC.getText().toString()));
              tcKnoInput.setAd(txtAd.getText().toString());
              tcKnoInput.setSoyad(txtSoyad.getText().toString());
              tcKnoInput.setDogumYili(Integer.parseInt(txtDogumYili.getText().toString()));
  
              TCKimlikAsyncTask lt=new TCKimlikAsyncTask();
  
              try{
  
                  lt.input=tcKnoInput;
                  lt.execute("");}
              catch(NumberFormatException ex){ // handle your exception
                  ex.printStackTrace();
  
          }
      }});
  
      TCKimlikNoInput tcKnoInput=new TCKimlikNoInput();
      tcKnoInput.setTcKimlikNo(Long.parseLong(txtTC.getText().toString()));
      tcKnoInput.setAd(txtAd.getText().toString());
      tcKnoInput.setSoyad(txtSoyad.getText().toString());
      tcKnoInput.setDogumYili(Integer.parseInt(txtDogumYili.getText().toString()));
  
  }
  </code></pre>
  
  <blockquote>
    <p>thanks for answer.But I have new error at other class.Class' code is below</p>
  </blockquote>
  
  <pre><code>public class TCKimlikAsyncTask extends AsyncTask&lt;String,Void,String&gt;{
  
  public TCKimlikNoInput input;
  public boolean sonuc=false;
  
  @Override
  protected String doInBackground(String... params) {
      // TODO Auto-generated method stub
  
      WebServiceCaller i=new WebServiceCallerImpl();
      sonuc=i.TcKimlikNoDogrula(input);
  
      return "";
  }
  
  @Override
  protected void onPostExecute(String result) {
  </code></pre>
  
  <p>Toast.makeText(getApplicationContext(), "Dogrulama Sonucu:"+sonuc, Toast.LENGTH_LONG).show();</p>
  
  <pre><code>}
  
  private Context getApplicationContext() {
      // TODO Auto-generated method stub
      return null;
  }}
  </code></pre>
  
  <blockquote>
    <p>then error;</p>
  </blockquote>
  
  <p>java.lang.NullPointerException at onPostExecute is in this class</p>
  
  <blockquote>
    <p>for last error,Infact I shouldn't have created getApplicationContext(),but it is not seen  defined at parser</p>
  </blockquote>