android对话框打开另一个视图 [英] android dialog opening another view behind it

查看:159
本文介绍了android对话框打开另一个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有3个活动,其中一个是一个对话。我通过在AndroidManifest.xml中使用这个代码来实现这一点。

  android:theme =@ android:style / Theme对话框

该应用程序还具有可以打开对话框的服务,即使应用程序不可见,然而,当它这样做时,它也会在后台开启其他活动之一。有没有办法阻止这种情况发生,所以它打开当前活动前的对话框(即使活动来自不同的应用程序)?



谢谢
ng93

解决方案

我结束了关闭我所有的应用程序活动,然后才开始对话活动,不理想,但似乎只有这样获取


之后的功能im

Hi my app has 3 activities one of which is a dialog. I've done this by using this code in the AndroidManifest.xml

android:theme="@android:style/Theme.Dialog"

the application also has a service which can open the dialog even if the application is not visible, however when it does this it also opens one of the other activities in the background. Is there a way to stop this happening so it opens the dialog in front of the current activity (even if the activity is from a different application)?

Thanks, ng93

解决方案

i ended up closing all my apps activities before opening the dialog activity, not ideal but seems like the only way to get the functionality im after

这篇关于android对话框打开另一个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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