直到启动重新启动应用程序的widget没有出现在上蜂窝设备的窗口小部件列表 [英] App Widget does not appear in the widget list on Honeycomb devices until Launcher is restarted

查看:98
本文介绍了直到启动重新启动应用程序的widget没有出现在上蜂窝设备的窗口小部件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/6024025/android-appwidget-does-not-show-up-in-the-menu-in-honeycomb-until-reboot">Android AppWidget不显示在蜂窝菜单中,直到重新启动

这似乎是在的Andr​​oid 3.0(蜂巢)的缺省启动程序有一个bug。它似乎没有,当你安装新的应用程序刷新窗口小部件列表。当您重新启动启动(或重新启动整个平板电脑)的部件将在那里,理所应当的。好像小部件列表也被缓存,而在早期版本的Andr​​oid,而在其他发射这种情况并非如此。

It seems like the default launcher in Android 3 (Honeycomb) has a bug. It doesn't seem to refresh the widget list when you install a new application. When you restart the launcher (or restart the whole tablet) the widget will be there, as it should be. Seems like the widget list there is cached, while on earlier versions of Android, and in other launchers this is not the case.

我已经按照SDK中的指令,它似乎是工作找到其他设备,但在Android 3它从来没有从第一次工作正确的:(

I've followed the instructions in the SDK, and it seems to be working find on other devices, but on Android 3 it never worked right from the first time :(

我已经打上我与 Android应用程序:INSTALLLOCATION =internalOnly
这里的小部件登记清单:

I've marked my application with android:installLocation="internalOnly"
Here's the widget registration in the manifest:

    <receiver android:name=".BatteryWidget" android:label="@string/widget_name">
        <intent-filter>
            <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
        </intent-filter>
        <intent-filter>
            <action android:name="org.flexlabs.action.BATTERY_UPDATED" />
            <action android:name="org.flexlabs.action.dualbattery.SETTINGS_UPDATED" />
        </intent-filter>
        <meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_info" />
    </receiver>

请帮忙?

推荐答案

蜂窝+发射器的行为有点不同于pre-蜂窝之一。它不显示小部件窗口小部件列表,直到你启动应用程序的任何活动。

Honeycomb+ launcher behaves a bit differently than pre-Honeycomb one. It does not display widget in list of widgets until you launch any activity of the application.

请参阅<一href="http://groups.google.com/group/android-developers/browse_thread/thread/6ef964dc4395e979/161a79b9a4d0a753?show_docid=161a79b9a4d0a753&pli=1">http://groups.google.com/group/android-developers/browse_thread/thread/6ef964dc4395e979/161a79b9a4d0a753?show_docid=161a79b9a4d0a753&pli=1了解更多详情。

这篇关于直到启动重新启动应用程序的widget没有出现在上蜂窝设备的窗口小部件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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