Code example for EditText

Methods: selectAll

0
  } 
 
  @Override 
  protected void onResume() { 
    super.onResume(); 
    queryTextView.selectAll();
  } 
 
  @Override 
  protected void onPause() { 
    NetworkTask oldTask = networkTask;
    if (oldTask != null) {
      oldTask.cancel(true);
      networkTask = null;
    } 
    super.onPause(); 
  } 
 
  private void launchSearch() { 
    String query = queryTextView.getText().toString();
    if (query != null && query.length() > 0) {