简体   繁体   English

如何防止破坏活动本身?

[英]How prevent to destroy Activity itself?

In UI, there are three button for 3 types attachments(image,video,audio).After selection image/video/audio color of button changed to green. 在用户界面中,有3个用于3种类型附件的按钮(图像,视频,音频)。选择图像/视频/音频后,按钮的颜色变为绿色。

Problem:- 问题:-

First I click on image button to save image from SD, image successfully attached & color of button change to green.But after it click video button to attach video then attachment complete but selection of image is remove. 首先,我单击图像按钮以从SD保存图像,图像已成功附加并且按钮的颜色变为绿色。但是在单击视频按钮以附加视频之后,附件完成了,但是图像的选择被删除了。

when select image or video or audio then previous selection is destroy. 当选择图像,视频或音频时,先前的选择将被销毁。

Reason:- 原因:-

Activity is destroy & re create itself. 活动是破坏并重新创建自己。

Question:- 题:-

How stop to recreate activity? 如何停止重新创建活动?

通过更改设置可以解决问题。在开发人员选项中,取消选中“不保留活动”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM