我怎么一个电话后带来的应用前景? [英] How do I bring application to foreground after a call?

查看:177
本文介绍了我怎么一个电话后带来的应用前景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我把一个电话,由于其我的应用程序中去的背景和暂停。挂断电话,而不是我的应用程序的未来前景后,手机自带的应用程序进入前台。

In my app, I am placing a phone call due to which my app goes in background and suspended. After disconnecting the call instead of my app coming in foreground, native phone app comes into foreground.

有由挂断电话后,我的应用程序进入前景(而不是原生手机应用程序)的任何方式。

Is there any way by which my app comes into foreground (instead of native phone app) after disconnecting the call.

如果没有直接的方法,私有API /方法也作为我不打算提交关于应用商店这个程序。

If there is no direct way, private api/methods also work as I am not going to submit this app on app store.

在此先感谢

推荐答案

由于这将打破沙箱安全(检测呼叫中断,覆盖了另一个应用程序等),我怀疑有任何API,公开或以其他方式,在一个未修改的股票OS,这将让你强迫你的应用前景无需任何用户交互。

Since this would break sandbox security (detecting call disconnect, covering up another app, etc.), I doubt there is any API, public or otherwise, on an unmodified stock OS, that would allow you to force your app to the foreground without any user interaction.

这篇关于我怎么一个电话后带来的应用前景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆