Change widget text in another activity
- by Darmen
Suppose I have ActivityA and ActivityB, also suppose that ActivityA is active. I need to:
Programmatically set a text of EditText in ActivityB from ActivityA
Launch ActivityB
Here's my code:
EditText res;
final LayoutInflater factory = getLayoutInflater();
final View resultView = factory.inflate(R.layout.ActivityB, null);
// get widget
res =…