Yes what happens during an update is the app is first force stopped (all
processes killed, alarms unregistered, etc), then then the new version is
installed.

It seems promising that clear data would fix the problem; this is most
likely then an issue you can deal with in your app rather than something
systemic.  The first thing I would look for is any code writing data that
could cause problems if it was killed in the middle of executing.  Databases
should handle this, but you need to deal with it yourself for raw files...
 for example SharedPreferences does this in its commit by writing the
contents into a new file, and then switching from the old file to the new
file once the new one is complete.

On Fri, Aug 27, 2010 at 10:53 AM, TreKing <treking...@gmail.com> wrote:

> On Fri, Aug 27, 2010 at 10:01 AM, Carl Whalley <
> carl.whal...@googlemail.com> wrote:
>
>> Might be throwing in a food-for-thought curveball here but I wonder
>> if there's a difference between updating an app that's running and one which
>> isn't?
>>
>
> Might be. It's only a handful of people (well, more than a handful for me)
> but still few in comparison to the total install base, so there's definitely
> something they're doing that's triggering the problem.
>
> I would think the update process would kill the app if it's running, but
> maybe not.
>
> Also, got confirmation from the second person that clearing the data solved
> the problem.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to