<?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>Developing web and mobile apps</title>
	<atom:link href="http://javierloriente.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://javierloriente.wordpress.com</link>
	<description>Web and mobile development, JavaScript, HTML, CSS...</description>
	<lastBuildDate>Fri, 26 Nov 2010 16:01:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='javierloriente.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Developing web and mobile apps</title>
		<link>http://javierloriente.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://javierloriente.wordpress.com/osd.xml" title="Developing web and mobile apps" />
	<atom:link rel='hub' href='http://javierloriente.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Debugging Android Apps.</title>
		<link>http://javierloriente.wordpress.com/2010/11/26/debuging-android-apps/</link>
		<comments>http://javierloriente.wordpress.com/2010/11/26/debuging-android-apps/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 15:58:17 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=198</guid>
		<description><![CDATA[If you want to use Elipse to debug an Android app on either the simulator or an Android device there are a couple of things you have to bear in mind. - Add the &#8220;android:debuggable&#8221; attribute to your application element in the AndroidManifest.xml, and set it up to true android:debuggable="true" - If you are running [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=198&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to use Elipse to debug an Android app on either the simulator or an Android device there are a couple of things you have to bear in mind.</p>
<p>- Add the &#8220;android:debuggable&#8221; attribute to your application element in the AndroidManifest.xml, and set it up to true</p>
<p><code>android:debuggable="true"</code></p>
<p>- If you are running it in a device also check in you phone settings/Application/Development that Debug mode is active in the handset.</p>
<p>That is it, now your are ready to start setting up breakpoints and eclipse will stop when one is reached.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=198&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/11/26/debuging-android-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Android development seminar @ Trinity College</title>
		<link>http://javierloriente.wordpress.com/2010/11/23/android-development-seminar-trinity-college/</link>
		<comments>http://javierloriente.wordpress.com/2010/11/23/android-development-seminar-trinity-college/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 01:27:27 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=180</guid>
		<description><![CDATA[Last week I was invited to Trinity College to give there a seminar about Android development to computer science undergraduates, specifically for the Networks and Data Comunications module. In the talk I did a quick introduction about the Android platform and Android SDK, going from the basics to the key elements you need to understand [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=180&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I was invited to Trinity College to give there a seminar about Android development to computer science undergraduates, specifically for the Networks and Data Comunications module.</p>
<p>In the talk I did a quick introduction about the Android platform and Android SDK, going from the basics to the key elements you need to understand to get your hands on Android development. Also I presented the new service <a href="http://0x1f.ie">0x1f</a> that I developed for my company <a href="http://innerfunction.com">Innerfunction</a>. 0x1f is a URL shortening and QR tag generation service developed with nodejs and using couchdb as database. This service will be a key component in a number of mobile web projects we will be working on over the next year.</p>
<p>The experience was great, and that is not all. I’ve also proposed them some ideas about possible QR tags applications they may be interested in develop and give them freedom to choose their own application idea to be complete as part of the course assignment. </p>
<p>I will keep you informed about where all this is going, in the meantime I want to include here the slices I prepared for the talk even when I&#8217;m not a big fun of releasing slides as learning resource &#8211; they are intended to be a complement of a talk and contain a minimal information enougth to keep me talking for an hour or more, but they are not a good learning resource for somebody who is new in the area and may find a book or even the Android doc much more interesting.</p>
<p>Anyway I leave them here :</p>
<p><a href='http://javierloriente.files.wordpress.com/2010/11/android-dev-presentation1.pdf'>Android-Dev-Presentation@Trinity College</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=180&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/11/23/android-development-seminar-trinity-college/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitoring nodejs services with Monit on Ubuntu</title>
		<link>http://javierloriente.wordpress.com/2010/11/22/monitoring-nodejs-services-with-monit-on-ubuntu/</link>
		<comments>http://javierloriente.wordpress.com/2010/11/22/monitoring-nodejs-services-with-monit-on-ubuntu/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 18:58:48 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[monit]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=174</guid>
		<description><![CDATA[If you are running nodejs services in productions server you will came across with the situation when one of your script has an expected crash and the service stops being available to users. In that case the best solution is to use some monitoring tool  to detect when this happens, and then restart the service [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=174&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are running nodejs services in productions server you will came across with the situation when one of your script has an expected crash and the service stops being available to users. In that case the best solution is to use some monitoring tool  to detect when this happens, and then restart the service automatically without requiring any manual task.</p>
<p>We want to ensure that the server is up and running 24/7 right? Maybe also to get email notifications about when a crash happen, or even monitor if the machine is running out of memory&#8230;</p>
<p><a href="http://mmonit.com/monit/">Monit</a> is a tool that can be very useful to monitor UNIX process and have actions or alerts send triggered when something happens in our server. This is how I setup monit to restart nodejs scripts:</p>
<p>Create a script like in /etc/init.d/0x1f to start and stop your service, in this case the service name is 0x1f, here is the script I&#8217;m using:<br />
<code><br />
#!/bin/bash<br />
# Start and stops 0x1f</code></p>
<p><code>case "$1" in<br />
start)<br />
echo $$<br />
sudo echo $$ &gt; /var/run/0x1f.pid<br />
exec sudo /usr/local/bin/node /home/javier/0x1f/0x1f.js &gt;&gt; /var/log/0x1f.log<br />
;;</p>
<p>stop)<br />
echo `cat /var/run/0x1f.pid`<br />
#sudo /usr/local/sbin/0x1f-stop<br />
kill `cat /var/run/0x1f.pid`</p>
<p></code></p>
<p><code>;;<br />
status)<br />
status 0x1f<br />
;;<br />
restart)<br />
$0 stop<br />
$0 start<br />
;;<br />
*)<br />
echo "Usage $0 {start|stop|restart|status}"<br />
exit 1<br />
esac<br />
</code></p>
<p>Then install and setup monit to monitor your service and restart them when they go down, to do that I added the next to /etc/monit/monitrc:<br />
<code><br />
check host 0x1f with address 127.0.0.1<br />
        start program = "/etc/init.d/0x1f start"<br />
        stop program = "/etc/init.d/0x1f stop"<br />
        if failed port 3000 protocol HTTP<br />
                request /<br />
                with timeout 20 seconds<br />
        then restart<br />
        if 5 restarts within 5 cycles then timeout<br />
</code></p>
<p>That will monitor when a HTTP connection can not be done to port 3000 and then restart the script. If you also want to setup monit to send emails with alert then add the next lines to you monitrc:</p>
<p><code><br />
set alert admin@if.com #<br />
set mailserver smtp.emailsrvr.com port 25<br />
     username "bar@foo.com" password "xxxxx"<br />
     with timeout 15 seconds<br />
        using hostname "smtp.emails.com"<br />
</code></p>
<p>With this conf monit sends all alert messages to email admin@if.com using SMTP server &#8220;smtp.emails.com&#8221; with those credentials.</p>
<p>Then you can setup monit to send you alerts at your convenience, I use the next to get alerted when a the service goes down:</p>
<p><code><br />
 if failed port 3000 protocol HTTP<br />
                request /<br />
                with timeout 20 seconds<br />
        then alert<br />
</code></p>
<p>And you will get monit emails when bad things happens, and the services will restart automatically.</p>
<p>Monit, Your faithful employee.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=174&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/11/22/monitoring-nodejs-services-with-monit-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Android development : Centering views in a ScrollView.</title>
		<link>http://javierloriente.wordpress.com/2010/08/20/android-development-centering-views-in-a-scrollview/</link>
		<comments>http://javierloriente.wordpress.com/2010/08/20/android-development-centering-views-in-a-scrollview/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 09:16:41 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=143</guid>
		<description><![CDATA[In Android ScrollView allows to have scrolling in a view. I found it very usefull specially when the user turns the device position to vertical, even for many screens that looks right with the device in vertical mode may need a ScrollView to allow the user to access all the elements in the view when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=143&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Android ScrollView allows to have scrolling in a view. I found it very usefull specially when the user turns the device position to vertical, even for many screens that looks right with the device in vertical mode may need a ScrollView to allow the user to access all the elements in the view when he changes to device horitontal orientation.</p>
<p>The child element for the ScrollView has to be a single element, usually a LinearLayout can do the trick, but you could use other views always bearing in mind that ListViews and TextView have their own scrolling already so they don&#8217;t need an additional ScrollView.</p>
<p>If you want to have a set of views centered inside a ScrollView you can think that would be enought with setting the params &#8220;layout_width&#8221; and &#8220;layout_high&#8221; to &#8220;fill_parent&#8221; and then set the property center in the LinearLayout, but that is not enougth because the scroll view doesn&#8217;t stech to fill parent as expected.</p>
<p><img class="size-medium wp-image-150 aligncenter" title="center_scroll_capture" src="http://javierloriente.files.wordpress.com/2010/08/center_scroll_capture3.png?w=180&#038;h=300" alt="" width="180" height="300" /></p>
<p>The solution is to set the ScrollView property <strong>&#8220;fillViewPort&#8221;</strong> to true, and that it will work. See the example below.</p>
<p><code><br />
&lt;ScrollView  xmlns:android="http://schemas.android.com/apk/res/android"<br />
android:layout_width="fill_parent"<br />
android:layout_height="fill_parent"<br />
android:fillViewport="true"<br />
android:background="@drawable/backgroud"&gt;</code></p>
<p><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android &gt;<br />
android:orientation="vertical"<br />
android:layout_width="fill_parent"<br />
android:layout_height="fill_parent"<br />
android:gravity="center"&gt;</code></p>
<p><code>&lt;!-- Your set of views : buttons, editText, textViews... --&gt;</code></p>
<p><code> </code></p>
<p><code>&lt;/LinearLayout&gt;<br />
&lt;/ScrollView&gt;</code></p>
<p style="text-align:center;">
<p>The scrolling doesn&#8217;t appears in the horizontal view but when the users change device orientation to vertical the user can scroll between the view elements. Observe the scrolling bar on the right side.</p>
<p style="text-align:center;">I&#8217;d recommend to use a scroll view as a pattern in all your activities, this way you won&#8217;t run in the problem of a screen where the user can not reach some of the elements. e.g: User cannot click on buttons so it makes the activity completely unusable.</p>
<p style="text-align:center;"><a href="http://javierloriente.files.wordpress.com/2010/08/center_scrolling_horizontal.png"><img class="size-medium wp-image-154 aligncenter" title="center_scrolling_horizontal" src="http://javierloriente.files.wordpress.com/2010/08/center_scrolling_horizontal.png?w=300&#038;h=180" alt="" width="300" height="180" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=143&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/08/20/android-development-centering-views-in-a-scrollview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>

		<media:content url="http://javierloriente.files.wordpress.com/2010/08/center_scroll_capture3.png?w=180" medium="image">
			<media:title type="html">center_scroll_capture</media:title>
		</media:content>

		<media:content url="http://javierloriente.files.wordpress.com/2010/08/center_scrolling_horizontal.png?w=300" medium="image">
			<media:title type="html">center_scrolling_horizontal</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing an android app in the simulator using command line</title>
		<link>http://javierloriente.wordpress.com/2010/07/20/testing-an-android-app-in-the-simulator-using-command-line/</link>
		<comments>http://javierloriente.wordpress.com/2010/07/20/testing-an-android-app-in-the-simulator-using-command-line/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 12:22:53 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[develoment]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=135</guid>
		<description><![CDATA[I was developing and testing my android application using the Eclipse plugin, it works fine so far &#8211; emulator initial start is slow but you can keep it open and just reinstall your app anytime you need to test it- but android also provide command line tools to do that. Some commands you will need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=135&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was developing and testing my android application using the Eclipse plugin, it works fine so far &#8211; emulator initial start is slow but you can keep it open and just reinstall your app anytime you need to test it- but android also provide command line tools to do that.</p>
<p>Some commands you will need<br />
<code><br />
// Start an emulator<br />
$ emulator -avd $emulator<br />
// Install apk in emulator<br />
$ adv -e install your-app.apk<br />
</code></p>
<p>And then you can start your app from the emulator.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=135&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/07/20/testing-an-android-app-in-the-simulator-using-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Android Development : Intents Part II</title>
		<link>http://javierloriente.wordpress.com/2010/07/15/android-intents-part-ii/</link>
		<comments>http://javierloriente.wordpress.com/2010/07/15/android-intents-part-ii/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 00:50:59 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=122</guid>
		<description><![CDATA[In the last post I covered how to send an explicit content specifying the activity class to open. You can also let the operative system to handle an intent. This way we can send intents between different applications, for example if we want to scan a barcode we can call the barcode scaner app from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=122&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the last post I covered how to send an explicit content specifying the activity class to open. You can also let the operative system to handle an intent.</p>
<p>This way we can send intents between different applications, for example if we want to scan a barcode we can call the  barcode scaner app from our own. This could be done like:</p>
<p><code><br />
Intent intent = new Intent("com.google.zxing.client.android.SCAN");<br />
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");<br />
startActivityForResult(intent, 0);<br />
</code></p>
<p>Then we can override the onActivtyResult() method in the class that was starting the event and process the result from barcode scanner like:</p>
<p><code><br />
public void onActivityResult(int requestCode, int resultCode, Intent intent) {<br />
if (requestCode == 0) {<br />
if (resultCode == RESULT_OK) {<br />
String contents = intent.getStringExtra("SCAN_RESULT");<br />
String format = intent.getStringExtra("SCAN_RESULT_FORMAT");<br />
// Handle successful scan<br />
} else if (resultCode == RESULT_CANCELED) {<br />
// Handle cancel<br />
}<br />
}<br />
}<br />
</code></p>
<p>Android uses intent filter to handle events. Event filters are defined in the androidManifiest file and you can create your own filters or use existing ones. When you create the intent you have to specify the view ACTION and some data to be pass to the action.</p>
<p><code><br />
ACTION_VIEW content://contacts/people/1<br />
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("content://contacts/people/1"));<br />
</code></p>
<p>This code display infomation about the person with id 1. There are a number of standard actions in Android (ACTION_VIEW, ACTION_EDIT, ACTION_DIAL, ACTION_MAIN&#8230; see the Android <a title="Android Intents" href="http://developer.android.com/reference/android/content/Intent.html">intents</a> doc) or you can create your own actions adding them to the AndroidManifiest file and the caller and the handler can use them.</p>
<p><code><br />
&lt;intent-filter&gt;<br />
&lt;action android:name="android.intent.action.VIEW" /&gt;<br />
&lt;category android:name="android.intent.category.DEFAULT" /&gt;<br />
&lt;scheme android:name="http" /&gt;<br />
&lt;scheme android:name="https" /&gt;<br />
&lt;scheme android:name="file" /&gt;<br />
&lt;/intent-filter&gt;<br />
</code></p>
<p>That eventFilter will catch the next event:<br />
<code><br />
Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse("http://www.google.com"));<br />
</code><br />
For more info about Android indent see the <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> official doc.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=122&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/07/15/android-intents-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Android Development : Intents Part I</title>
		<link>http://javierloriente.wordpress.com/2010/06/28/android-development-intents/</link>
		<comments>http://javierloriente.wordpress.com/2010/06/28/android-development-intents/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 20:39:28 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=103</guid>
		<description><![CDATA[I&#8217;m doing my first app for Android, it is a TV guide for a digital TV provider which show a real-time guide with TV programs sorted by channel and also allows to manage recordings remotely. I&#8217;m not gonna get into the app design details in this post, but I&#8217;d like to cover some parts of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=103&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m doing my first app for Android, it is a TV guide for a digital TV provider which show a real-time guide with TV programs sorted by channel and also allows to manage recordings remotely. I&#8217;m not gonna get into the app design details in this post,  but I&#8217;d like to cover some parts of Android development that can can be useful for beginners. </p>
<p>ANDROID INTENTS</p>
<p>Android intents are used to navigate between activities &#8211; an android Activity is normally a screen &#8211; so if we have an activity call ProgramDetailActivity and we want to open it we just have to create an intent and call the startActivity method. There are several ways to create an intent:</p>
<p><code><br />
// Using the constructor and passing the context and the activity class<br />
Intent openDetail = new Intent(v.getContext(),ProgramDetailActivity.class );</p>
<p>// or using setClassName method explicit application package name and class name.<br />
Intent openDetail = new Intent();<br />
openDetail.setClassName("com.innerfunction.android.telia",<br />
		"com.innerfunction.android.telia.ProgramDetailActivity");<br />
</code></p>
<p>Then we can call the startActivity method to start the activity:<br />
<code><br />
startActivity(openDetail);<br />
</code> </p>
<p>More about Intents to come in next posts&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=103&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/06/28/android-development-intents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse running very slow when switching tabs in Macos Leopard</title>
		<link>http://javierloriente.wordpress.com/2010/06/15/eclipse-is-very-slow-in-mac-os/</link>
		<comments>http://javierloriente.wordpress.com/2010/06/15/eclipse-is-very-slow-in-mac-os/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 11:48:13 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=93</guid>
		<description><![CDATA[Now that I&#8217;m doing some &#8216;droid development I wanted to use Eclipse on my Macbook pro. I found that Eclipse was very slow when opening files or moving between tabs so I did some research and I&#8217;ve found that Eclipse was run with Java 1.5 that is 32 bits for Mac os , so I&#8217;ve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=93&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;m doing some &#8216;droid development I wanted to use Eclipse on my Macbook pro. I found that Eclipse was very slow when opening files or moving between tabs so I did some research and I&#8217;ve found that Eclipse was run with Java 1.5 that is 32 bits for Mac os , so I&#8217;ve change the Eclipse.ini to use Java 1.6 instead (64-bits) and the problem was solved.</p>
<p>I just edited the Eclipse.ini file in : /Applications/eclipse/Eclipse.app/Contents/MacOS and added the next line :<br />
<code><br />
-vm System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java<br />
</code></p>
<p>I also located more memory for Eclipse:<br />
<code><br />
-Xms128m<br />
-Xmx1024m<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=93&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/06/15/eclipse-is-very-slow-in-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Making a call with iPhone API</title>
		<link>http://javierloriente.wordpress.com/2010/06/14/making-a-call-with-iphone-api/</link>
		<comments>http://javierloriente.wordpress.com/2010/06/14/making-a-call-with-iphone-api/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 13:10:50 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=74</guid>
		<description><![CDATA[In the last post I explained how to make a phone call using &#8216;droid api. Now I wanted to do the same using the iPhone sdk in order to see if  it&#8217;s possible to use * # and pause characters. To make a call with iPhone you have to use the next code : NSString [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=74&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the last post I explained how to make a phone call using &#8216;droid api. Now I wanted to do the same using the iPhone sdk in order to see if  it&#8217;s possible to use * # and pause characters.</p>
<p>To make a call with iPhone you have to use the next code :<br />
<code><br />
NSString *phoneToCall = @"tel: 00468215890,324661#,*241557#";<br />
NSString *phoneToCallEncoded = [phoneToCall stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];<br />
NSURL *url = [[NSURL alloc] initWithString:phoneToCallEncoded];<br />
[[UIApplication sharedApplication] openURL:url];</code></p>
<p>Calling international number with #:</p>
<p>Also I needed o call intenrational numbers with special characters as pauses or #.  e.x: 00468215890,324661#,*241557#</p>
<p>I have find out that with iPhone you can not use # charaters in the URL  due to security issues, while that is allowed in Android. On iOS the only  possible work arround I&#8217;ve found is to  save the number in a new contact and then bring the user to that contact to make a call. It&#8217;s not an ideal solution but may make the trick.</p>
<p>UPDATE : In iOS the user has to exit the app and manually go to the contact if he needs to call it. Navigate from you app to the contact don&#8217;t allow to call complex phone numbers including #. Apple said they did it for security reasons, but this seems to be very restrictive. A user should be able to see the contact with the phone number and then choose if he wants to call the number.</p>
<p>Android uses a less restrictive but efficient security mechanism, instead of don&#8217;t allow any call to special numbers like the iPhone it allows them but advise you about the functionality when you install the application with a msg staying that the application can directly call phone numbers and services that cost money. Is up to the user to trust the app or not they not limit the functionality like the Apple guys do. How are we suppose to develop conference application for iPhone if we cannot call those numbers???</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=74&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/06/14/making-a-call-with-iphone-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
		<item>
		<title>Making a call with Android API</title>
		<link>http://javierloriente.wordpress.com/2010/06/11/making-a-call-with-android-api/</link>
		<comments>http://javierloriente.wordpress.com/2010/06/11/making-a-call-with-android-api/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 10:32:51 +0000</pubDate>
		<dc:creator>alikates</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javierloriente.wordpress.com/?p=71</guid>
		<description><![CDATA[We have to do some test about Andoid making call to numbers including # * and p (pause) characters so I put a very simple app together. Making calls in Android is very easy and you just need to use the next code: startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "001230012"))); And we also have to setup the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=71&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We have to do some test about Andoid making call to numbers including # * and p (pause) characters so I put a very simple app together. Making calls in Android is very easy and</p>
<p>you just need to use the next code:<br />
<code><br />
startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "001230012")));<br />
</code></p>
<p>And we also have to setup the permision in the AndroidManifiest.xml file adding the next line:<br />
<code></p>
<pre>&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;</pre>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javierloriente.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javierloriente.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javierloriente.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javierloriente.wordpress.com&amp;blog=8215423&amp;post=71&amp;subd=javierloriente&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javierloriente.wordpress.com/2010/06/11/making-a-call-with-android-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f933c06676a23d44c4a8c92510acae8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alikates</media:title>
		</media:content>
	</item>
	</channel>
</rss>
