1. <small id='i2ZsI'></small><noframes id='i2ZsI'>

      <legend id='i2ZsI'><style id='i2ZsI'><dir id='i2ZsI'><q id='i2ZsI'></q></dir></style></legend>

      <i id='i2ZsI'><tr id='i2ZsI'><dt id='i2ZsI'><q id='i2ZsI'><span id='i2ZsI'><b id='i2ZsI'><form id='i2ZsI'><ins id='i2ZsI'></ins><ul id='i2ZsI'></ul><sub id='i2ZsI'></sub></form><legend id='i2ZsI'></legend><bdo id='i2ZsI'><pre id='i2ZsI'><center id='i2ZsI'></center></pre></bdo></b><th id='i2ZsI'></th></span></q></dt></tr></i><div id='i2ZsI'><tfoot id='i2ZsI'></tfoot><dl id='i2ZsI'><fieldset id='i2ZsI'></fieldset></dl></div>

      1. <tfoot id='i2ZsI'></tfoot>
          <bdo id='i2ZsI'></bdo><ul id='i2ZsI'></ul>
      2. Android广播接收器显示一个对话框?

        时间:2023-08-30

          <legend id='ECTUl'><style id='ECTUl'><dir id='ECTUl'><q id='ECTUl'></q></dir></style></legend>
          <tfoot id='ECTUl'></tfoot>
        1. <i id='ECTUl'><tr id='ECTUl'><dt id='ECTUl'><q id='ECTUl'><span id='ECTUl'><b id='ECTUl'><form id='ECTUl'><ins id='ECTUl'></ins><ul id='ECTUl'></ul><sub id='ECTUl'></sub></form><legend id='ECTUl'></legend><bdo id='ECTUl'><pre id='ECTUl'><center id='ECTUl'></center></pre></bdo></b><th id='ECTUl'></th></span></q></dt></tr></i><div id='ECTUl'><tfoot id='ECTUl'></tfoot><dl id='ECTUl'><fieldset id='ECTUl'></fieldset></dl></div>
            • <bdo id='ECTUl'></bdo><ul id='ECTUl'></ul>

                <small id='ECTUl'></small><noframes id='ECTUl'>

                  <tbody id='ECTUl'></tbody>
                  本文介绍了Android广播接收器显示一个对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个响应警报的应用程序 - 在进入下一个屏幕之前,我确实需要显示带有密码输入的警报;问题是我似乎无法显示来自广播接收器的对话框 - 那么如何在收到警报时显示对话框密码输入?

                  I've got an app that responds to an Alert - and I really need to show an alert with a password entry before going on to the next screen; the trouble is I don't seem to be able to show a dialog from a broadcast receiver -- so how can I show a dialog password entry upon receiving an alert?

                  推荐答案

                  创建一个activity,使用Theme.Dialog,调用startActivity()打开它.虽然您不能使用真正的"Dialog,但您可以创建一个看起来像 Dialog 的 UI.

                  Create an activity, using Theme.Dialog, and call startActivity() to open it. While you cannot use a "real" Dialog, you can create a UI that looks like a Dialog.

                  请记住,根据广播弹出活动可能会极大地激怒某些用户,他们可能不喜欢您的对话出现在他们的游戏或短信对话或其他任何事情的中间.您可能希望考虑实际提出一个 Notification,然后在他们打开该 Notification 时显示对话框.

                  Bear in mind that popping up an activity based on a broadcast may greatly irritate some users, who might not appreciate your dialog appearing in the middle of their game or text message conversation or whatever. You may wish to consider actually raising a Notification, then displaying the dialog when they open up that Notification.

                  这篇关于Android广播接收器显示一个对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在android中显示对话框时我们可以与后台活动交互 下一篇:如何将自定义列表视图设置为对话框

                  相关文章

                  最新文章

                • <legend id='J9XFC'><style id='J9XFC'><dir id='J9XFC'><q id='J9XFC'></q></dir></style></legend>

                    • <bdo id='J9XFC'></bdo><ul id='J9XFC'></ul>

                    <small id='J9XFC'></small><noframes id='J9XFC'>

                    <i id='J9XFC'><tr id='J9XFC'><dt id='J9XFC'><q id='J9XFC'><span id='J9XFC'><b id='J9XFC'><form id='J9XFC'><ins id='J9XFC'></ins><ul id='J9XFC'></ul><sub id='J9XFC'></sub></form><legend id='J9XFC'></legend><bdo id='J9XFC'><pre id='J9XFC'><center id='J9XFC'></center></pre></bdo></b><th id='J9XFC'></th></span></q></dt></tr></i><div id='J9XFC'><tfoot id='J9XFC'></tfoot><dl id='J9XFC'><fieldset id='J9XFC'></fieldset></dl></div>
                    1. <tfoot id='J9XFC'></tfoot>