<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create a scrollable Map with Cells &#8211; Part I</title>
	<atom:link href="http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Simi</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-2550</link>
		<dc:creator>Simi</dc:creator>
		<pubDate>Sat, 04 Feb 2012 17:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-2550</guid>
		<description>Hi I&#039;m trying to create a simple path finding app in android. I want to know how to implement A* algorithm in Android.</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;m trying to create a simple path finding app in android. I want to know how to implement A* algorithm in Android.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snowie</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-2193</link>
		<dc:creator>Snowie</dc:creator>
		<pubDate>Fri, 19 Aug 2011 03:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-2193</guid>
		<description>Hi Martin, I would like to implement the whole background and I&#039;ve seen the onDraw method of this tutorial: http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html but I&#039;m having problems, this is my current onDraw() method:

&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;
public void onDraw(Canvas canvas) {
	    canvas.drawBitmap(_bitmapCache.get(R.drawable.abstrakt), 0, 0, null);
	}
&lt;/pre&gt;
but I&#039;m getting this error when I implement this code into your ScrollActivity project:

08-19 03:15:21.893: ERROR/AndroidRuntime(550): FATAL EXCEPTION: Thread-8
08-19 03:15:21.893: ERROR/AndroidRuntime(550): java.lang.NullPointerException
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at android.graphics.Canvas.drawBitmap(Canvas.java:980)
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at com.bix.scrollmap.CellMapSurfaceView.onDraw(CellMapSurfaceView.java:479)
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at com.bix.scrollmap.CellMapSurfaceView$MapThread.run(CellMapSurfaceView.java:120)

Am I miss anything or do I have to change anything else? :) Thanks for the tutorial btw!</description>
		<content:encoded><![CDATA[<p>Hi Martin, I would like to implement the whole background and I&#8217;ve seen the onDraw method of this tutorial: <a href="http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html" rel="nofollow">http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html</a> but I&#8217;m having problems, this is my current onDraw() method:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onDraw<span style="color: #009900;">&#40;</span><span style="color: #003399;">Canvas</span> canvas<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    canvas.<span style="color: #006633;">drawBitmap</span><span style="color: #009900;">&#40;</span>_bitmapCache.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">drawable</span>.<span style="color: #006633;">abstrakt</span><span style="color: #009900;">&#41;</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>but I&#8217;m getting this error when I implement this code into your ScrollActivity project:</p>
<p>08-19 03:15:21.893: ERROR/AndroidRuntime(550): FATAL EXCEPTION: Thread-8<br />
08-19 03:15:21.893: ERROR/AndroidRuntime(550): java.lang.NullPointerException<br />
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at android.graphics.Canvas.throwIfRecycled(Canvas.java:954)<br />
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at android.graphics.Canvas.drawBitmap(Canvas.java:980)<br />
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at com.bix.scrollmap.CellMapSurfaceView.onDraw(CellMapSurfaceView.java:479)<br />
08-19 03:15:21.893: ERROR/AndroidRuntime(550):     at com.bix.scrollmap.CellMapSurfaceView$MapThread.run(CellMapSurfaceView.java:120)</p>
<p>Am I miss anything or do I have to change anything else? <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks for the tutorial btw!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-1108</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 26 May 2010 19:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-1108</guid>
		<description>Thank you. Currently I use a play ArrayList where I just know the position on the map by dividing and modulo operation :)</description>
		<content:encoded><![CDATA[<p>Thank you. Currently I use a play ArrayList where I just know the position on the map by dividing and modulo operation <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasil Nonchev</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-1103</link>
		<dc:creator>Vasil Nonchev</dc:creator>
		<pubDate>Wed, 26 May 2010 11:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-1103</guid>
		<description>Great tutorial, Martin. 

My recommendation, however is if you don&#039;t want to use a two dimensional array for the map, as it may be dynamically changing, to use ArrayList&lt;ArrayList for it, as you&#039;ll need to get a lot of elements by index. You won&#039;t have to bother about indexing and moreover the HashMap isn&#039;t designed for this case - you don&#039;t get anything for the additional space it will require.</description>
		<content:encoded><![CDATA[<p>Great tutorial, Martin. </p>
<p>My recommendation, however is if you don&#8217;t want to use a two dimensional array for the map, as it may be dynamically changing, to use ArrayList&lt;ArrayList for it, as you&#8217;ll need to get a lot of elements by index. You won&#8217;t have to bother about indexing and moreover the HashMap isn&#8217;t designed for this case &#8211; you don&#8217;t get anything for the additional space it will require.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: makboney</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-1018</link>
		<dc:creator>makboney</dc:creator>
		<pubDate>Thu, 08 Apr 2010 04:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-1018</guid>
		<description>hey Martin...

thats a nice one...helped me a lot...

but could u please give some idea on custom map not google map...

thanks</description>
		<content:encoded><![CDATA[<p>hey Martin&#8230;</p>
<p>thats a nice one&#8230;helped me a lot&#8230;</p>
<p>but could u please give some idea on custom map not google map&#8230;</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-920</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-920</guid>
		<description>Amazing tutorial. I was looking for a good example using SurfaceView.</description>
		<content:encoded><![CDATA[<p>Amazing tutorial. I was looking for a good example using SurfaceView.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-871</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sat, 06 Feb 2010 11:12:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-871</guid>
		<description>Whole background: Take a look at the onDraw method of this tutorial: http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html

To make it smoother is one topic on the next two parts.
I&#039;m in the final week in my current semester. Please give me the time :D</description>
		<content:encoded><![CDATA[<p>Whole background: Take a look at the onDraw method of this tutorial: <a href="http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html" rel="nofollow">http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html</a></p>
<p>To make it smoother is one topic on the next two parts.<br />
I&#8217;m in the final week in my current semester. Please give me the time <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-869</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Fri, 05 Feb 2010 23:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-869</guid>
		<description>Hi Martin!

Very nice tutorial, this helped me a lot! Keep the good work up!

Can&#039;t wait to next one but i need some help.. pretty new to this! How do you implement a whole background? Or do you need to it for every cell?
And any tips before the next tutorial, how to do it smoother?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Martin!</p>
<p>Very nice tutorial, this helped me a lot! Keep the good work up!</p>
<p>Can&#8217;t wait to next one but i need some help.. pretty new to this! How do you implement a whole background? Or do you need to it for every cell?<br />
And any tips before the next tutorial, how to do it smoother?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-817</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 26 Jan 2010 07:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-817</guid>
		<description>Hi Martin, 

very nice and useful tutorial. Although rendering the complete scene, this is very useful. Can&#039;t wait for the next tutorial part, showing of how to do with 200x200 cells ;)

Just mail me, if you&#039;re going to do so! ;)</description>
		<content:encoded><![CDATA[<p>Hi Martin, </p>
<p>very nice and useful tutorial. Although rendering the complete scene, this is very useful. Can&#8217;t wait for the next tutorial part, showing of how to do with 200&#215;200 cells <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Just mail me, if you&#8217;re going to do so! <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html/comment-page-1#comment-791</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sun, 17 Jan 2010 19:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=654#comment-791</guid>
		<description>Hey,

your right, my conventions are from the j2ee projects where I learned Java. We had Checkstyle installed to check that every variable has its prefix _ :)
Currently I &quot;learn&quot; to use the m prefix, which is defined by the Android Style Guide.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>your right, my conventions are from the j2ee projects where I learned Java. We had Checkstyle installed to check that every variable has its prefix _ <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Currently I &#8220;learn&#8221; to use the m prefix, which is defined by the Android Style Guide.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

