<?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>Sharing n Learning</title>
	<atom:link href="http://wawan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wawan.wordpress.com</link>
	<description>Just another sharing and learning</description>
	<lastBuildDate>Tue, 26 Jul 2011 09:19:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wawan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sharing n Learning</title>
		<link>http://wawan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wawan.wordpress.com/osd.xml" title="Sharing n Learning" />
	<atom:link rel='hub' href='http://wawan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Install Android Development Tools with Eclipse on Ubuntu 11.04</title>
		<link>http://wawan.wordpress.com/2011/07/26/install-android-development-tools-with-eclipse-on-ubuntu-11-04/</link>
		<comments>http://wawan.wordpress.com/2011/07/26/install-android-development-tools-with-eclipse-on-ubuntu-11-04/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 04:20:27 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=796</guid>
		<description><![CDATA[This is how to Install ADT with Eclipse on Ubuntu 11.04. In this case i use Ubuntu 11.04, Eclipse Galileo, Android SDK r12 for linux. 1. Install Eclipse Go to Ubuntu Software Center, then search eclipse n install it. 2. Download Android SDK Download Android SDK from http://developer.android.com/sdk/index.html choose linux platform. Extract downloaded file to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=796&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 190px"><img title="Android Development Tools" src="http://wawan.files.wordpress.com/2011/07/android-development.png?w=180&#038;h=50" alt="Android Development Tools" width="180" height="50" /><p class="wp-caption-text">Android Development Tools</p></div>
<p>This is how to Install ADT with Eclipse on Ubuntu 11.04. In this case i use Ubuntu 11.04, Eclipse Galileo, Android SDK r12 for linux.</p>
<p><strong>1. Install Eclipse</strong></p>
<ul>
<li>Go to Ubuntu Software Center, then search eclipse n install it.</li>
</ul>
<p><strong>2. Download Android SDK</strong></p>
<ul>
<li>Download Android SDK from <a title="http://developer.android.com/sdk/index.html" href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a> choose linux platform.</li>
<li>Extract downloaded file to your home directory, in my case : /home/mombocil/android_sdk</li>
</ul>
<p><span id="more-796"></span><strong>3. Install ADT Plugin for Eclipse</strong></p>
<ul>
<li>Open Eclipse, then go to Help &gt; Install New Software, then click Add, insert https://dl-ssl.google.com/android/eclipse/, in my case i use http://dl-ssl.google.com/android/eclipse/ becouse it failed when using https.</li>
<li>Then OK, after that eclipse will download from tahta site until show Developers Tools on the Available software dialog.</li>
<li>Select it then Next, after that it will show list of tools then Next again, after that accept the agreement then Finish.</li>
<li>Note: If you get a security warning saying that the authenticity or validity of the software can&#8217;t be established, click OK.</li>
<li>Restart your Eclipse</li>
</ul>
<p>[ad]<br />
<strong>4. Configuring ADT</strong></p>
<ul>
<li>Open Elipse, go to Window &gt; Preference, select Android in left column.</li>
<li>For the SDK Location in the main panel, click Browse&#8230; and locate your downloaded SDK directory then Apply, then OK.</li>
</ul>
<p><strong>5. Adding Platform and Other Component</strong></p>
<ul>
<li>From within Eclipse, select Window &gt; Android SDK and AVD Manager.</li>
<li>To download components, use the graphical UI of the Android SDK and AVD Manager to browse the SDK repository and select new or updated components (see figure 1).</li>
<li>The Android SDK and AVD Manager installs the selected components in your SDK environment.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/796/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/796/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=796&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/07/26/install-android-development-tools-with-eclipse-on-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/07/android-development.png" medium="image">
			<media:title type="html">Android Development Tools</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Install Gnome 3 on Ubuntu 11.04</title>
		<link>http://wawan.wordpress.com/2011/07/25/how-to-install-gnome-3-on-ubuntu-11-04/</link>
		<comments>http://wawan.wordpress.com/2011/07/25/how-to-install-gnome-3-on-ubuntu-11-04/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 12:27:47 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=785</guid>
		<description><![CDATA[For GNOME 3, the GNOME Project has started from scratch and created a completely new, modern desktop designed for today’s users and technologies. Gnome 3 Features Simply beautiful GNOME’s new desktop takes elegance to a new level. We’ve swept away the clutter and made a simple and easy-to-use desktop, and we’ve made this the most [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=788&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 260px"><img class="gambar " title="gnome3" src="http://wawan.files.wordpress.com/2011/07/gnome3.png?w=250&#038;h=100" alt="gnome3" width="250" height="100" /><p class="wp-caption-text">GNOME 3</p></div>
<p>For <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3, the <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> Project has started from scratch and created a completely new, modern desktop designed for today’s users and technologies.</p>
<p><strong>Gnome 3 Features</strong></p>
<p><strong>Simply beautiful</strong><br />
<a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a>’s new desktop takes elegance to a new level. We’ve swept away the clutter and made a simple and easy-to-use desktop, and we’ve made this the most beautiful <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> desktop ever, with a new visual theme, a refined new font and carefully crafted animations.</p>
<p><strong>An overview at a glance</strong><br />
The activities view provides an easy way to access all your windows and applications. It is also a great way to keep track of all your activities. We have provided several fast and convenient ways to access the activities view, including the activities keyboard key (often known as the Windows key) and the activities hot corner.<br />
<span id="more-788"></span><strong>Messaging built-in</strong><br />
Communication is an important part of the modern desktop, but it’s a hassle when you have to switch windows to reply to a message. That’s why <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 will let you continue your conversations without changing focus. The ability to enter a reply straight into messaging notifications makes instant messaging quick and effortless.</p>
<p><strong>Distraction-free computing</strong><br />
<a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 is designed to reduce distraction and interruption and to put you in control. Our new notifications system subtly presents messages and will save them until you are ready for them, and the <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 panel has been styled so that it is part of the background, not the foreground. These changes allow you to focus on your creative tasks.</p>
<p><strong>Everything at your fingertips</strong><br />
With the new <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> desktop, everything can be quickly accessed from the keyboard. Press the activities key and search: it’s as simple as that. You’ll love this feature if you’re a user who likes things to happen fast.</p>
<p><strong>Redesigned system settings</strong><br />
Our system settings have been completely redesigned for <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3, making them easier to use than ever before. <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 also provides a new way to browse your settings, and our settings categories have been reorganised, making it quick and straightforward to find the setting that you want.</p>
<p>And much, much more<br />
[ad#Google Adsense]<br />
<a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 is crammed full of new features. Here are some of the other things that you can look forward to from GNOME 3:<br />
Side-by-side window tiling to make using several windows simple and easy<br />
A redesigned file manager<br />
Redesigned workspaces so you can easily organise your windows<br />
Major changes under the hood to give you a faster, smoother experience<br />
A satisfying experience, whatever kind of computer you use: <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a> 3 will feel right at home on netbooks as well as larger machines</p>
<p><strong>Install <a title="gnome" href="http://wawan-kurniawan.web.id/how-to-install-gnome-3-on-ubuntu-11-04/" target="_blank">GNOME</a>3 on ubuntu 11.04</strong><br />
Open the terminal and run the following commands</p>
<pre class="brush:shell">sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-shell</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/788/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/788/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=788&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/07/25/how-to-install-gnome-3-on-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/07/gnome3.png" medium="image">
			<media:title type="html">gnome3</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Emerald To Work In Ubuntu 11.04 Natty Narwhal</title>
		<link>http://wawan.wordpress.com/2011/05/28/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/</link>
		<comments>http://wawan.wordpress.com/2011/05/28/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/#comments</comments>
		<pubDate>Sat, 28 May 2011 01:12:19 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=779</guid>
		<description><![CDATA[From WebUpd8 I don&#8217;t know if this happens to everybody or just to a minority of users, but for me, Emerald crashes with a segmentation fault in Ubuntu 11.04 Natty Narwhal. I&#8217;m definetly not alone because the bug report on Launchpad shows that this bug affects at least 23 other people. From the above mentioned [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=783&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>From <a title="emerald" href="http://www.webupd8.org/2011/05/get-emerald-to-work-in-ubuntu-1104.html">WebUpd8</a></div>
<div>I don&#8217;t know if this happens to everybody or just to a minority of users, but for me, <a title="Emerald" href="http://wawan-kurniawan.web.id/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/">Emerald </a>crashes with a segmentation fault in Ubuntu 11.04 Natty Narwhal. I&#8217;m definetly not alone because the <a href="https://bugs.launchpad.net/ubuntu/+source/emerald/+bug/733393">bug report</a> on Launchpad shows that this bug affects at least 23 other people.</div>
<div>From the above  mentioned bug report I&#8217;ve discovered a PPA which fixes the Emerald  segmentation fault issue so if you want to use <a title="emerald" href="http://wawan-kurniawan.web.id/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/">Emerald </a>in Ubuntu 11.04,  add the PPA and upgrade <a title="emerald" href="http://wawan-kurniawan.web.id/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/">Emerald</a>:</div>
<div>
<pre class="brush:shell">sudo add-apt-repository ppa:malteworld/compiz
sudo apt-get update
sudo apt-get upgrade</pre>
<p>If you don&#8217;t want to use a PPA, you can also compile the latest <a title="emerald" href="http://wawan-kurniawan.web.id/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/">Emerald </a>from source &#8211; <a href="http://demonic.cc/?p=50">instructions here</a>.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/783/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=783&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/05/28/get-emerald-to-work-in-ubuntu-11-04-natty-narwhal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Install JRE and JDK on Ubuntu Natty 11.04</title>
		<link>http://wawan.wordpress.com/2011/05/23/how-to-install-jre-and-jdk-on-ubuntu-natty-11-04/</link>
		<comments>http://wawan.wordpress.com/2011/05/23/how-to-install-jre-and-jdk-on-ubuntu-natty-11-04/#comments</comments>
		<pubDate>Mon, 23 May 2011 10:00:29 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=777</guid>
		<description><![CDATA[Method 1 From canonical partners repository Go to Ubuntu Software Center then choose edit then click Software sources now you need to click on other software then select canonical partners,canonical partners (Source code) click ok. Then Now this will ask for source list update after this you can install the following packages from your command [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=777&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 108px"><img class="   " title="Java" src="http://wawan.files.wordpress.com/2011/07/java.jpg?w=98&#038;h=130" alt="Java" width="98" height="130" /><p class="wp-caption-text">Java</p></div>
<p><strong>Method 1</strong></p>
<p>From canonical partners repository<br />
Go to Ubuntu Software Center then choose edit then click Software sources now you need to click on other software then select canonical partners,canonical partners (Source code) click ok. Then</p>
<p>Now this will ask for source list update after this you can install the following packages from your command line</p>
<pre class="brush:shell">sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</pre>
<p><strong>Method 2</strong></p>
<p>Open the terminal and run the following commands</p>
<pre class="brush:shell">sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</pre>
<p><strong>If you want to install JDK use the following command</strong></p>
<pre class="brush:shell">sudo apt-get install sun-java6-jdk</pre>
<p><strong>Testing Java Runtime Environment</strong></p>
<p>You’ll want to confirm that your system is configured properly for Sun’s JRE. Check that the JRE is properly installed by running the following command from a terminal.</p>
<pre class="brush:shell">java -version</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/777/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=777&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/05/23/how-to-install-jre-and-jdk-on-ubuntu-natty-11-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/07/java.jpg" medium="image">
			<media:title type="html">Java</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix Plymouth on Ubuntu 11.04 Natty</title>
		<link>http://wawan.wordpress.com/2011/05/04/fix-plymouth-on-ubuntu-11-04-natty/</link>
		<comments>http://wawan.wordpress.com/2011/05/04/fix-plymouth-on-ubuntu-11-04-natty/#comments</comments>
		<pubDate>Wed, 04 May 2011 03:07:52 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=775</guid>
		<description><![CDATA[In Ubuntu 11.04 after installing NVIDIA’s or ATI’s video card proprietary driver the graphical boot, managed by Plymouth, reverts to an ugly text-only version. I&#8217;ve use StartUp-Manager but not solve yet, but it better then before . I found simple solution from here. There’s a script to get the graphical boot back. U can di [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=775&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://wawan-kurniawan.web.id/fix-plymouth-on-ubuntu-11-04-natty">Ubuntu</a> 11.04 after installing NVIDIA’s or ATI’s video card proprietary driver the graphical boot, managed by <a href="http://wawan-kurniawan.web.id/fix-plymouth-on-ubuntu-11-04-natty">Plymouth</a>, reverts to an ugly text-only version. I&#8217;ve use StartUp-Manager but not solve yet, but it better then before <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . I found simple solution from <a href="http://paolobernardi.wordpress.com/2011/05/01/fix-plymouth-on-ubuntu-after-installing-nvidia-or-ati-proprietary-drivers-for-ubuntu-11-04-natty/">here</a>. There’s a script to get the graphical boot back.</p>
<p>U can di this to using it :<br />
[ad#Google Adsense]</p>
<pre class="brush:shell">$ cd
$ wget http://www.webalice.it/bernardi82/software/fixplymouth-natty
$ chmod +x fixplymouth-natty
$ ./fixplymouth-natty</pre>
<p><strong>HINT:</strong> the script will  ask you to select a video resolution. I think you’re better off with  1024×768-24, higher resolutions might not work.</p>
<p><strong>NOTE:</strong> The script that I’ve described on <a title="The post with the script to fix Plymouth graphical boot for Ubuntu 10.04 and 10.10" href="http://paolobernardi.wordpress.com/2010/11/07/fix-plymouth-on-ubuntu-after-installing-nvidia-or-ati-proprietary-drivers/">a previous post</a> works only for <a href="http://wawan-kurniawan.web.id/fix-plymouth-on-ubuntu-11-04-natty">Ubuntu</a> 10.04 and <a href="http://wawan-kurniawan.web.id/fix-plymouth-on-ubuntu-11-04-natty">Ubuntu</a> 10.10. For the new <a href="http://wawan-kurniawan.web.id/fix-plymouth-on-ubuntu-11-04-natty">Ubuntu</a> 11.04  (Natty) there’s an additional configuration to change, so I’ve modified  the script in order to do that.</p>
<p>Here’s what happens under the hood: the script installs <a title="uvesafb website" href="http://dev.gentoo.org/%7Espock/projects/uvesafb/">uvesafb</a> and configures Grub and some parameters for the uvesafb kernel module;  finally it rebuilds the initramfs image and updates Grub2. This updated  version of the script also removes the vt.handoff=7 parameter from  Grub’s configuration, here’s <a title="Explaination about what the vt.handoff=7 configuration switch does" href="http://askubuntu.com/questions/32999/what-is-vt-handoff-7-parameter-in-grub-cfg">an explanation of what it is</a>.</p>
<p>After you reboot it must be fix.<br />
<img src="http://www.laymark.com/i/m/m121.gif" alt="yes" /> <img src="http://www.laymark.com/i/m/m121.gif" alt="yes" /> <img src="http://www.laymark.com/i/m/m121.gif" alt="yes" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/775/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=775&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/05/04/fix-plymouth-on-ubuntu-11-04-natty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://www.laymark.com/i/m/m121.gif" medium="image">
			<media:title type="html">yes</media:title>
		</media:content>

		<media:content url="http://www.laymark.com/i/m/m121.gif" medium="image">
			<media:title type="html">yes</media:title>
		</media:content>

		<media:content url="http://www.laymark.com/i/m/m121.gif" medium="image">
			<media:title type="html">yes</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Google Maps on Android</title>
		<link>http://wawan.wordpress.com/2011/04/18/using-google-maps-on-android/</link>
		<comments>http://wawan.wordpress.com/2011/04/18/using-google-maps-on-android/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 05:41:46 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=762</guid>
		<description><![CDATA[Google Maps is one of the many applications bundled with the Android platform. In addition to simply using the Maps application, you can also embed it into your own applications and make it do some very cool things. In this article, I will show you how to use Google Maps in your Android applications and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=762&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="Google Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Google Maps</a> is one of the many applications bundled with the Android  platform. In addition to simply using the <a title="Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps </a>application, you can also  embed it into your own applications and make it do some very cool  things. In this article, I will show you how to use Google <a title="Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps </a>in your  Android applications and how to programmatically perform the following:</p>
<ol>
<li>Change the views of Google <a title="Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps</a></li>
<li>Obtain the latitude and longitude of locations in Google <a title="Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps</a></li>
<li>Perform geocoding and reverse geocoding</li>
<li>Add markers to Google <a title="Maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps</a></li>
</ol>
<p>Before we start, we must have Google API.</p>
<div class="wp-caption alignnone" style="width: 510px"><img class="     " title="Google Maps" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-1.jpg?w=500" alt="Google Maps" width="500" /><p class="wp-caption-text">Google API</p></div>
<p><span id="more-762"></span><br />
[ad#Google Adsense]<br />
Still from Android SDK, create a new Android Virtual Device to be used as an emulator that uses a Google API. The way is, click Virtual Device, then click the New button will appear the window &#8220;Create New Android Virtual Device&#8221; Fill in as shown below, then click Create AVD</p>
<div class="wp-caption alignnone" style="width: 338px"><img class=" " title="Google Maps" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-2.jpg?w=328&#038;h=454" alt="Google Maps" width="328" height="454" /><p class="wp-caption-text">New Emulator</p></div>
<p>To utilize the Google <a title="maps" href="http://wawan-kurniawan.web.id/using-google-maps-on-android/">Maps </a>feature, we need the Map API Key, without this we will not be able to display the MAP on Android. These sections are often forgotten, so many are confused, get the Map was not showing.</p>
<p>If u use Windows 7, find debug.keystore on C:\Users\&lt;user&gt;\.android then copy it to C:\.Open Command prompt, then go to this directory on command prompt: C:\Program Files\Java\jdk1.6.0_23\bin&gt; then type this command :</p>
<pre class="brush:shell">keytool.exe -list -alias androiddebugkey -keystore "C:\debug.keystore" -storepass android -keypass android</pre>
<div class="wp-caption alignnone" style="width: 510px"><img class=" " title="Google Maps" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-3.jpg?w=500" alt="Google Maps" width="500" /><p class="wp-caption-text">Debug.KeyStore</p></div>
<p>Now go to <a title="GooMaps" href="http://code.google.com/android/maps-api-signup.html">http://code.google.com/android/maps-api-signup.html</a> then input fingerprint and generate.</p>
<p>Now lets go to the code :</p>
<p>1. Create new project</p>
<div class="wp-caption alignnone" style="width: 360px"><img class="     " title="Google Maps" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-4.jpg?w=350" alt="Google Maps" width="350" /><p class="wp-caption-text">New Project</p></div>
<p>Edit main.xml</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;com.google.android.maps.MapView
        android:id="@+id/mapView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:enabled="true"
        android:clickable="true"
        android:apiKey="isi dengan key Google Map API"
        /&gt;
&lt;/RelativeLayout&gt;</pre>
<p>To be able to display a Google Map Map we need to add &lt;uses-library&gt; com.google.android.maps and his &lt;uses-permission&gt; INTERNET through AndroidManifest.xml file</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.wawan.googlemap"
      android:versionCode="1"
      android:versionName="1.0"&gt;

    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;uses-library android:name="com.google.android.maps" /&gt;
        &lt;activity android:name=".ShowGoogleMap"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;

    &lt;/application&gt;
    &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
&lt;/manifest&gt;</pre>
<p>Edit  ShowGoogleMap.java</p>
<pre class="brush:java">package com.wawan.googlemap;

import com.google.android.maps.MapActivity;
import android.os.Bundle;

public class ShowGoogleMap extends MapActivity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }
}</pre>
<p>Now Run project, the result will be :</p>
<div class="wp-caption alignnone" style="width: 339px"><img title="Google Maps" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-5.jpg?w=329&#038;h=493" alt="Google Maps" width="329" height="493" /><p class="wp-caption-text">Result Maps</p></div>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/762/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/762/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/762/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=762&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/04/18/using-google-maps-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-1.jpg?w=300" medium="image">
			<media:title type="html">Google Maps</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-2.jpg?w=216" medium="image">
			<media:title type="html">Google Maps</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-3.jpg?w=300" medium="image">
			<media:title type="html">Google Maps</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-4.jpg?w=217" medium="image">
			<media:title type="html">Google Maps</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid6-5.jpg?w=200" medium="image">
			<media:title type="html">Google Maps</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Combobox on Android</title>
		<link>http://wawan.wordpress.com/2011/04/14/dynamic-combobox-on-android/</link>
		<comments>http://wawan.wordpress.com/2011/04/14/dynamic-combobox-on-android/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 12:06:08 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=760</guid>
		<description><![CDATA[Now let us learn how to make Dynamic ComboBox. We ever meet in one form there are two combobox that interconnected. For example, in a user registration form, we must input country and city were we live, here we will see when we choose a country, the city combobox will change depend what country we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=760&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now let us learn how to make Dynamic <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">ComboBox</a>. We ever meet in one form there are two <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">combobox</a> that interconnected. For example, in a user registration form, we must input country and city were we live, here we will see when we choose a country, the city <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">combobox </a>will change depend what country we choose.</p>
<p>Lets start the code :<br />
1. Create New Project, i created ComboBoxAdvance with 1 activity ShowComboBoxAdvance<br />
<span id="more-760"></span><br />
[ad#Google Adsense]<br />
2. Edit main.xml</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:orientation="vertical"
	android:layout_width="fill_parent"
	android:layout_height="fill_parent"&gt;
	&lt;TextView android:text="Negara :"
		android:id="@+id/selection_country"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content" /&gt;
	&lt;Spinner android:id="@+id/spinner_country"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:drawSelectorOnTop="true" /&gt;
	&lt;TextView android:text="kota :"
		android:id="@+id/selection_city"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content" /&gt;
	&lt;Spinner android:id="@+id/spinner_city"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:drawSelectorOnTop="true" /&gt;
&lt;/LinearLayout&gt;</pre>
<p>3. Edit ShowComboBoxAdvance.java</p>
<pre class="brush:java">package com.wawan.comboboxadvance;

import java.util.HashMap;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;

public class ShowComboBoxAdvance extends Activity implements AdapterView.OnItemSelectedListener {
	TextView selection_country;
	TextView selection_city;
	Spinner spin_city;
	String[] state = { "US", "Argentina", "Brazil", "Indonesia",
			"Inggris", "Malaysia", "Philipina" };
    HashMap&lt;String, String []&gt; hash_state = new HashMap&lt;String, String []&gt;();

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		generateData();
		setContentView(R.layout.main);
		selection_country = (TextView) findViewById(R.id.selection_country);
		Spinner spin = (Spinner) findViewById(R.id.spinner_country);
		spin.setOnItemSelectedListener(this);
		ArrayAdapter&lt;String&gt; aa = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_spinner_item, state);
		aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		spin.setAdapter(aa);
		spin_city = (Spinner) findViewById(R.id.spinner_city);

	}

	public void onItemSelected(AdapterView&lt;?&gt; parent, View v, int position,	long id) {
		fillComboCity(state[position]);
	}

	public void onNothingSelected(AdapterView&lt;?&gt; parent) {
		Toast.makeText(this, "Pls Choose State", Toast.LENGTH_LONG).show();
	}

	private void generateData(){
		hash_state.put("US", new String[] {"Chicago","Los Angeles","Newyork"});
		hash_state.put("Indonesia", new String[] {"Bandung","Jakarta","Surabaya"});
		hash_state.put("Malaysia", new String[] {"Kuala Lumpur","Selangor","Serawak"});
	}
	private void fillComboCity(String sstate){
		String[] city = null;
		ArrayAdapter&lt;String&gt; aa = null;
		try {
			city = hash_state.get(sstate);
			aa = new ArrayAdapter&lt;String&gt;(this,
					android.R.layout.simple_spinner_item, city);
		} catch (NullPointerException e) {
			aa = new ArrayAdapter&lt;String&gt;(this,
					android.R.layout.simple_spinner_item, new String[] {});
		}
		aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		spin_city.setAdapter(aa);
	}

}</pre>
<p>In order for the city <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">combobox </a>contents in accordance with the selected state, then we need to have a variable that stores the relation of State and the city, here we use a HashMap where the key State Names and Name City into its data</p>
<pre class="brush:java">HashMap&lt;String, String []&gt; hash_state = new HashMap&lt;String, String []&gt;();</pre>
<p>Now how do to fill the <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">ComboBox </a>City for its content in accordance with the State selected.</p>
<pre class="brush:java">private void generateData(){
		hash_state.put("US", new String[] {"Chicago","Los Angeles","Newyork"});
		hash_state.put("Indonesia", new String[] {"Bandung","Jakarta","Surabaya"});
		hash_state.put("Malaysia", new String[] {"Kuala Lumpur","Selangor","Serawak"});
	}</pre>
<p>Note the method FillComboCity</p>
<pre class="brush:java">private void fillComboCity(String sstate){
		String[] city = null;
		ArrayAdapter&lt;String&gt; aa = null;
		try {
			city = hash_state.get(sstate);
			aa = new ArrayAdapter&lt;String&gt;(this,
					android.R.layout.simple_spinner_item, city);
		} catch (NullPointerException e) {
			aa = new ArrayAdapter&lt;String&gt;(this,
					android.R.layout.simple_spinner_item, new String[] {});
		}
		aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		spin_city.setAdapter(aa);
	}</pre>
<p>FillComboCity method called after we choose a State. This is where excellence HashMap, to get the city data we do not need to do a loop as in the Array, we simply use the get method<br />
hash_state.get (sstate);<br />
The method we also perform fillComboCity Exception Handling NullPointerException. if the State selected is not found to produce a Null value. Due to her country is not found then the city must empty the contents of <a title="combobox" href="http://wawan-kurniawan.web.id/dynamic-combobox-on-android/">ComboBox</a>.<br />
5. Result.</p>
<div class="wp-caption alignnone" style="width: 343px"><img title="Combobox" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid5-1.jpg?w=333&#038;h=494" alt="Combobox" width="333" height="494" /><p class="wp-caption-text">Dynamic Combobox</p></div>
<div class="wp-caption alignnone" style="width: 344px"><img title="combobox" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid5-2.jpg?w=334&#038;h=495" alt="combobox" width="334" height="495" /><p class="wp-caption-text">Dynamic Combobox</p></div>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/760/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=760&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/04/14/dynamic-combobox-on-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid5-1.jpg?w=202" medium="image">
			<media:title type="html">Combobox</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid5-2.jpg?w=202" medium="image">
			<media:title type="html">combobox</media:title>
		</media:content>
	</item>
		<item>
		<title>Advance DatePicker and TimePicker on Android</title>
		<link>http://wawan.wordpress.com/2011/04/13/advance-datepicker-and-timepicker-on-android/</link>
		<comments>http://wawan.wordpress.com/2011/04/13/advance-datepicker-and-timepicker-on-android/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 02:22:25 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=756</guid>
		<description><![CDATA[After we learn about datepicker and timepicker on android, now we will learn how to make datepicker and timepicker on android looks more simple. Because the default is bigger for me and its consume more space in home screen. So we will make textbox to input datepicker and timepicker on android. The clue is when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=756&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 345px"><img title="Android" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid4-1.jpg?w=335&#038;h=494" alt="Android" width="335" height="494" /><p class="wp-caption-text">Android Date Time Picker</p></div>
<p>After we learn about datepicker and timepicker on <a title="android" href="http://wawan-kurniawan.web.id/advance-datepi…ker-on-android/">android</a>, now we will learn how to make datepicker and timepicker on <a title="android" href="http://wawan-kurniawan.web.id/advance-datepi…ker-on-android/">android</a> looks more simple. Because the default is bigger for me and its consume more space in home screen. So we will make textbox to input datepicker and timepicker on <a title="android" href="http://wawan-kurniawan.web.id/advance-datepi…ker-on-android/">android</a>. The clue is when textbox selected it will popup datepicker and timepicker on <a title="android" href="http://wawan-kurniawan.web.id/advance-datepi…ker-on-android/">android</a>, the user can input and throw the value to textbox.<br />
<span id="more-756"></span><br />
[ad#Google Adsense]<br />
Lets start :<br />
1. Create New project, i will name it DateTimeAdvance<br />
2. Edit main.xml</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"    &gt;
&lt;TextView android:text="Date :"
	android:id="@+id/TextView01"
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"/&gt;
&lt;EditText android:text=""
	android:id="@+id/txtDate"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"/&gt;
&lt;TextView android:text="Time :"
	android:id="@+id/TextView02"
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"/&gt;
&lt;EditText android:text=""
	android:id="@+id/txtTime"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:editable="false"/&gt;
&lt;/LinearLayout&gt;</pre>
<p>3. Edit ShowDateTimeAdvance.java</p>
<pre class="brush:java">package com.wawan.datetimeadvance;

import java.util.Calendar;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.TimePicker;

public class ShowDateTimeAdvance extends Activity
{
    int hour, minute, mYear,mMonth, mDay;
    static final int TIME_DIALOG_ID = 0;
    static final int DATE_DIALOG_ID = 1;
    private EditText txtDate;
	private EditText txtTime;
	private String[] arrMonth = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        txtDate = (EditText) findViewById(R.id.txtDate);
		txtTime = (EditText) findViewById(R.id.txtTime);
		// get the current date
	    final Calendar c = Calendar.getInstance();
	    mYear = c.get(Calendar.YEAR);
	    mMonth = c.get(Calendar.MONTH);
	    mDay = c.get(Calendar.DAY_OF_MONTH);

        txtDate.setOnTouchListener(new OnTouchListener() {
			public boolean onTouch(View arg0, MotionEvent arg1) {
				// TODO Auto-generated method stub
				showDialog(DATE_DIALOG_ID);
				return true;
			}
        });

        txtTime.setOnTouchListener(new OnTouchListener() {
			public boolean onTouch(View arg0, MotionEvent arg1) {
				// TODO Auto-generated method stub
				showDialog(TIME_DIALOG_ID);
				return true;
			}
        });

    }

    @Override
    protected Dialog onCreateDialog(int id)
    {
        switch (id) {
            case TIME_DIALOG_ID:
                return new TimePickerDialog(
                    this, mTimeSetListener, hour, minute, true);
            case DATE_DIALOG_ID:
                return new DatePickerDialog(
                    this, mDateSetListener, mYear, mMonth, mDay);
        }
        return null;
    }

    private DatePickerDialog.OnDateSetListener mDateSetListener =
        new DatePickerDialog.OnDateSetListener()
        {

		public void onDateSet(DatePicker view, int year, int monthOfYear,int dayOfMonth) {
			mYear = year;
			mMonth = monthOfYear;
			mDay = dayOfMonth;
			String sdate = arrMonth[mMonth] + " " + LPad(mDay + "", "0", 2) + ", " + mYear;
			txtDate.setText(sdate);
		}
	};

    private TimePickerDialog.OnTimeSetListener mTimeSetListener =
    new TimePickerDialog.OnTimeSetListener()
    {
        public void onTimeSet(TimePicker view, int hourOfDay, int minuteOfHour)
        {
            hour = hourOfDay;
            minute = minuteOfHour;
            String stime = LPad(""+hour, "0", 2) + ":"+ LPad(""+hour, "0", 2);
            txtTime.setText(stime);
        }
    };

	private static String LPad(String schar, String spad, int len) {
		String sret = schar;
		for (int i = sret.length(); i &lt; len; i++) {
			sret = spad + sret;
		}
		return new String(sret);
	}
}</pre>
<p>4. Run Project.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/756/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/756/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/756/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=756&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/04/13/advance-datepicker-and-timepicker-on-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid4-1.jpg?w=203" medium="image">
			<media:title type="html">Android</media:title>
		</media:content>
	</item>
		<item>
		<title>Date Time Picker on Android</title>
		<link>http://wawan.wordpress.com/2011/04/12/date-time-picker-on-android/</link>
		<comments>http://wawan.wordpress.com/2011/04/12/date-time-picker-on-android/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:06:23 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=753</guid>
		<description><![CDATA[Datepicker always interesting to be explored. A good application to input the date using the datepicker so users typically do not have to type it manually but, just choose the date datepicker. This because Datepicker help user couse the date input is often wrong. Android certainly notice this. Now let&#8217;s make the code : 1. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=753&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Datepicker always interesting to be explored. A good application to input the date using the datepicker so users typically do not have to type it manually but, just choose the date datepicker. This because Datepicker help user couse the date input is often wrong. <a title="Android" href="http://wawan-kurniawan.web.id/date-time-picker-on-android/">Android </a>certainly notice this. Now let&#8217;s make the code :</p>
<p>1. Create new Android Project<br />
<div class="wp-caption alignnone" style="width: 302px"><img title="Android" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid3-1.jpg?w=292&#038;h=400" alt="Android" width="292" height="400" /><p class="wp-caption-text">New Project</p></div><br />
2. After the project created then automatically will create 3 files: main.xml, string.xml, ShowDateTime.java<br />
<span id="more-753"></span><br />
[ad#Google Adsense]<br />
3. Edit main.xml</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;TextView android:text="Date :"
         android:id="@+id/TextView01"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"/&gt;
    &lt;DatePicker android:layout_width="wrap_content"
         android:layout_height="wrap_content" /&gt;
    &lt;TextView android:text="Time :"
        android:id="@+id/TextView02"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/&gt;
    &lt;TimePicker android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
&lt;/LinearLayout&gt;</pre>
<p>4. Edit ShowDateTime.java</p>
<pre class="brush:java">package com.wawan.datetimepicker;

import android.app.Activity;
import android.os.Bundle;

public class ShowDateTime extends Activity {
    int hour, minute;
    static final int TIME_DIALOG_ID = 0;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}</pre>
<p>5. Result On <a title="Android" href="http://wawan-kurniawan.web.id/date-time-picker-on-android/">Android</a> Emulator<br />
<div class="wp-caption alignnone" style="width: 280px"><img title="Android" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid3-2.jpg?w=270&#038;h=400" alt="Android" width="270" height="400" /><p class="wp-caption-text">Result</p></div></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/753/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/753/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/753/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=753&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/04/12/date-time-picker-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid3-1.jpg?w=219" medium="image">
			<media:title type="html">Android</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid3-2.jpg?w=202" medium="image">
			<media:title type="html">Android</media:title>
		</media:content>
	</item>
		<item>
		<title>Menu List on Android</title>
		<link>http://wawan.wordpress.com/2011/04/12/menu-list-on-android/</link>
		<comments>http://wawan.wordpress.com/2011/04/12/menu-list-on-android/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 04:38:17 +0000</pubDate>
		<dc:creator>Wawan</dc:creator>
				<category><![CDATA[Gado Gado]]></category>

		<guid isPermaLink="false">http://wawan-kurniawan.web.id/?p=747</guid>
		<description><![CDATA[Menu List on Android This is tutorial how to make menu list in android. 1. Make new project using eclipse, see picture below : 2. After that it will automatically create thie file MenuList.Java main.xml strings.xml 3. Edit main.xml like this : &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"&#62; &#60;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@+id/TextView01" android:id="@+id/label" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=747&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Menu List on Android</strong></p>
<p>This is tutorial how to make menu list in android.<br />
1. Make new project using eclipse, see picture below :</p>
<div class="wp-caption alignnone" style="width: 410px"><img title="Menu List on Android" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid1-1.jpg?w=400&#038;h=553" alt="Menu List on Android" width="400" height="553" /><p class="wp-caption-text">Menu List on Android</p></div>
<p>2. After that it will automatically create thie file<br />
MenuList.Java<br />
main.xml<br />
strings.xml<br />
<span id="more-747"></span><br />
3. Edit main.xml like this :</p>
<pre class="brush:java">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"&gt;

&lt;TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@+id/TextView01"
android:id="@+id/label"
android:textSize="30px"/&gt;

&lt;ImageView android:id="@+id/icon"
android:layout_height="wrap_content"
android:src="@drawable/icon"
android:layout_width="22px"
android:layout_marginTop="4px"
android:layout_marginRight="4px"
android:layout_marginLeft="4px"/&gt;

&lt;/LinearLayout&gt;</pre>
<p>4. Edit MenuList.java</p>
<pre class="brush:java">package com.wawan.listexample;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class MenuList extends ListActivity {
/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Create an array of Strings, that will be put to our ListActivity
String[] contohlist = new String[] { "MenuList 1", "MenuList 2", "MenuList 3"};
// Create an ArrayAdapter, that will actually make the Strings above
// appear in the ListView
this.setListAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1, contohlist));
}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
// Get the item that was clicked
Object o = this.getListAdapter().getItem(position);
String keyword = o.toString();
Toast.makeText(this, "You choose : " + keyword, Toast.LENGTH_LONG).show();
}

}</pre>
<p>5. Then run using Emulator, the result will be :</p>
<div class="wp-caption alignnone" style="width: 226px"><img title="Menu List on Android" src="http://wawan.files.wordpress.com/2011/04/tutorialandroid1-2.jpg?w=216&#038;h=320" alt="Menu List on Android" width="216" height="320" /><p class="wp-caption-text">Menu List on Android</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wawan.wordpress.com/747/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wawan.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wawan.wordpress.com/747/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wawan.wordpress.com&amp;blog=215701&amp;post=747&amp;subd=wawan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wawan.wordpress.com/2011/04/12/menu-list-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/078c36cb8a8634f0610d05cb9c3bd014?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Wawan</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid1-1.jpg?w=216" medium="image">
			<media:title type="html">Menu List on Android</media:title>
		</media:content>

		<media:content url="http://wawan.files.wordpress.com/2011/04/tutorialandroid1-2.jpg?w=202" medium="image">
			<media:title type="html">Menu List on Android</media:title>
		</media:content>
	</item>
	</channel>
</rss>
