应用程序应该在最近的应用程序列表中未显示后完成的活动,如果应用程序是不显示最近的应用程序列表previously

编程入门 行业动态 更新时间:2024-10-13 04:19:47
本文介绍了应用程序应该在最近的应用程序列表中未显示后完成的活动,如果应用程序是不显示最近的应用程序列表previously的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

步骤1 - 应用程序没有在最近的应用程序列表存在(应用程序已经从最近的应用程序列表中删除)。 第2步 - 一旦我得到通知开IncomingCall活动,用户接受呼叫。 步骤3用户点击断开按钮完成IncomingCall活动。

Step 1- Application is not exist in recent app list (App has been removed from recent app list). Step 2- As soon as I got notification open IncomingCall activity, User accept the call. Step 3- User click on disconnect button finish the IncomingCall activity.

Problem-应用显示在最近的应用程序列表,即使应用程序是不是在最近的应用程序列表previously。

Problem- Application showing in recent app list even app was not in recent app list previously.

清单条目

<activity android:name=".activities.IncomingCall" android:excludeFromRecents="true" android:launchMode="singleTop" android:screenOrientation="portrait" > </activity>

在活动使用

public void onClick(View v) { switch (v.getId()) { case R.id.onCallDisconnectButton: phoneCallBaseClass.disconnect(); IncomingCall.this.finish(); break; } }

和我也尝试过下面的链接,但是当应用程序在后台已经存在,将工作

And also I have tried below link but it will work when app already exist in background

Remove从最近的应用程序编程

或 是否有任何其他的方式来显示来电视图,以便它不会坚持历史。

OR Is there any other way to show incoming call view So that it will not persist in history.

您可以采取的任何VoIP电话应用的例子 -

you can take example of any VoIP calls app-

从最近的应用程序列表中删除应用程序后来电来了,用户断开呼叫活动(IncomingCallActivity)将不会存在于最近的应用程序列表。 但是,在我的情况下,坚持活动在最近的应用程序列表挂断电话后。

Remove app from recent app list after that incoming call came, user disconnect the call activity(IncomingCallActivity) would not be exist in recent app list. But in My case activity persist in recent app list after disconnecting the call.

感谢

推荐答案

一个星期后想感谢上帝,我得到了答案。 添加singleTask属性以及来自最近的排除。 它是在5.0的错误,现在已经在5.1解决

Thanks God, I got answer after wondering a week. Add singleTask attribute along with exclude from recent. It was a bug in 5.0 now has been resolved in 5.1

<activity android:name="activityName" android:excludeFromRecents="true" android:launchMode="singleTask" > </activity>

更多推荐

应用程序应该在最近的应用程序列表中未显示后完成的活动,如果应用程序是不显示最近的应用程序列表previously

本文发布于:2023-11-27 10:50:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637766.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   列表   中未   previously

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!