startActivityForResult AND onActivityResult have [int requestCode] in paramters.
Use requestCode to determine which editText is handling and fill text for it
Call another activity:
startActivityForResult(newActivity, requestCode);
When result is returned:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
switch (requestCode) {
case 1://working with first edit text
//fill text for first edit text
break;
case 2://working with second edit text
//fill text for second edit text
break;
case 3://working with third edit text
//fill text for third edit text
break;
}
}
0
solved How to get more than one contacts in editTexts [closed]