如何使机器人运行的应用程序的窗口小部件? [英] How to make widget of running application in android?

查看:117
本文介绍了如何使机器人运行的应用程序的窗口小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的运行的应用程序的窗口小部件。我的意思是我想通过控件访问主屏幕上的我的应用程序。我要拨打电话,发送短信到存储在我的应用程序特定的数字。

I want to make my running application's widget. I mean I want to access my application through widget on home screen. I want to dial a call, send sms to particular number which is stored in my application.

有没有可能在android系统?我被困在这一点,如果任何人有任何类型的想法的话,请给我建议。

Is it possible in android? I am stuck on this if anyone has any type of idea then please suggest me..

修改 -

我要让小部件一样功率控制。在此,我们可以通过插件操作的设置,所有功能。在同一方面,我想控制部件通过我的应用程序和我有同步我的小部件,反之亦然应用。所以我不能够理解我该怎么做..谁能帮助我以这种方式?

I want to make widget like Power Control. In this we can operate all features of settings through widget. At the same ways I want to control my application through widget and for that I have to sync my application with widget or visa-versa. So I am not able to understand how can I do that.. Can anyone help me in this manner?

感谢。

推荐答案

您可以创建广播接收器消耗所有广播活动,如果你从你的应用程序从你的widget消防广播事件也没关系,他们都将你的广播听众进行处理。

You can create broadcast receiver to consume all the broadcast events, and it doesn't matter if you fire broadcast events from your application of from your widget, they all will be handled at your broadcast listener.

这篇关于如何使机器人运行的应用程序的窗口小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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