[android-developers] Re: App breaks for some users after they update from the Market

2010-09-03 Thread mot12
Thanks for posting your findings and glad you found your bug. Less happy for myself as this clearly indicates a bug in my code, too. Oh well... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-09-01 Thread Dianne Hackborn
Thank for the update. I am just very glad to know that it isn't a nasty platform bug. :) On Mon, Aug 30, 2010 at 3:49 PM, TreKing wrote: > PROBLEM SOLVED! > > Conclusion: I'm an idiot (shocked!?) > > So, for those of you that care, here was the problem. I followed Zsolt's > suggestion to go bac

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 4:30 PM, Zsolt Vasvari wrote: > Yes, but if you declared the helper function private, you may have gotten > an unused warning. If it was in a different class, of course, that's no > help as the compiler doesn't check for unused package private functions, > even though it

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread Zsolt Vasvari
> Me too! Probably the defaults, but I have no warnings (except the "required" > minSDK warning) and it wouldn't have been caught anyway. The line that got > removed was a simple static helper function that used the current context to > delete all files in the cache directory. Removing it had no ef

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread TreKing
On Mon, Aug 30, 2010 at 7:03 PM, Zsolt Vasvari wrote: > I am glad you solved it. How do you have your warning levels set? I have > mine set to the highest possible on everything and a removed line might have > been caught via unused/unitiliazed varaibles. > Me too! Probably the defaults, but I

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread William Ferguson
He he, glad you got some closure. On Aug 31, 8:49 am, TreKing wrote: > PROBLEM SOLVED! > > Conclusion: I'm an idiot (shocked!?) > > So, for those of you that care, here was the problem. I followed Zsolt's > suggestion to go back to the previous version and then "updated" the app and > sure enough

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread Zsolt Vasvari
I am glad you solved it. How do you have your warning levels set? I have mine set to the highest possible on everything and a removed line might have been caught via unused/unitiliazed varaibles. On Aug 30, 6:49 pm, TreKing wrote: > PROBLEM SOLVED! > > Conclusion: I'm an idiot (shocked!?) > > S

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread TreKing
PROBLEM SOLVED! Conclusion: I'm an idiot (shocked!?) So, for those of you that care, here was the problem. I followed Zsolt's suggestion to go back to the previous version and then "updated" the app and sure enough it crashed. Quick background: The app gets data from the inter webs and then cach

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread Kostya Vasilyev
Since clearing application data in Android's application management screen resolves the issue (as far as I understand from a previous message), perhaps it would be worthwhile to try and understand what this data is, exactly, and then follow the yellow brick road (so to speak) back to the code that

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread TreKing
On Mon, Aug 30, 2010 at 4:35 PM, Zsolt Vasvari wrote: > I downloaded the app, but I couldn't get it to crash, sorry. But I did a > clean install. > Thanks for trying! I can't believe I'm disappointed it didn't crash =P > What a did notice, though, was how it only loaded the bus routes (from t

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread Zsolt Vasvari
I downloaded the app, but I couldn't get it to crash, sorry. But I did a clean install. What a did notice, though, was how it only loaded the bus routes (from the web?) the first time around. Even after I killed the app and relaunched it, the bus route list was populated without loading. So you

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread TreKing
On Sun, Aug 29, 2010 at 8:24 PM, William Ferguson wrote: > What's the taskAffinity? > Whatever the default is - I've never touched this. I suspect that clearing the data is changing the behaviour because this > speed up / slows down one of the threads, thereby (generally) avoiding the > race co

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread Zsolt Vasvari
> I don't know. Every email I've gotten and all comments in the crash reports > indicate it's a consistent crash occurring 100% of the time (and in the > exact same location based on the ever-growing report count for the same > stack trace). > > Clearing the data (or uninstalling / re-installing wh

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 6:24 PM, William Ferguson wrote: > Not real sure about this, just putting it out there .. > But is is possible that Activity2 is started in a separate Task to > Activity1? > I can find any doco confirming or denying, but perhaps separate Tasks > run in separate JVMs, hence

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
Actually I should have asked whether Activity2 is being created in a different Process as that will definitely be in a separate JVM. On Aug 30, 11:24 am, William Ferguson wrote: > Not real sure about this, just putting it out there .. > But is is possible that Activity2 is started in a separate T

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
Not real sure about this, just putting it out there .. But is is possible that Activity2 is started in a separate Task to Activity1? I can find any doco confirming or denying, but perhaps separate Tasks run in separate JVMs, hence the potential for non-initialization. What's the taskAffinity? I su

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread TreKing
On Sat, Aug 28, 2010 at 3:22 AM, William Ferguson wrote: > From the symptoms, the code you posted and the assumption that this section > of code is multi-threaded, it looks like a race condition. > That's for the suggestion, but where the static instance is used is indeed in the main thread. The

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-28 Thread Zsolt Vasvari
I would bet any money that this is very clearly going to be a race condition somewhere. Your code using a static Map and the user symptoms are a dead giveaway. I think the install/reinstall and clearing the user data are red herrings. The app might work again for the user if they just ran it aga

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-28 Thread William Ferguson
Thanks for posting the psuedo code. >From the symptoms, the code you posted and the assumption that this section of code is multi-threaded, it looks like a race condition. public StaticClass { private static Manager manager = new Manager(); public static Manager getManager() { return manager; }

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
On Fri, Aug 27, 2010 at 3:53 PM, Tom Gibara wrote: > Have the keys changed between releases of the application? Is the selected > key persisted in any way? Nope, they're hard-coded and were introduced in the last update. So where I have "Key" is a string literal I use to ID the derived instance

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread Tom Gibara
I wasn't able to fully follow your description, but this bit caught me eye: "Userselection" is the value chosen by the user from a list pre-populated by > the Keys in the Manager class to begin with. So if the user was able to make > the selection, the key was there at the start of the Activity, a

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
Thanks for the continued help. On Fri, Aug 27, 2010 at 2:22 PM, Dianne Hackborn wrote: > 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. That makes sense, but that's also why I'm confused. The main issue I've ha

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread Dianne Hackborn
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 someth

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
On Fri, Aug 27, 2010 at 10:01 AM, Carl Whalley 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 stil

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread Carl Whalley
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? On Aug 26, 8:23 pm, TreKing wrote: > On Thu, Aug 26, 2010 at 1:56 PM, Doug wrote: > > I don't have anything helpful to add, TreKing, but I did w

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread TreKing
On Thu, Aug 26, 2010 at 1:18 PM, TreKing wrote: > On Thu, Aug 26, 2010 at 12:42 PM, Dianne Hackborn wrote: > >> - See if having them clear data first before trying to uninstall solves >> the problem. >> > > I'll have someone try this next time I get an email and report back. > OK, so had two mor

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread Dianne Hackborn
Hm the class files aren't really unpacked on disk. They exist as a single .dex file in the .apk. During install, a .odex file is created on disk -- this is the .dex file linked to the current platform code. When the VM loads your .apk, if the signature on the .dex inside doesn't match the .odex

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread William Ferguson
Since it continues to occur after reboot it means there is a problem with the the way the class files have been unpacked to disk. When an apk is installed and that app already exists, a temp folder for the new instal is created, z and presumably the old instal is removed later. It sounds like in

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread Dianne Hackborn
On Thu, Aug 26, 2010 at 11:18 AM, TreKing wrote: > - Look in the logcat output to see if there are any suspicious messages >> from installing (logcat output should be included in bug reports in the dev >> console). >> > > I've never gotten logcat output in the dev console. I don't know if the >

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 1:56 PM, Doug wrote: > I don't have anything helpful to add, TreKing, but I did want you to know > that a small minority of my users see random breakage on update and a > reinstall fixes them right up. > Just knowing others are having the same issue is helpful. With enoug

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread Doug
I don't have anything helpful to add, TreKing, but I did want you to know that a small minority of my users see random breakage on update and a reinstall fixes them right up. Needless to say, this is unnecessarily frustrating and time-consuming. Perhaps unrelated, I've also seen quite a few compl

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 12:42 PM, Dianne Hackborn wrote: > - See if having them clear data first before trying to uninstall solves the > problem. > I'll have someone try this next time I get an email and report back. > - For users with apps on SD card support, they could try moving to the SD >

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread Dianne Hackborn
Some things to try: - See if having them clear data first before trying to uninstall solves the problem. - For users with apps on SD card support, they could try moving to the SD card and back. - Look in the logcat output to see if there are any suspicious messages from installing (logcat output s

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 8:17 AM, mot12 wrote: > If you think this is due to some specific code changes you just made, you > could of course have messed up. But I am sure you checked that. > Oh no, I don't think it's my code that's wrong, otherwise EVERYONE would be complaining and reinstalling w

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread mot12
If you think this is due to some specific code changes you just made, you could of course have messed up. But I am sure you checked that. I wonder what uninstalling does that a simple update doesn't accomplish. Of course, there's the removal of the database, preferences, and all that, but that alo

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 3:31 AM, mot12 wrote: > The problem with null pointers I can also see with my users. > I now have 19 more reports of the same problem in the Dev Console for the free version and 16 for the paid version. Same stack trace, same NullPointerException. > I don't understand t

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread mot12
> Wonder what I can do to make it up ... Tell them there's cake. I have had the same problem with every update myself. In average I get one or two horrible ratings and about 10 emails with problems which are always solved by reinstalling. I do not use copyprotection. The problem with null pointer

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 3:56 PM, Nyll wrote: > As far as I know, this is related to copy protection and a bug in devices > running Android 1.5. > Hey, thanks for the info. Unfortunately, I don't think it's my problem. I've never used copy protection and have gotten reports from multiple devices

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Nyll
As far as I know, this is related to copy protection and a bug in devices running Android 1.5. If you published your app with copy protection enabled, and subsequently disable it in some future update, you will likely experience this problem. Users who have Android 1.5 devices and had your app in

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 1:37 PM, Pent wrote: > Yes, e.g. if function (a) relies on statics (s), so you only > initialize (s) if (a) > is being used (set by prefs). Later you add function (b) which also > uses (s). > When the pref controlling (a) is disabled, everything works fine until > the next

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Pent
> If you're updating, I'd expect the current version of the app to be closed / > shut down and your static data to be wiped, for sure, and re-initialized on > re-opening. Yes, e.g. if function (a) relies on statics (s), so you only initialize (s) if (a) is being used (set by prefs). Later you add

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 10:06 AM, Yahel wrote: > Maybe not if it is not install through the market but directly launched > using a file manager after the where-ever-it-came-from download. > Could be wrong, but don't think the installer matters. For example, if you make an AVD with no maps and tr

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Yahel
I've just noticed after reading your post : Go check out the app called "guitar solo". The developper clearly would have put his warning in bold/red/blinking if he it was doable :) Try to ask him what is experience is. Good luck. Yahel -- You received this message because you are subscribed t

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Yahel
> I thought so, but isn't the installation of an apps supposed to fail if the > required library is not present? Maybe not if it is not install through the market but directly launched using a file manager after the where-ever-it-came-from download. Yahel -- You received this message because yo

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 9:42 AM, Justin Giles wrote: > I'm not sure if yours is device specific, but I would say almost 99% of the > crash reports after updating are from Motorola Droid users (via email and > console error reporting). Most of the console reports are indeed Droids, though that's

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Justin Giles
I've experienced users having crashing problem after an update. I'm not sure if yours is device specific, but I would say almost 99% of the crash reports after updating are from Motorola Droid users (via email and console error reporting). This could mean that a large majority of my user base is

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 8:55 AM, Yahel wrote: > I'm not sure but if you have really few of these, they might just come from > illegal/torrent-style installs ? Someone tried to install the app on there > non-gps device or something ? > I thought so, but isn't the installation of an apps supposed

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Maps.Huge.Info (Maps API Guru)
I've seen random events like this too. The fix is always the same as well, uninstall and reinstall. I suspect what's happening is the download is getting corrupted in some fashion. It would be logical to assume there is some sort of checking going on to make sure the app was downloaded correctly wh

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread Yahel
> java.lang.NoClassDefFoundError: com.google.android.maps.GeoPoint > > That's right - my app, which requires the Google Maps addon and should not > be allowed to install on devices without it, apparently crashed for someone > because it could not find a maps library class. What the .. ? I'm not su

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-25 Thread TreKing
On Wed, Aug 25, 2010 at 1:48 AM, Pent wrote: > Update clears your statics, so you might expect extra bugs to come up > around that time I guess e.g. if they're not reinitialized properly. > Could you elaborate on this? I do use statics for storing user data and looking at some of the reported bu

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-24 Thread Pent
Update clears your statics, so you might expect extra bugs to come up around that time I guess e.g. if they're not reinitialized properly. The classdefnotfound one is obviously not from statics however. I've had that one as well, for one of my internal classes, but I can't pin it to and update bec