Intent i = new Intent(MainActivity.this,
SubActivityWithResult.class);
/* Create a bundle that will
* hold will be passed to the
* SubActivityover the Intent */
Bundle b = new Bundle();
b.putString("DEFAULTTEXT", "Some Default blabla...");
i.putExtras(b);
// We use SUB_ACTIVITY_REQUEST_CODE as an 'identifier'
startSubActivity(i, SUB_ACTIVITY_REQUEST_CODE);