强制AppWidget从SD卡工作

强制AppWidget从SD卡工作

本文介绍了Android的;强制AppWidget从SD卡工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法强迫AppWidget工作,即使应用程序移动到SD卡和SD卡是不是卸载? 说:

Is there any way to force AppWidget to work even App is moved to the SD Card and SD Card is not unmounted? Docs say:

...你不应该允许的,如果它使用下列任何功能,由于引后果当外部存储卸载的:结果
  ...结果
  应用小工具结果
  您的应用程序窗口小部件就会从家里被删除
  屏幕。当外部存储设备重新安装,应用程序部件将不
  可供用户选择,直到系统复位家
  应用程序(通常直到重新启动系统)。

似乎文档说AppWidget将从主屏幕如果用户卸载SD Card.But当我在模拟器移动应用程序到SD卡中删除(我做无法卸载SD卡)看到主屏幕问题加载插件消息,也部件不可用于用户widgets.Why列表?

It seems that docs say AppWidget will be removed from home screen if user unmounts SD Card.But When I move the App in emulator to the SD Card (and I do not unmount SD Card) see problem loading widget message in Home Screen,also the widget is not available for user in list of widgets.Why?

推荐答案

目前,有没有办法让而应用程序安装在SD卡一个Widget工作。这是即使在SD卡安装在正常的行为。

For now, there is no way to make a Widget to work while the app is installed on the SD-Card. This is the normal behavior even when SD-Card is mounted.

您得到错误问题加载插件,因为当你移动应用小工具被自动禁止(从控件列表中删除,所以你不能添加的话)外部存储,但他们​​一直在主屏幕上,当你移动回了电话和家庭的应用程序重置了准备就绪。

You get the error problem loading widget because Widgets are automatically disabled (and removed from the Widget list, so you can't add them) when you move the app to external storage, but they are kept in Home Screen, to be ready when you move it back to the phone and home application is resetted.

如果你要支持用户的应用移动到外部存储,也许你可以发布另一个应用程序只牵你的小部件,并对其进行配置,以便它只能通过安装在手机上。这解决了问题,但用户必须下载两个应用程序而不是一个。

If you're going to support that the user move your app to external storage, maybe you can publish another app to only hold your widgets, and configure it so that it can only by installed in the phone. This solves the problem but the user has to download two apps instead of one.

这篇关于Android的;强制AppWidget从SD卡工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:09