getting error at " edittext.getText().toString() " inside a custom dialog
<p>I am facing errors at the following places inside the custom dialogs that i hav created. Is is not possible to hav such functions inside a custom dialog??</p>

<blockquote>
  <p>final EditText x= (EditText)findViewById(R.id.edtLocationName);</p>
  
  <p>String strTextValue = x.getText().toString();  //here</p>
  
  <p>int x1 =geoLat.intValue()xt().toString();  //and here</p>
</blockquote>
