tag:blogger.com,1999:blog-79945452408615323202024-03-12T17:57:16.204-07:00Johan Nilssonjohannilssonhttp://www.blogger.com/profile/12376767315552672252noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7994545240861532320.post-80866293638686933842010-01-28T13:04:00.000-08:002010-01-30T03:01:10.186-08:00Force Close and STHLM Traveling<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_MSo6uIeolHM/S2P_K6NwIOI/AAAAAAAAACM/9nw-hOfmC-8/s1600-h/icon.png"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 48px; height: 48px;" src="http://1.bp.blogspot.com/_MSo6uIeolHM/S2P_K6NwIOI/AAAAAAAAACM/9nw-hOfmC-8/s320/icon.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5432466138429661410" /></a><br />I'm really sorry that the latest release of <a href="http://markupartist.com/sthlmtraveling/">STHLM Traveling</a> has caused a force close when starting the application on some devices.<div><br /></div><div>This is actually a <a href="http://groups.google.com/group/android-developers/browse_thread/thread/3c26247d7a0540d1">bug</a> in Android that I and <a href="http://twitter.com/dirkgroten/status/8244394138">many</a> <a href="http://www.mobisleapps.com/blog/2010/01/force-close-of-mobisle-notes/">others</a> got to <a href="http://shareyourboard.com/blog/?p=55">learn</a> about the hard way. This is the short background of why some user is getting a force close. When uploading a application to Android Market you have the choice to enable copy protection for the application. I once activated this and recently removed it. What I did not know was that when the application has a database or writes files to disk something goes wrong and causes a force close on start up when switching the copy protection setting. The only solution to this problem is to first uninstall and then install the application again. Another downside off this is that you loose all saved data. From what I have understand the force close issue only affects devices that runs Android 1.5. </div><div><br /></div><div>While fiddling around with this copy protection setting I also noticed that some phone models and carriers did not list copy protected application in Android Market, this is also discussed in the <a href="http://groups.google.com/group/android-developers/browse_thread/thread/fd299f64638391e1?pli=1">Android developer group</a>.</div><div><br /></div><div>Once again I'm really sorry about all this. I hope it will not happen again.</div><div><br /></div><div>But now to something slightly more fun, the latest release of STHLM Traveling. I added a Swedish translation with great help by Jean Diarbakerli that did all the hard work with the translation. The application will automatically choose Swedish if you have selected this in the Android settings. Unfortunately Android does not have a official Swedish translation but some roms support this for example HTC Sense. For the rest off us we need to go to the settings menu in the STHLM Traveling and set the preferred language there. I also added history and shortcuts for departures.</div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="market://search/?q=pname:com.markupartist.sthlmtraveling"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 120px; height: 120px;" src="http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=market%3A%2F%2Fsearch%2F%3Fq%3Dpname%3Acom.markupartist.sthlmtraveling" border="0" alt="" /></a><br /><div>I would also like to thank all of you that has sent me crash reports, it has helped me a lot when trying to make this application as stable as possible.<br /><br /><div>Get the latest version of STHLM Traveling from <a href="market://search/?q=pname:com.markupartist.sthlmtraveling">Android Market</a>.</div><div><br /></div><div><br /></div></div>johannilssonhttp://www.blogger.com/profile/12376767315552672252noreply@blogger.com0tag:blogger.com,1999:blog-7994545240861532320.post-68630963877279976232009-12-05T07:36:00.001-08:002009-12-05T13:21:58.046-08:00CrimeSweeperLast weekend I participated in the first <a href="http://sites.google.com/site/stockholmgtug/">GTUG Stockholm</a> Android Hackathon in Sweden hosted by <a href="http://www.bwingames.se/">Bwin Games</a>. A part from all the hacking there was also two great presentations by Dirk Groten, CTO from <a href="http://www.layar.com/">Layar</a> and Johan Burell all organized by Peter Svensson, Peter also did a great write up of the event at his <a href="http://unclescript.blogspot.com/2009/12/gtug-android-hackathon-2811-2009.html">blog</a>.<br /><br />Before the hackathon me and my other team mates Albert Ramstedt, Joakim Kolsjö and Joakim Bodin had an idea to build something on top of the data from <a href="http://brottsplatsstockholm.se/">brottsplatsstockholm.se</a>, the site it self scrapes the Swedish police departments website for crimes committed in Stockholm. I contacted <a href="http://eskapism.se/blog/">Pär Thernström</a> to ask if it was possible for him to provide us with a simple API. Pär was really nice and created the <a href="http://brottsplatsstockholm.se/brottsplatsstockholm-api/">API</a> just a couple of days after I first contacted him.<br /><br />Once we had the API, we had a short meeting to discuss what to build during the hackathon. First we thought of building a application that just listed recently committed crimes and show them on a map. But we thought that was kinda boring instead we come up with the idea to create a game.<br /><br />The game we decided to build is sort of a <a href="http://en.wikipedia.org/wiki/Geocaching">geocaching</a> game. We plotted all the crime sites on a map and showed the players position on it. The player can then start the game at any time by pressing a start button. To get points the player need to visit as many crime sites as possible during a fixed time. For each visited site the player earned 10 points and the possibility to see which type of crime that was committed at that place. Players that dare to visit areas with a high crime rate will probably get more points.<br /><br />Here is a short screen cast demonstrating CrimeSweeper. Crime sites are listed as stars on the map.<br /><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/EMvLnbIK-zo&hl=en_US&fs=1&"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/EMvLnbIK-zo&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"></embed></object><br /><br /><span style="font-size:100%;">So will CrimeSweeper be released on Android Market? Not sure, first of we probably need to rewrite it to use a service for the game logic. This to be able to track movements and hits even if the player is doing something else with the phone.</span> It would also be fun to extend it to not only use crime sites, perhaps a map with tourist points would be nice as well? And of course a high score list. Anyway the source is at <a href="http://github.com/joakimk/CrimeSweeper">GitHub</a> if anyone feel to hack around with it.<br /><br />I really love hackathons it is truly amazing to see what people manage to build during just a couple of hours. This was the second hackathon I participated in. Last time was in Amsterdam at <a href="http://hyves.nl/">Hyves</a> HQ. Me, Joakim Bodin and Johan Mjönes then built a Android app called Mystery Hangout. If you are interested you can find the source and a video demonstrating it at <a href="http://github.com/jbripley/mystery_hangout">GitHub</a>.<br /><a name="Rokon_Game_Engine"></a>johannilssonhttp://www.blogger.com/profile/12376767315552672252noreply@blogger.com0