起价服务视图? [英] Starting a View from a Service?

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

问题描述

已经问过类似的问题,但没有多少运气。

Already asked a similar question, yet without much luck.

假设我有一个服务,我需要一个视图弹出上面。在同一时间,它们都应该是顽固性的,即,用户应该能够在后台服务视图中都点击按钮,以及那些

Suppose I have a service and I need a view to pop up above it. In the same time, they both should be intractable, i.e. the user should be able to both click buttons within the view, as well as ones on the service in the background.

这是在理论上可能吗?如果是的话,我应该怎么初始化看法?

Is this in theory possible? If yes, how should I initialize that view?

谢谢!

推荐答案

您需要的是从正在运行的服务实例添加视图。这样你能坚持在所有活动的看法 - 并从其他地方。看到这个很好的例子:

What you want is to add a view from your running service instance. This way you can persist the view across all activities - and from anywhere else. See this great example:

http://www.piwai.info/chatheads-basics/

这篇关于起价服务视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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