Code example for EditText

Methods: getText

0
  } 
 
  public void evalPrivateBroadcast(View v) {
    Intent i=new Intent("com.commonsware.android.advservice.IScript");
     
    i.putExtra(SCRIPT, script.getText().toString());
    i.putExtra(BROADCAST_ACTION, PRIVATE_ACTION);
    i.putExtra(BROADCAST_PACKAGE,
                "com.commonsware.android.advservice.client"); 
     
    startService(i);
  } 
   
  public void evalPendingResult(View v) {
    Intent i=new Intent("com.commonsware.android.advservice.IScript");
     
    i.putExtra(SCRIPT, script.getText().toString());
    i.putExtra(PENDING_RESULT, createPendingResult(REQUEST_CODE,
                                                   null, 
                                                   PendingIntent.FLAG_ONE_SHOT));