<?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: Playing with graphics in Android &#8211; Part I</title>
	<atom:link href="http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.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: don</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2548</link>
		<dc:creator>don</dc:creator>
		<pubDate>Fri, 03 Feb 2012 20:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2548</guid>
		<description>hey guys 
im thinking of making a game on android but my question is 
WHERE DO I GET THIS SOFTWARE THAT IS USED FOR WRITING THINGS</description>
		<content:encoded><![CDATA[<p>hey guys<br />
im thinking of making a game on android but my question is<br />
WHERE DO I GET THIS SOFTWARE THAT IS USED FOR WRITING THINGS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2525</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Thu, 26 Jan 2012 21:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2525</guid>
		<description>For those who had problems overrading the onDraw() method, try this code instead of the onDraw():

&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;
@Override
        public void draw(android.graphics.Canvas canvas) {
          super.draw(canvas);
          Bitmap _scratch = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
          canvas.drawColor(Color.DKGRAY);
          canvas.drawBitmap(_scratch, 10, 10, null);
        }
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>For those who had problems overrading the onDraw() method, try this code instead of the onDraw():</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">@Override
        <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> draw<span style="color: #009900;">&#40;</span>android.<span style="color: #006633;">graphics</span>.<span style="color: #003399;">Canvas</span> canvas<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">draw</span><span style="color: #009900;">&#40;</span>canvas<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          Bitmap _scratch <span style="color: #339933;">=</span> BitmapFactory.<span style="color: #006633;">decodeResource</span><span style="color: #009900;">&#40;</span>getResources<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, R.<span style="color: #006633;">drawable</span>.<span style="color: #006633;">icon</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          canvas.<span style="color: #006633;">drawColor</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Color</span>.<span style="color: #006633;">DKGRAY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          canvas.<span style="color: #006633;">drawBitmap</span><span style="color: #009900;">&#40;</span>_scratch, <span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</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>

]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2458</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 09 Jan 2012 14:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2458</guid>
		<description>Try to rename &quot;R.drawable.icon&quot; to &quot;R.drawable.ic_launcher&quot;. Just check how the png file is named in your drawable folder. You can use eclipse code completion, too: remove &quot;icon&quot; and move your cursor to the dot behind &quot;drawable&quot;. Than press ctrl + spacebar and you should see a list of possible variables that you can use. One of them should be &quot;ic_launcher&quot;.</description>
		<content:encoded><![CDATA[<p>Try to rename &#8220;R.drawable.icon&#8221; to &#8220;R.drawable.ic_launcher&#8221;. Just check how the png file is named in your drawable folder. You can use eclipse code completion, too: remove &#8220;icon&#8221; and move your cursor to the dot behind &#8220;drawable&#8221;. Than press ctrl + spacebar and you should see a list of possible variables that you can use. One of them should be &#8220;ic_launcher&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lamont</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2457</link>
		<dc:creator>Lamont</dc:creator>
		<pubDate>Mon, 09 Jan 2012 14:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2457</guid>
		<description>Im a absolute beginner to both android and Java.
I rewrote the code exactly and even copied and paste it and get the message:

Error: icon can not be resolved or is not a field.

&lt;pre lang=&quot;java&quot; line=&quot;1&quot;&gt;Bitmap _scratch = BitmapFactory.decodeResource(getResources(), R.drawable.icon);&lt;/pre&gt;

Thanks for any assistance.</description>
		<content:encoded><![CDATA[<p>Im a absolute beginner to both android and Java.<br />
I rewrote the code exactly and even copied and paste it and get the message:</p>
<p>Error: icon can not be resolved or is not a field.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">Bitmap _scratch <span style="color: #339933;">=</span> BitmapFactory.<span style="color: #006633;">decodeResource</span><span style="color: #009900;">&#40;</span>getResources<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, R.<span style="color: #006633;">drawable</span>.<span style="color: #006633;">icon</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Thanks for any assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2408</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 26 Dec 2011 22:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2408</guid>
		<description>Hi,
these errors appear when there is a problem with the emulator. This has nothing to do with the program. Often this kind of error means that your emulator connection somehow got interrupted or the android running inside the emulator doesnt response correctly. My advice: close the emulator and start again.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
these errors appear when there is a problem with the emulator. This has nothing to do with the program. Often this kind of error means that your emulator connection somehow got interrupted or the android running inside the emulator doesnt response correctly. My advice: close the emulator and start again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gulsen</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2407</link>
		<dc:creator>gulsen</dc:creator>
		<pubDate>Mon, 26 Dec 2011 22:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2407</guid>
		<description>Dear Martin,
I try this codes but it gives errors like that;

Failed to install fvfv.apk on device &#039;emulator-5554!
[2011-12-27 00:10:06 - fvfv] (null)
[2011-12-27 00:10:13 - fvfv] Failed to install fvfv.apk on device &#039;emulator-5554&#039;: EOF
[2011-12-27 00:10:13 - fvfv] com.android.ddmlib.InstallException: EOF
[2011-12-27 00:10:14 - fvfv] Launch canceled!
what should I do?</description>
		<content:encoded><![CDATA[<p>Dear Martin,<br />
I try this codes but it gives errors like that;</p>
<p>Failed to install fvfv.apk on device &#8216;emulator-5554!<br />
[2011-12-27 00:10:06 - fvfv] (null)<br />
[2011-12-27 00:10:13 - fvfv] Failed to install fvfv.apk on device &#8216;emulator-5554&#8242;: EOF<br />
[2011-12-27 00:10:13 - fvfv] com.android.ddmlib.InstallException: EOF<br />
[2011-12-27 00:10:14 - fvfv] Launch canceled!<br />
what should I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean wolfe</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2338</link>
		<dc:creator>sean wolfe</dc:creator>
		<pubDate>Fri, 28 Oct 2011 18:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2338</guid>
		<description>ah! nevermind, I think it was a just a name change between different Android versions. icon --&gt; ic_launcher . I understand the R.java file better and, program works now!</description>
		<content:encoded><![CDATA[<p>ah! nevermind, I think it was a just a name change between different Android versions. icon &#8211;&gt; ic_launcher . I understand the R.java file better and, program works now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2330</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 25 Oct 2011 13:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2330</guid>
		<description>I have a tutorial written for this kind of a map: http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html</description>
		<content:encoded><![CDATA[<p>I have a tutorial written for this kind of a map: <a href="http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html" rel="nofollow">http://www.droidnova.com/create-a-scrollable-map-with-cells-part-i,654.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2328</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Mon, 24 Oct 2011 10:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2328</guid>
		<description>Hi,

I basically want to draw a map on the screen, this will all be done using draw on canvas (this I can do). The map will have a similar structure to a maze.

However the problem I am having is my overall map is 1000 x 1000, however I only ever want the user to see 10x10. Then every time the user moves (arrows or touch &amp; drag) the app automatically draws the next bitmap within the 1000 x 1000 sequence until they reach the end.

I would also like to add a birdseye view where the view is zoomed in filling up 70% of the Android Screen.

Can anyone point me in the right direction to solve this?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I basically want to draw a map on the screen, this will all be done using draw on canvas (this I can do). The map will have a similar structure to a maze.</p>
<p>However the problem I am having is my overall map is 1000 x 1000, however I only ever want the user to see 10&#215;10. Then every time the user moves (arrows or touch &amp; drag) the app automatically draws the next bitmap within the 1000 x 1000 sequence until they reach the end.</p>
<p>I would also like to add a birdseye view where the view is zoomed in filling up 70% of the Android Screen.</p>
<p>Can anyone point me in the right direction to solve this?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Lalancette</title>
		<link>http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html/comment-page-2#comment-2218</link>
		<dc:creator>Richard Lalancette</dc:creator>
		<pubDate>Fri, 02 Sep 2011 16:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=147#comment-2218</guid>
		<description>This might be a great addition to your graphic article.

I am providing free 9 patch PNGs for any projects, including commercial projects here: http://android9patch.blogspot.com/

Enjoy all!</description>
		<content:encoded><![CDATA[<p>This might be a great addition to your graphic article.</p>
<p>I am providing free 9 patch PNGs for any projects, including commercial projects here: <a href="http://android9patch.blogspot.com/" rel="nofollow">http://android9patch.blogspot.com/</a></p>
<p>Enjoy all!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

