I have two activities A and B which are parallel to each other. A can switch to B any time and vice versa. I don’t want A or B recreated every time one calls startActivity on the other. The only way to achieve that, so far I have found, is setting A to “singleTask” and B to “singleInstance”, but it seems like a giant hack to me because somewhere I read that singleTask and singleInstance should not be present in the same application. Could anyone enlighten me with the proper way to have two activities start each other without creating new instances of either activity?
Thanks!
Start both Activities using: