1

overridePendingTransition causes error : java.lang.IllegalStateException: The specified child already has a parent

view story
linux-howto

http://stackoverflow.com – I have an app in which when user taps on a button it takes him to a new activity through an animation. The pressed back the previous activity is created again using animation (transition in/out). Doing this fast cause an error. code: startActivity(intent); overridePendingTransition(R.anim.slide_in,R.anim.slide_out); finish(); Error : java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner(ViewGroup.java:3339) at android.view.ViewGroup.addView(ViewGroup.jav (HowTos)