user1206395
user1206395

Reputation: 1

Android ::Close all activity in Tabhost when changeConfig

I try simple Tab application from here

I have simple problem, I run above application on an emulator as well as device, I have five activities (such as: A , B , C, D, E). I wanna go to A->B->C->D->E, after going E activity I change config using press key ctrl+ F11 on keyboard. When the change of orientation happens all activities are closed present in tab and showed the first activity. I can't understand where I'm wrong..

Upvotes: 0

Views: 209

Answers (1)

RobinHood
RobinHood

Reputation: 10969

In your manifest file simply add this property in your all activities or in main activity.

android:configChanges="orientation|keyboardHidden"

Upvotes: 2

Related Questions