<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Mon May 20, 2013 4:37 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Mon May 20, 2013 4:37 pm</pubDate>
  <lastBuildDate>Mon May 20, 2013 4:37 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Coding Academy - Android Get started - package R</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=100632#100632</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=3554'&gt;AndyBaxman&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 21, 2011 8:54 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      As I said, I'm afraid I don't use ANT, directly for Android development. I use &lt;a href=&quot;http://www.eclipse.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;Eclipse&lt;/a&gt; with the &lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;ADT plugin&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It makes development, particularly resource editing, less of a grind.&lt;br /&gt;
&lt;br /&gt;
If you do want to use Eclipse, you will need the &amp;quot;Eclipse for Java development&amp;quot; version. The Google info suggests the &amp;quot;classic&amp;quot; version will work, but it doesn't (missing dependencies).</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=100632#100632</comments>
                                        <author>AndyBaxman</author>
                                        <pubDate>Thu Jul 21, 2011 8:54 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=100632#100632</guid>
                                      </item>
                                      <item>
                                        <title>Re: Coding Academy - Android Get started - package R</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=100619#100619</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67609'&gt;Wooster&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 20, 2011 7:48 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Many thanks for taking the time to reply.&lt;br /&gt;
&lt;br /&gt;
I have now solved the problem although I still don't know what caused it.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
What I did was to remove the project, then re-create it, then copy the CountdownActiviy.java and main.xml to the appropriate folders and then I ran &amp;quot;ant debug&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When I first created the project I ran &amp;quot;ant debug&amp;quot; before changing the code. After I had modified the code I kept getting the failure. &lt;br /&gt;
&lt;br /&gt;
Do you have to run &amp;quot;ant&amp;quot; in a different way if you have already built the binary once?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=100619#100619</comments>
                                        <author>Wooster</author>
                                        <pubDate>Wed Jul 20, 2011 7:48 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=100619#100619</guid>
                                      </item>
                                      <item>
                                        <title>Re: Coding Academy - Android Get started - package R</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=100603#100603</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=3554'&gt;AndyBaxman&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 20, 2011 10:53 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I tend to use Eclipse for my Android dev work, so I can't tell you specifically how to fix your problem, but I can tell you what the problem is.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;R&amp;quot; package is the compiled resource file generated from the resource XML files. In Eclipse the build scripts build it automatically when you run (and, therefore, build) the app.&lt;br /&gt;
&lt;br /&gt;
You should have a &amp;quot;res&amp;quot; folder with sub folders like &amp;quot;drawable&amp;quot; and &amp;quot;values&amp;quot;. These contain the XML resource definitions. For example you should see &amp;quot;strings.xml&amp;quot; in the values folder.&lt;br /&gt;
&lt;br /&gt;
if strings.xml contains a definition for a string resource &amp;quot;foobar&amp;quot;, then you can access in in your code using R.string.foobar once the resource has been compiled.&lt;br /&gt;
&lt;br /&gt;
I imagine that you are not building the resource file. The tool you need to do this manually is called aapt (Android Asset Packaging Tool) and is in the SDK.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=100603#100603</comments>
                                        <author>AndyBaxman</author>
                                        <pubDate>Wed Jul 20, 2011 10:53 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=100603#100603</guid>
                                      </item>
                                      <item>
                                        <title>Coding Academy - Android Get started - package R</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=100602#100602</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67609'&gt;Wooster&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jul 19, 2011 9:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi,&lt;br /&gt;
&lt;br /&gt;
I am having a problem compiling the &amp;quot;countdown&amp;quot; project. I created the project using &amp;quot;android&amp;quot;, I copied the CountdownActivity.java and main.xml from the DVD and put them in the appropriate directories. When I run &amp;quot;ant debug&amp;quot; the project fails to compile stating &amp;quot;package R does not exist&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
What do I have to do to overcome this problem?&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=100602#100602</comments>
                                        <author>Wooster</author>
                                        <pubDate>Tue Jul 19, 2011 9:04 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=100602#100602</guid>
                                      </item></channel></rss>