{"id":2334,"date":"2010-03-21T20:16:10","date_gmt":"2010-03-21T20:16:10","guid":{"rendered":"http:\/\/www.parnes.com\/wordpress\/index.php\/2010\/03\/21\/mybus_lulea_and_dalarna_new_re\/"},"modified":"2010-03-21T20:16:10","modified_gmt":"2010-03-21T20:16:10","slug":"mybus_lulea_and_dalarna_new_re","status":"publish","type":"post","link":"https:\/\/www.parnes.com\/blog\/index.php\/2010\/03\/21\/mybus_lulea_and_dalarna_new_re\/","title":{"rendered":"MyBus Lule\u00e5 and Dalarna &#8211; new releases"},"content":{"rendered":"<p>Did some refactoring to make the code more generic as <a href=\"https:\/\/www.parnes.com\/blog\/2010\/02\/mybus-lulea-ny-android-applika.html\">MyBus Lule\u00e5<\/a> and <a href=\"https:\/\/www.parnes.com\/blog\/2010\/03\/mybus-dalarna.html\">MyBus Dalarna<\/a> has a lot in common (was mostly copy paste before). Not fully done but have come a good way to making it fully generic. I have learned a lot about Android programming doing this!<\/p>\n<p>In Dalarna they have a lot of bus stops which made the application slow to start and thus I added a bus stop cache in two levels.<\/p>\n<ol>\n<li>Save the list with all downloaded bus stops to disk and load it on start. Update the list if the bus stop information has changed online.<\/li>\n<li>Pre-populate the cache with a static version of the bus stop list for faster cold-start of the whole application.&nbsp;&nbsp;<\/li>\n<\/ol>\n<p>Also added the faster scrolling code in the bus stops selection UI to MyBus Lule\u00e5. It was already in the previous version of MyBus Dalarna.<\/p>\n<p>Have fun and please leave a comment and grade it in Market if you use the application. Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did some refactoring to make the code more generic as MyBus Lule\u00e5 and MyBus Dalarna has a lot in common (was mostly copy paste before). Not fully done but have come a good way to making it fully generic. I have learned a lot about Android programming doing this! In Dalarna they have a lot &hellip; <a href=\"https:\/\/www.parnes.com\/blog\/index.php\/2010\/03\/21\/mybus_lulea_and_dalarna_new_re\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">MyBus Lule\u00e5 and Dalarna &#8211; new releases<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[264],"tags":[],"class_list":["post-2334","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2334"}],"version-history":[{"count":0,"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.parnes.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}