1

Is it possible to set parent activity programmatically . Normally I am setting parent activity from the manifest file but I need to change parent activity dynamically .

Thanks in Advance

OlivierLi
  • 2,798
  • 1
  • 23
  • 30
Nepal12
  • 583
  • 1
  • 12
  • 29
  • If you handle the Navbar Up Navigation manually as shown [here](http://developer.android.com/training/implementing-navigation/ancestral.html) then you don't need to set the Parent Activity in the Android Manifest. Do note that the method shown in the above guide has a big flaw. i.e. NavUtils behaves differently for ICS(and lower APIs) and JellyBean(and higher APIs) as explained [here.](http://stackoverflow.com/a/14792752/238768) – kpsfoo Apr 17 '14 at 17:19
  • another related question - also with no real answer: [How do I set the parent activity of an activity at runtime?](http://stackoverflow.com/questions/20378894/how-do-i-set-the-parent-activity-of-an-activity-at-runtime) – Richard Le Mesurier Jul 03 '14 at 11:21

0 Answers0