<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wagied Davids Blog</title>
	<atom:link href="http://w2davids.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://w2davids.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Sat, 18 May 2013 22:09:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='w2davids.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Wagied Davids Blog</title>
		<link>http://w2davids.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://w2davids.wordpress.com/osd.xml" title="Wagied Davids Blog" />
	<atom:link rel='hub' href='http://w2davids.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ActiveAndroid &#8211; Dummys Guide to creating a jar</title>
		<link>http://w2davids.wordpress.com/2013/05/13/activeandroid-dummys-guide-to-creating-a-jar/</link>
		<comments>http://w2davids.wordpress.com/2013/05/13/activeandroid-dummys-guide-to-creating-a-jar/#comments</comments>
		<pubDate>Mon, 13 May 2013 20:04:27 +0000</pubDate>
		<dc:creator>w2davids</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://w2davids.wordpress.com/?p=805</guid>
		<description><![CDATA[1. You MUST have installed: GIT installed (http://git-scm.com/downloads) OR  sudo apt-get install git Apache Ant (http://ant.apache.org/bindownload.cgi) OR  sudo apt-get install ant 2. Go to https://github.com/pardom/ActiveAndroid, and copy https://github.com/pardom/ActiveAndroid.git 3. Clone to ActiveAndroid git repository: &#160; &#160; 4, Change directory to ActiveAndroid and execute ant command (Ant takes in build.xml) &#62; ant &#160; 5.  Change directory to dist/ &#8230; <a href="http://w2davids.wordpress.com/2013/05/13/activeandroid-dummys-guide-to-creating-a-jar/" class="more-link">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=805&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>1. You MUST have installed:</strong></p>
<ul>
<li><strong>GIT installed (<a href="http://git-scm.com/downloads">http://git-scm.com/downloads</a>) OR  sudo apt-get install git</strong></li>
<li><strong>Apache Ant (<a href="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</a>) <strong>OR  sudo apt-get install ant</strong></strong></li>
</ul>
<p><strong>2. Go to <a href="https://github.com/pardom/ActiveAndroid" rel="nofollow">https://github.com/pardom/ActiveAndroid</a>, and copy <a href="https://github.com/pardom/ActiveAndroid.git" rel="nofollow">https://github.com/pardom/ActiveAndroid.git</a></strong></p>
<p><a href="http://w2davids.files.wordpress.com/2013/05/screenshot-pardom-activeandroid-c2b7-github-google-chrome.png"><img class="alignnone size-large wp-image-807" alt="Screenshot-pardom-ActiveAndroid · GitHub - Google Chrome" src="http://w2davids.files.wordpress.com/2013/05/screenshot-pardom-activeandroid-c2b7-github-google-chrome.png?w=545&#038;h=296" width="545" height="296" /></a></p>
<p><strong>3. Clone to ActiveAndroid git repository:</strong><br />
<a href="http://w2davids.files.wordpress.com/2013/05/git-clone-active-android.png"><img class="alignnone size-large wp-image-806" alt="git-clone-active-android" src="http://w2davids.files.wordpress.com/2013/05/git-clone-active-android.png?w=545&#038;h=79" width="545" height="79" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>4, Change directory to ActiveAndroid and execute ant command (Ant takes in build.xml)</strong></p>
<p>&gt; ant</p>
<p><a href="http://w2davids.files.wordpress.com/2013/05/ant.png"><img class="alignnone size-large wp-image-808" alt="ant" src="http://w2davids.files.wordpress.com/2013/05/ant.png?w=545&#038;h=218" width="545" height="218" /></a></p>
<p>&nbsp;</p>
<p>5.  Change directory to dist/ where ActiveAndroid.jar is created!</p>
<p><a href="http://w2davids.files.wordpress.com/2013/05/active-record-dist.png"><img class="alignnone size-full wp-image-809" alt="active-record-dist" src="http://w2davids.files.wordpress.com/2013/05/active-record-dist.png?w=545"   /></a></p>
<p>&nbsp;</p>
<p><strong>7. Thats it! ..Now you can import the ActiveAndroid.jar library to use with your Android Project!</strong></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/w2davids.wordpress.com/805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/w2davids.wordpress.com/805/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=805&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://w2davids.wordpress.com/2013/05/13/activeandroid-dummys-guide-to-creating-a-jar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e6040ad2abf3ccf34394e22ba3a482ae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">w2davids</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2013/05/screenshot-pardom-activeandroid-c2b7-github-google-chrome.png?w=545" medium="image">
			<media:title type="html">Screenshot-pardom-ActiveAndroid · GitHub - Google Chrome</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2013/05/git-clone-active-android.png?w=545" medium="image">
			<media:title type="html">git-clone-active-android</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2013/05/ant.png?w=545" medium="image">
			<media:title type="html">ant</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2013/05/active-record-dist.png" medium="image">
			<media:title type="html">active-record-dist</media:title>
		</media:content>
	</item>
		<item>
		<title>Advanced Android UI – WheelPicker</title>
		<link>http://w2davids.wordpress.com/2010/09/28/advanced-android-ui-wheelpicker/</link>
		<comments>http://w2davids.wordpress.com/2010/09/28/advanced-android-ui-wheelpicker/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 16:46:49 +0000</pubDate>
		<dc:creator>w2davids</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://w2davids.wordpress.com/?p=65</guid>
		<description><![CDATA[Ever wanted Sleek-n-Sexy UI components like Apple&#8217;s iPhone/iPad? Now you can with Android-Wheel &#8211; the sexy WheelPicker for Android: Android-Wheel: http://code.google.com/p/android-wheel/ It comes with a handy ScrollListener for listen to touch events on the wheel component. Yah &#8230;..C-A-S-I-N-O! Download: TestWheel.zip Some Notes: Sometimes you need to adjust the wheel width..I know I had to do &#8230; <a href="http://w2davids.wordpress.com/2010/09/28/advanced-android-ui-wheelpicker/" class="more-link">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=65&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Ever wanted Sleek-n-Sexy UI components like Apple&#8217;s iPhone/iPad?</p>
<p>Now you can with Android-Wheel &#8211; the sexy WheelPicker for Android:<br />
<strong>Android-Wheel: </strong><a href="http://code.google.com/p/android-wheel/">http://code.google.com/p/android-wheel/</a><br />
It comes with a handy ScrollListener for listen to touch events on the wheel component.  Yah &#8230;..C-A-S-I-N-O!</p>
<p><strong>Download:</strong> <a href="http://www.filefactory.com/file/b3ge7hb/n/TestWheel.zip">TestWheel.zip</a></p>
<p><strong>Some Notes:</strong></p>
<ul>
<li>Sometimes you need to adjust the wheel width..I know I had to do this to prevent text from overflowing ..and the wheels rolling off&#8230;I think <strong>WheelView.java </strong>is where it at!</li>
<li>res/drawables &#8211; contains the styles/gradients etc.</li>
</ul>
<p><strong>The Application:</strong><br />
<a href="http://w2davids.files.wordpress.com/2010/09/bodywheelpicker.png"><img class="alignnone size-medium wp-image-90" title="BodyWheelPicker" src="http://w2davids.files.wordpress.com/2010/09/bodywheelpicker.png?w=284&#038;h=300" alt="" width="284" height="300" /></a></p>
<p>The Code:</p>
<pre class="brush: java; title: ; notranslate">
import kankan.wheel.widget.ArrayWheelAdapter;
import kankan.wheel.widget.OnWheelChangedListener;
import kankan.wheel.widget.OnWheelScrollListener;
import kankan.wheel.widget.WheelView;
import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;

public class Main extends Activity
	{
		// TODO: Externalize string-array
		String wheelMenu1[] = new String[]{&quot;Right Arm&quot;, &quot;Left Arm&quot;, &quot;R-Abdomen&quot;, &quot;L-Abdomen&quot;, &quot;Right Thigh&quot;, &quot;Left Thigh&quot;};
		String wheelMenu2[] = new String[]{&quot;Upper&quot;, &quot;Middle&quot;, &quot;Lower&quot;};
		String wheelMenu3[] = new String[]{&quot;R&quot;, &quot;L&quot;};

		// Wheel scrolled flag
		private boolean wheelScrolled = false;

		private TextView text;
		private EditText text1;
		private EditText text2;
		private EditText text3;

		@Override
		public void onCreate(Bundle savedInstanceState)
			{
				super.onCreate(savedInstanceState);
				setContentView(R.layout.empty_layout);

				initWheel1(R.id.p1);
				initWheel2(R.id.p2);
				initWheel3(R.id.p3);

				text1 = (EditText) this.findViewById(R.id.r1);
				text2 = (EditText) this.findViewById(R.id.r2);
				text3 = (EditText) this.findViewById(R.id.r3);
				text = (TextView) this.findViewById(R.id.result);
			}

		// Wheel scrolled listener
		OnWheelScrollListener scrolledListener = new OnWheelScrollListener()
			{
				public void onScrollStarts(WheelView wheel)
					{
						wheelScrolled = true;
					}

				public void onScrollEnds(WheelView wheel)
					{
						wheelScrolled = false;
						updateStatus();
					}
			};

		// Wheel changed listener
		private final OnWheelChangedListener changedListener = new OnWheelChangedListener()
			{
				public void onChanged(WheelView wheel, int oldValue, int newValue)
					{
						if (!wheelScrolled)
							{
								updateStatus();
							}
					}
			};

		/**
		 * Updates entered PIN status
		 */
		private void updateStatus()
			{
				text1.setText(wheelMenu1[getWheel(R.id.p1).getCurrentItem()]);
				text2.setText(wheelMenu2[getWheel(R.id.p2).getCurrentItem()]);
				text3.setText(wheelMenu3[getWheel(R.id.p3).getCurrentItem()]);

				text.setText(wheelMenu1[getWheel(R.id.p1).getCurrentItem()] + &quot; - &quot; + wheelMenu2[getWheel(R.id.p2).getCurrentItem()] + &quot; - &quot; + wheelMenu3[getWheel(R.id.p3).getCurrentItem()]);
			}

		/**
		 * Initializes wheel
		 *
		 * @param id
		 *          the wheel widget Id
		 */

		private void initWheel1(int id)
			{
				WheelView wheel = (WheelView) findViewById(id);
				wheel.setAdapter(new ArrayWheelAdapter(wheelMenu1));
				wheel.setVisibleItems(2);
				wheel.setCurrentItem(0);
				wheel.addChangingListener(changedListener);
				wheel.addScrollingListener(scrolledListener);
			}

		private void initWheel2(int id)
			{
				WheelView wheel = (WheelView) findViewById(id);
				wheel.setAdapter(new ArrayWheelAdapter(wheelMenu2));
				wheel.setVisibleItems(2);
				wheel.setCurrentItem(0);
				wheel.addChangingListener(changedListener);
				wheel.addScrollingListener(scrolledListener);
			}

		private void initWheel3(int id)
			{
				WheelView wheel = (WheelView) findViewById(id);

				wheel.setAdapter(new ArrayWheelAdapter(wheelMenu3));
				wheel.setVisibleItems(2);
				wheel.setCurrentItem(0);
				wheel.addChangingListener(changedListener);
				wheel.addScrollingListener(scrolledListener);
			}

		/**
		 * Returns wheel by Id
		 *
		 * @param id
		 *          the wheel Id
		 * @return the wheel with passed Id
		 */
		private WheelView getWheel(int id)
			{
				return (WheelView) findViewById(id);
			}

		/**
		 * Tests wheel value
		 *
		 * @param id
		 *          the wheel Id
		 * @param value
		 *          the value to test
		 * @return true if wheel value is equal to passed value
		 */
		private int getWheelValue(int id)
			{
				return getWheel(id).getCurrentItem();
			}
	}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/w2davids.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/w2davids.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=65&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://w2davids.wordpress.com/2010/09/28/advanced-android-ui-wheelpicker/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e6040ad2abf3ccf34394e22ba3a482ae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">w2davids</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2010/09/bodywheelpicker.png?w=284" medium="image">
			<media:title type="html">BodyWheelPicker</media:title>
		</media:content>
	</item>
		<item>
		<title>Anatomy of an Android Project</title>
		<link>http://w2davids.wordpress.com/2010/09/28/anatomy-of-an-android-project/</link>
		<comments>http://w2davids.wordpress.com/2010/09/28/anatomy-of-an-android-project/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 14:05:30 +0000</pubDate>
		<dc:creator>w2davids</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://w2davids.wordpress.com/?p=48</guid>
		<description><![CDATA[Software projects &#8230;&#8230;mmmh ..have anatomy&#8230;yahhhh &#8230;sexy! Logical structure imposed due to the organization of code into packages. Structural organization of software code generally is a good practice makes things easier to find, but also maintainable over the long run as the project grows. Most importantly, knowing the project structure helps you track down program errors easilly! Let&#8217; &#8230; <a href="http://w2davids.wordpress.com/2010/09/28/anatomy-of-an-android-project/" class="more-link">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=48&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Software projects &#8230;&#8230;mmmh ..have anatomy&#8230;yahhhh &#8230;sexy!</p>
<ul>
<li>Logical structure imposed due to the organization of code into packages.</li>
<li>Structural organization of software code generally is a good practice <strong>makes things easier to find</strong>, but also <strong>maintainable</strong> over the long run as the project grows.</li>
<li>Most importantly, knowing the project structure<strong> helps you track down program errors</strong> easilly!</li>
</ul>
<p>Let&#8217; take a look at  the <strong>Project Structure generated by Eclipse ADT plug-in</strong> from our previous post:<br />
<a href="http://w2davids.files.wordpress.com/2010/09/android-project-structure1.png"><img class="alignnone size-medium wp-image-49" title="Android-Project-Structure" src="http://w2davids.files.wordpress.com/2010/09/android-project-structure1.png?w=160&#038;h=300" alt="" width="160" height="300" /></a></p>
<p><strong>Folder generated:</strong></p>
<p><strong>src/ </strong> &#8211;  Source folder contains all your Java source code</p>
<p><strong>gen/</strong> &#8211; Generated folder contains source code generated by Android/Eclipse.</p>
<ul>
<li>Well it only contains R.java &#8211; one of Android&#8217;s most important file to perform name lookup/resolution and referencing.</li>
<li> R.java is automatically generated by the build system and references your resources.</li>
</ul>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>assets/</strong> &#8211; Assets folder contains static files such as html which can be included in your program.</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>res/</strong> &#8211; Resource folder contains your program resource files.</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>res/drawables/ &#8211; </strong>Contains image files eg. PNG, JPG etc but also drawables which are specified in XML format</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>res/layouts/ &#8211; Contains XML files to specify your application View layouts</strong></span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>res/values/ &#8211; </strong>Contains XML files where you can specify static string,text, numeric and other constant values.</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>Referenced Libraries/ &#8211; </strong>A folder containing third-party/downloaded JAR libraries which can be used in your Android App.</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><strong>AndroidManifest.xml</strong> &#8211; A manifest file where you can specify all you Activities, Permissions, and other configurations.</span></span></p>
<p><span style="font-size:medium;"><span style="line-height:24px;"><br />
</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/w2davids.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/w2davids.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=48&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://w2davids.wordpress.com/2010/09/28/anatomy-of-an-android-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e6040ad2abf3ccf34394e22ba3a482ae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">w2davids</media:title>
		</media:content>

		<media:content url="http://w2davids.files.wordpress.com/2010/09/android-project-structure1.png?w=160" medium="image">
			<media:title type="html">Android-Project-Structure</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://w2davids.wordpress.com/2010/09/27/hello-world/</link>
		<comments>http://w2davids.wordpress.com/2010/09/27/hello-world/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 23:01:39 +0000</pubDate>
		<dc:creator>w2davids</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://w2davids.wordpress.com/?p=1</guid>
		<description><![CDATA[I am trying to get approval so I can release the entire source code for most of the apps and some other code, which I never blogged about! Regards, Wagied &#8211; 2013<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=1&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I am trying to get approval so I can release the entire source code for most of the apps and some other code,<br />
which I never blogged about!</p>
<p>Regards,<br />
Wagied &#8211; 2013</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/w2davids.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/w2davids.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=w2davids.wordpress.com&#038;blog=16126421&#038;post=1&#038;subd=w2davids&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://w2davids.wordpress.com/2010/09/27/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e6040ad2abf3ccf34394e22ba3a482ae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">w2davids</media:title>
		</media:content>
	</item>
	</channel>
</rss>
