java - Show activity on top of other activity -



java - Show activity on top of other activity -

i have app produces notification when process completes. upon clicking on notification, popup created. popup activity isn't total screen.

my issue if popup created on top of open application, when screen orientation changes, background application killed. have attempted circumvent forcing portrait mode (in manifest , code) kills background app when closing out of popup.

does know how accomplish without killing background app when configuration changes?

add these lines in manifest

<activity android:name=".activity" android:configchanges="keyboardhidden|orientation" android:label="@string/app_name">

then implement in java code override method

public void onconfigurationchanged(configuration newconfig) { super.onconfigurationchanged(newconfig);}

with telling application nil when config changes occur (orientation changes let's say) had same problem. whole activity restarted, adding this, solved issue. hope work too.

java android screen-orientation

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -