I am using a class which is extending ActivityGroup and there is a method:
public void startChildActivity(String Id, Intent intent) {
Window window = getLocalActivityManager().startActivity(Id,intent);
if (window != null) {
mIdList.add(Id);
setContentView(window.getDecorView());
}
}
When debugging in Android 2.2,
getLocalActivityManager().startActivity(Id,intent)
is returning null. In 4.0 it’s working fine.
Has anyone faced this problem before? Please suggest what to do?
Did you read this note?
This could maybe explain your problem. By the way It seems that you are trying to implement something like fragments. Better use the ActionBarSherlock this is a backport for older android versions.