<?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: Android Database Tutorial</title>
	<atom:link href="http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/</link>
	<description>Yet another Android developer&#039;s blog</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:57:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Arpit Trivedi</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-188</link>
		<dc:creator>Arpit Trivedi</dc:creator>
		<pubDate>Sun, 05 Feb 2012 08:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-188</guid>
		<description>thanks for your blog. can you give me simple example of android-database for more than one table....

Thanks in advance...</description>
		<content:encoded><![CDATA[<p>thanks for your blog. can you give me simple example of android-database for more than one table&#8230;.</p>
<p>Thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mayur</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-184</link>
		<dc:creator>mayur</dc:creator>
		<pubDate>Mon, 23 Jan 2012 05:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-184</guid>
		<description>Fantastic work!!!!!!
thanks a lot!!</description>
		<content:encoded><![CDATA[<p>Fantastic work!!!!!!<br />
thanks a lot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Mitchell</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-180</link>
		<dc:creator>Randall Mitchell</dc:creator>
		<pubDate>Sat, 24 Dec 2011 02:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-180</guid>
		<description>@Nina.  Sorry I missed answering your post - just noticed it.  Here is my opinion on the matter for anyone else who reads this.  If you follow the standards of android, a new &quot;screen&quot; is, in a round about way, a new activity.  I would suggest creating a new activity if you want a new screen.  I generally add the database object to a child of &quot;Application&quot; and access it within each activity through the application.  There are other ways to do this (for example, adding a database object to each activity).  My post of a very basic application has example code doing this:

http://www.anotherandroidblog.com/2011/03/07/a-very-basic-application

- Randall</description>
		<content:encoded><![CDATA[<p>@Nina.  Sorry I missed answering your post &#8211; just noticed it.  Here is my opinion on the matter for anyone else who reads this.  If you follow the standards of android, a new &#8220;screen&#8221; is, in a round about way, a new activity.  I would suggest creating a new activity if you want a new screen.  I generally add the database object to a child of &#8220;Application&#8221; and access it within each activity through the application.  There are other ways to do this (for example, adding a database object to each activity).  My post of a very basic application has example code doing this:</p>
<p><a href="http://www.anotherandroidblog.com/2011/03/07/a-very-basic-application" rel="nofollow">http://www.anotherandroidblog.com/2011/03/07/a-very-basic-application</a></p>
<p>- Randall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Mitchell</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-179</link>
		<dc:creator>Randall Mitchell</dc:creator>
		<pubDate>Sat, 24 Dec 2011 02:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-179</guid>
		<description>Hi Rajesh.  Honestly, it&#039;s been a great while since I reviewed this code and don&#039;t remember exactly.  From a brief overview of the code in the activity class, I think you are right about these not being used.  Possibly I added these for clarity for the readers, or just didn&#039;t notice they were not used.</description>
		<content:encoded><![CDATA[<p>Hi Rajesh.  Honestly, it&#8217;s been a great while since I reviewed this code and don&#8217;t remember exactly.  From a brief overview of the code in the activity class, I think you are right about these not being used.  Possibly I added these for clarity for the readers, or just didn&#8217;t notice they were not used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-178</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Fri, 23 Dec 2011 07:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-178</guid>
		<description>Hi, Excellent in-depth tutorial.

One question:
In AndroidManifest.xml, for the TableLayout, you have declared a TableRow with 2 TextViews, but not used it anywhere. What is the purpose of declaring it? Can it be removed?</description>
		<content:encoded><![CDATA[<p>Hi, Excellent in-depth tutorial.</p>
<p>One question:<br />
In AndroidManifest.xml, for the TableLayout, you have declared a TableRow with 2 TextViews, but not used it anywhere. What is the purpose of declaring it? Can it be removed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-169</link>
		<dc:creator>Nina</dc:creator>
		<pubDate>Tue, 15 Nov 2011 01:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-169</guid>
		<description>Hi Randall,

How to display the data_table in a new screen? Is it possible to do this without adding another activity?</description>
		<content:encoded><![CDATA[<p>Hi Randall,</p>
<p>How to display the data_table in a new screen? Is it possible to do this without adding another activity?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Mitchell</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-166</link>
		<dc:creator>Randall Mitchell</dc:creator>
		<pubDate>Thu, 10 Nov 2011 12:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-166</guid>
		<description>Based on the code you sent me and this error message I was able quickly to find at least one error in this section of code in AABDatabaseManager.java:

		@Override
		public void onCreate(SQLiteDatabase db)
		{
			// This string is used to create the database.  It should
			// be changed to suit your needs.
			String newTableQueryString = &quot;create table &quot; +
										TABLE_NAME +
										&quot; (&quot; +
										TABLE_ROW_ID + &quot; integer primary key autoincrement not null,&quot; +
										TABLE_ROW_ONE + &quot; text,&quot; +
										TABLE_ROW_TWO + &quot; text&quot; +
										TABLE_ROW_THREE + &quot; text&quot; +
										&quot;);&quot;;
			// execute the query string to the database.
			db.execSQL(newTableQueryString);
		}

You are missing a comma after the word text  in the line:

 TABLE_ROW_TWO + &quot; text&quot; +
That line should look like:
 TABLE_ROW_TWO + &quot; text,&quot; +

Note that the line after that does not need a comma after text.  I&#039;ve made that mistake before.  It can be hard to notice.

Good luck,
Randall</description>
		<content:encoded><![CDATA[<p>Based on the code you sent me and this error message I was able quickly to find at least one error in this section of code in AABDatabaseManager.java:</p>
<p>		@Override<br />
		public void onCreate(SQLiteDatabase db)<br />
		{<br />
			// This string is used to create the database.  It should<br />
			// be changed to suit your needs.<br />
			String newTableQueryString = &#8220;create table &#8221; +<br />
										TABLE_NAME +<br />
										&#8221; (&#8221; +<br />
										TABLE_ROW_ID + &#8221; integer primary key autoincrement not null,&#8221; +<br />
										TABLE_ROW_ONE + &#8221; text,&#8221; +<br />
										TABLE_ROW_TWO + &#8221; text&#8221; +<br />
										TABLE_ROW_THREE + &#8221; text&#8221; +<br />
										&#8220;);&#8221;;<br />
			// execute the query string to the database.<br />
			db.execSQL(newTableQueryString);<br />
		}</p>
<p>You are missing a comma after the word text  in the line:</p>
<p> TABLE_ROW_TWO + &#8221; text&#8221; +<br />
That line should look like:<br />
 TABLE_ROW_TWO + &#8221; text,&#8221; +</p>
<p>Note that the line after that does not need a comma after text.  I&#8217;ve made that mistake before.  It can be hard to notice.</p>
<p>Good luck,<br />
Randall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-165</link>
		<dc:creator>Nina</dc:creator>
		<pubDate>Thu, 10 Nov 2011 07:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-165</guid>
		<description>Hye Randall,

Thanks for the tutorial. I added another edit text as input named TABLE_ROW_THREE into the system, but I got error saying 

11-10 02:39:51.405: ERROR/DB Error(308): android.database.sqlite.SQLiteException: no such column: table_row_three: , while compiling: SELECT id, table_row_one, table_row_two, table_row_three FROM database_table

Where does the possible line located? The error clearly said at SELECT statement, but there is no SELECT statement in the coding. Or is it located somewhere else?</description>
		<content:encoded><![CDATA[<p>Hye Randall,</p>
<p>Thanks for the tutorial. I added another edit text as input named TABLE_ROW_THREE into the system, but I got error saying </p>
<p>11-10 02:39:51.405: ERROR/DB Error(308): android.database.sqlite.SQLiteException: no such column: table_row_three: , while compiling: SELECT id, table_row_one, table_row_two, table_row_three FROM database_table</p>
<p>Where does the possible line located? The error clearly said at SELECT statement, but there is no SELECT statement in the coding. Or is it located somewhere else?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrick</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-157</link>
		<dc:creator>Fredrick</dc:creator>
		<pubDate>Thu, 29 Sep 2011 13:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-157</guid>
		<description>Thanks for the quick reply.  Can I please get in touch via email: adamblogger@yahoo.co.uk

I am strugling with my project and can need a hand. Moneys will be sorted.

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick reply.  Can I please get in touch via email: <a href="mailto:adamblogger@yahoo.co.uk">adamblogger@yahoo.co.uk</a></p>
<p>I am strugling with my project and can need a hand. Moneys will be sorted.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Mitchell</title>
		<link>http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/comment-page-4/#comment-155</link>
		<dc:creator>Randall Mitchell</dc:creator>
		<pubDate>Thu, 29 Sep 2011 13:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.anotherandroidblog.com/?p=83#comment-155</guid>
		<description>HI and thanks.  &quot;data_table&quot; is actually the table that the data is fed to in the user interface.  When a user enters data and submits, the data is entered into the database and then a new row is added to &quot;data_table&quot; for user feedback.  The table also feeds back updates and deletions.  On &lt;a href=&quot;http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/7/&quot; rel=&quot;nofollow&quot;&gt;page 7&lt;/a&gt; you can see data_table being created in setupViews(), and it is recreated at each db modification (waste of processing but increase in simplicity for the tutorial) in updateTable() on the same page.

Cheers,
Randall</description>
		<content:encoded><![CDATA[<p>HI and thanks.  &#8220;data_table&#8221; is actually the table that the data is fed to in the user interface.  When a user enters data and submits, the data is entered into the database and then a new row is added to &#8220;data_table&#8221; for user feedback.  The table also feeds back updates and deletions.  On <a href="http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/7/" rel="nofollow">page 7</a> you can see data_table being created in setupViews(), and it is recreated at each db modification (waste of processing but increase in simplicity for the tutorial) in updateTable() on the same page.</p>
<p>Cheers,<br />
Randall</p>
]]></content:encoded>
	</item>
</channel>
</rss>

