Thanks.

I wonder if it's possible to listen for a Move to SD event (is there a
broadcast intent?). If it were, then the app could at that moment raise a
notification warning the user that widgets would no longer be available.

On 31 May 2011 17:28, String <[email protected]> wrote:

> On Tuesday, May 31, 2011 10:08:19 AM UTC+1, Mark Carter wrote:
>
> What is the best way to check the app has been moved to SD?
>>
>
>
> http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGE
>
>
> <http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#FLAG_EXTERNAL_STORAGE>Get
> an instance of the ApplicationInfo object with code like this:
>
> PackageManager pkgMgr = context.getPackageManager();
> ApplicationInfo appInfo = pkgMgr.getApplicationInfo("your.package.name",
> 0);
>
> It'd be nice to put code like this in the appwidget itself, so that if the
> user has one on their home screen, you could notify them more proactively.
> But annoyingly, the appwidget doesn't get notified that it's going away;
> no ACTION_APPWIDGET_DISABLED, no ACTION_APPWIDGET_DELETED, nothing. It just
> disappears... but any service you might have scheduled to update said
> appwidget *doesn't* get removed, it's left to run with no widget to
> update.
>
> String
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to