I have the following case
When press a button I startActivityForResult , it opens another activity with dialog theme and show a list of linear layouts, and when I press on the linear layout I finish the activity on the onClick Listener
but the onActivityResult method never called
so can anyone help in this ??
EDIT: Adding code
Activity that open the dialog activity
Intent intent = new Intent(FirstActivity.this, SecondActivity.class);
intent.putExtra(DATA_LIST_KEY, myDataList);
startActivityForResult(intent, 5000);
onClick Listener
public void onClick(View v) {
setResult(5000);
SecondActivity.this.finish();
}
EDIT 2
I have found the following
1- I'm using TabActivity to add tabs to all my activities, now The onActivityResult fire on the TabActivity but doesn't fire in the sub activities inside it
Can any one help ??