I uploaded my little app to the android marketplace because it was the only way I could figure out how to install it on my phone for further testing. None of the methods suggested in the Android docs worked for transferring apps from Windows XP to my TMobile myTouch 3g.
My app was up for a grand total of 5 minutes when I discovered a fatal flaw, and I immediately took it down. The one thing I had not been able to test was screen rotation. I did not know how to rotate the screen on the android simulator, and it never occurred to me that it would even cause a problem. Anyway, in those 5 minutes it was on the marketplace, 3 people did download it. And, one of those who did was an android troll who gave it a one star rating. I doubt it was a pharmacist, or physician, or anyone who had the slightest notion about what the application is used for. More likely it was just some asshole troll, waiting to trounce a new app in the marketplace. I couldn’t believe it, the only reason I had uploaded it to the android marketplace was so that I could test it on my phone. I had no intention of releasing this beta software to the public. Yet some troll downloaded it, and smeared his feces on 6 months of my work. Some people exist solely to piss on others parades.
I did some research on the marketplace ratings, and all the developers hate it. There are no restrictions on who may comment on your app. They can give your app a poor rating without giving a reason why. Your app rating doesn’t reset when you upload a new version. All ratings and comments are anonymous, there is no way to reply to poor ratings. It’s a broken system, and google is doing nothing about it, just letting the trolls gather for the feast, and then watching them shit where they eat.
I spent most of the day tracing the source of the error. I had no idea that when you change the orientation of your phone, android completely closes your application, then restarts it, simply to redraw the screen. Even after locking the main screen to portrait orientation, android still insists on closing and restarting my app whenever the phone is rotated. And it was during this screen redraw that it was crashing.
Eventually I discovered that, during a restart, the preferences do not load until *after* the screen is drawn. One of my app’s preferences is the default creatinine clearance method, which was being passed as a blank value to the crcl calc routine, and hence crashing the app. The fix was to changed the declare from “private String CrClMethod = “”;” to “private String CrClMethod = “0″;”. It took me “only” 4 hours to track that one down.
The app looks gorgeous on my phone, it works like a dream, exactly as I had hoped. So, to the android troll who trashed my app: go straight to hell, do not pass go, and do not collect $200.









