• <legend id='ZVozz'><style id='ZVozz'><dir id='ZVozz'><q id='ZVozz'></q></dir></style></legend>
  • <tfoot id='ZVozz'></tfoot>

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

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

        在 Android 主屏幕中弹出对话框

        时间:2023-08-30

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

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

          <legend id='fld4Y'><style id='fld4Y'><dir id='fld4Y'><q id='fld4Y'></q></dir></style></legend><tfoot id='fld4Y'></tfoot>
            <bdo id='fld4Y'></bdo><ul id='fld4Y'></ul>
              <tbody id='fld4Y'></tbody>
                  本文介绍了在 Android 主屏幕中弹出对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  是否可以通过服务在安卓设备的主屏幕上显示弹出对话框(AlertDialog)?

                  Is it possible to show pop up dialog (AlertDialog) in home screen on the android device via services?

                  推荐答案

                  您可以使用 Theme.Dialog 主题创建一个 Activity.在您的 AndroidManifest.xml 文件中,将主题添加到活动中,如下所示:

                  You could create an Activity with the Theme.Dialog theme. In your AndroidManifest.xml file add the theme to the activity, like this:

                  <activity android:name=".DialogActivity" android:theme="@android:style/Theme.Dialog"></activity>
                  

                  从您的服务中只需启动这个Activity.您必须使用 Intent.FLAG_ACTIVITY_NEW_TASK 标志开始活动.请参阅如何从服务启动活动

                  From your service simply start this Activity. You will have to start the activity with the Intent.FLAG_ACTIVITY_NEW_TASK flag. See How to start an Activity from a Service

                  这篇关于在 Android 主屏幕中弹出对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 DialogFragment 中显示现有的 ListFragment 下一篇:更改 AlertDialog 的样式

                  相关文章

                  最新文章

                1. <tfoot id='gAYjc'></tfoot>

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

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

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