I'm having a problems.
In a class "A" I have the code:
Intent cInt = new Intent(Add_Product_Page.this, CategoryListActivity.class);
Bundle extra = new Bundle();
extra.putBoolean("for_result", true);
startActivityForResult(cInt, GET_CATEGORY, extra);
This code is from another class that starts the activity
Bundle extra = getIntent().getExtras();
if (extra != null) {
isforResult = cInt.getBooleanExtra("for_result", true);
setIsforResult(isforResult);
} else {
setIsforResult(false);
}
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("Category");
}
I debugged Class A and I got the value of extra as true but when I am debugged another class I am getting NULL in the extra
Can anybody help me.
Thanks in advance