<?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/"
	>

<channel>
	<title>Device FMS - Android does</title>
	<atom:link href="http://devicefms.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://devicefms.ro</link>
	<description>When there’s no limit to what Android gets, there’s no limit to what Android does</description>
	<lastBuildDate>Sat, 14 Jan 2012 05:12:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Situation puzzle</title>
		<link>http://devicefms.ro/2011/04/situation-puzzle/</link>
		<comments>http://devicefms.ro/2011/04/situation-puzzle/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 16:22:43 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Situation puzzle]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[situation]]></category>
		<category><![CDATA[situation puzzle]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=809</guid>
		<description><![CDATA[What are situation puzzles? Situation puzzles are often referred to as lateral thinking puzzles or &#8220;yes/no&#8221; puzzles. Situation puzzles are usually played in a group, with one person hosting the puzzle and the others asking questions which can only be answered with a &#8220;yes&#8221; or &#8220;no&#8221; answer. Depending upon the settings and level of difficulty, other answers,]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://qrcode.kaywa.com/img.php?s=5&amp;d=market%3A%2F%2Fsearch%3Fq%3Dpname%3Acom.devicefms.android.situationpuzzle" alt="qrcode" /><br />
<strong>What are situation puzzles?</strong><br />
Situation puzzles are often referred to as <em>lateral thinking puzzles</em> or <em>&#8220;yes/no&#8221; puzzles</em>.<br />
Situation puzzles are usually played in a group, with one person hosting the puzzle and the others asking questions which can only be answered with a &#8220;yes&#8221; or &#8220;no&#8221; answer. Depending upon the settings and level of difficulty, <em>other answers, hints or simple explanations</em> of why the answer is yes or no, may be considered acceptable. The puzzle is solved when one of the players is able to recite the narrative the host had in mind, in particular explaining whatever aspect of the initial scenario was puzzling.</p>
<p>These puzzles are inexact and many puzzle statements have more than one possible fitting answer.<br />
<span id="more-809"></span><br />
<em><strong>The goal</strong></em> however is to find out the story as the host has it in mind.<br />
<em>Critical thinking and reading, logical thinking, as well as lateral thinking</em> may all be required to solve a situation puzzle. The term lateral thinking was coined by <em>Edward De Bono</em> to denote a creative problem-solving style that involves looking at the given situation from unexpected angles, and is typically necessary to the solution of situation puzzles. The term lateral thinking puzzle has been popularised for this type of puzzle by Paul Sloane who has written many books of such puzzles. This term is also used in the MindTrap series of board games, which contain a large number of situation puzzles.</p>
<p>Source: <a href="http://en.wikipedia.org/wiki/Situation_puzzle">Wikipedia</a></p>
<p style="text-align: justify;"><strong>This game in particular</strong></p>
<p style="text-align: center; font-size: large;"><strong>How to play Situation Puzzle</strong></p>
<p>The main idea behind this game is to find out what others think. A person has a situation in mind. Others ask him questions about that situation.<br />
He can answer only with <strong>YES, NO, IRRELEVANT</strong>. After some questions the asking persons found the solution. During the solving process a hint may be also provided, but it will costs more points than a ususal question.</p>
<ol>
<li style="text-align: justify;"> <strong>Solving situations</strong>Navigate to <strong>All situations</strong> screen. <em>Select</em> a situation. See it&#8217;s details and start asking questions.You can select from your old questions or create a new one.
<p>You can ask how many question do you want, but you will receive the answer when the situation creator respond.</p>
<p>Keep in mind that on the other end is also a person not a computer so give him time to answer your questions.</p>
<p>When do you think you know the solution put your description as a question, and if you are right the creator may mark your question as a solution and you will be rewarded with 100 points.</li>
<li style="text-align: justify;"> <strong>Creating situations</strong>Navigate to <strong>My Situations</strong> screen. Push the <strong>Create situation</strong> button, <em>add details</em> to the situations and <em>publish</em> it.Every field is mandatory and has a maximum characters length.
<p><strong>Tips</strong>: Use a clear, short name that a person can have a clue about the situation.</p>
<p>Try to create a description with as many details as the persons need but do not be too obvious.</p>
<p>Think of a hint that will help the persons understand better the situation.</p>
<p>When write the hint have in mind that it costs as 10 questions, so you must give a little help but not too much.</p>
<p>When answer to questins have in mind the solution you enter and keep a straight line.</p>
<p>When somebody ask a question that is the solution of your situations mark it as solution and do not answer with YES.<br />
Only when you as a creator mark a question as solution the other person receive its points.</li>
<li style="text-align: justify;"> <strong>Scoring</strong>Every question you ask costs <strong>1 point</strong>.<br />
Every time you want to see the hint costs <strong>10 points</strong>.<br />
When a situation is solved you will receive <strong>100 points</strong>.</p>
<p>Keep in mind that you lose points with every question and you will be rewarded only when the creator mark one of your question as a solution.</li>
</ol>
<p style="text-align: center; font-size: medium;"><strong>Have fun!</strong></p>
<p>Some screenshots:<br />
<a href="http://devicefms.ro/wp-content/uploads/2011/04/answer_screen.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/answer_screen-180x300.png" alt="" title="answer_screen" width="180" height="300" class="alignleft size-medium wp-image-817" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/ask-question.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/ask-question-180x300.png" alt="" title="ask question" width="180" height="300" class="alignleft size-medium wp-image-818" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/create-situation.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/create-situation-200x300.png" alt="" title="create situation" width="200" height="300" class="alignleft size-medium wp-image-819" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/main.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/main-180x300.png" alt="" title="main" width="180" height="300" class="alignleft size-medium wp-image-820" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/my_situations_list.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/my_situations_list-180x300.png" alt="" title="my_situations_list" width="180" height="300" class="alignleft size-medium wp-image-821" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/new_question.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/new_question-200x300.png" alt="" title="new_question" width="200" height="300" class="alignleft size-medium wp-image-822" /></a><a href="http://devicefms.ro/wp-content/uploads/2011/04/solve_situation.png"><img src="http://devicefms.ro/wp-content/uploads/2011/04/solve_situation-200x300.png" alt="" title="solve_situation" width="200" height="300" class="alignleft size-medium wp-image-824" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2011/04/situation-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Facebook integration</title>
		<link>http://devicefms.ro/2011/01/android-facebook-integration/</link>
		<comments>http://devicefms.ro/2011/01/android-facebook-integration/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 09:09:40 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Android development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[hash_key]]></category>
		<category><![CDATA[singlesignon]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=718</guid>
		<description><![CDATA[Steps for Facebook integration into your app Create your app on Facebook : http://www.facebook.com/developers/createapp.php Download Facebook SDK : http://developers.facebook.com/docs/guides/mobile Add Facebook SDK to your Android application Copy Application ID from Facebook Insert into your app Facebook controls as : LoginButton Insert extra code into your app /* &#160; &#160; &#160; &#60;strong&#62;public static final String APP_ID]]></description>
			<content:encoded><![CDATA[<p>Steps for Facebook integration into your app</p>
<ol>
<li>Create your app on Facebook : <a title="facebook create application" href="http://www.facebook.com/developers/createapp.php">http://www.facebook.com/developers/createapp.php</a></li>
<li><a title="facebook create application" href="http://www.facebook.com/developers/createapp.php"></a>Download Facebook SDK : <a href="http://developers.facebook.com/docs/guides/mobile">http://developers.facebook.com/docs/guides/mobile</a><br />
<span id="more-718"></span></li>
<li><a href="http://developers.facebook.com/docs/guides/mobile"></a>Add Facebook SDK to your Android application <a href="http://devicefms.ro/wp-content/uploads/2011/01/faceboob-sdk.jpg"><img class="aligncenter size-medium wp-image-720" title="faceboob-sdk" src="http://devicefms.ro/wp-content/uploads/2011/01/faceboob-sdk-245x300.jpg" alt="" width="245" height="300" /></a></li>
<li>Copy Application ID from Facebook<a href="http://devicefms.ro/wp-content/uploads/2011/01/facebook_application_id.jpg"><img class="aligncenter size-medium wp-image-721" title="facebook_application_id" src="http://devicefms.ro/wp-content/uploads/2011/01/facebook_application_id-300x182.jpg" alt="" width="300" height="182" /></a></li>
<li>Insert into your app Facebook controls as : LoginButton</li>
<li>Insert extra code into your app
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp; &nbsp; &lt;strong&gt;public static final String APP_ID = &quot;158312160885675&quot;;&lt;/strong&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="coMULTI">&nbsp; &nbsp; private LoginButton mLoginButton;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp; &nbsp; private Facebook mFacebook;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp; &nbsp; private AsyncFacebookRunner mAsyncRunner;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp; &nbsp; /** Called when the activity is first created. */</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; @Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onCreate<span class="br0">&#40;</span>Bundle savedInstanceState<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">super</span>.<span class="me1">onCreate</span><span class="br0">&#40;</span>savedInstanceState<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; setContentView<span class="br0">&#40;</span>R.<span class="me1">layout</span>.<span class="me1">main</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; mLoginButton = <span class="br0">&#40;</span>LoginButton<span class="br0">&#41;</span> findViewById<span class="br0">&#40;</span>R.<span class="me1">id</span>.<span class="me1">login</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;mFacebook = <span class="kw2">new</span> Facebook<span class="br0">&#40;</span>APP_ID<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;mAsyncRunner = <span class="kw2">new</span> AsyncFacebookRunner<span class="br0">&#40;</span>mFacebook<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; SessionStore.<span class="me1">restore</span><span class="br0">&#40;</span>mFacebook, <span class="kw2">this</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; SessionEvents.<span class="me1">addAuthListener</span><span class="br0">&#40;</span><span class="kw2">new</span> SampleAuthListener<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; SessionEvents.<span class="me1">addLogoutListener</span><span class="br0">&#40;</span><span class="kw2">new</span> SampleLogoutListener<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; mLoginButton.<span class="me1">init</span><span class="br0">&#40;</span><span class="kw2">this</span>, mFacebook<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &lt;strong&gt;@Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">protected</span> <span class="kw4">void</span> onActivityResult<span class="br0">&#40;</span><span class="kw4">int</span> requestCode, <span class="kw4">int</span> resultCode,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Intent data<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; mFacebook.<span class="me1">authorizeCallback</span><span class="br0">&#40;</span>requestCode, resultCode, data<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw2">class</span> SampleAuthListener <span class="kw2">implements</span> AuthListener <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onAuthSucceed<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.<span class="me1">makeText</span><span class="br0">&#40;</span>getBaseContext<span class="br0">&#40;</span><span class="br0">&#41;</span>, <span class="st0">&quot;AuthSucceed!&quot;</span>, Toast.<span class="me1">LENGTH_SHORT</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onAuthFail<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> error<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.<span class="me1">makeText</span><span class="br0">&#40;</span>getBaseContext<span class="br0">&#40;</span><span class="br0">&#41;</span>, <span class="st0">&quot;AuthFail : &quot;</span> + error, Toast.<span class="me1">LENGTH_SHORT</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw2">class</span> SampleLogoutListener <span class="kw2">implements</span> LogoutListener <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onLogoutBegin<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.<span class="me1">makeText</span><span class="br0">&#40;</span>getBaseContext<span class="br0">&#40;</span><span class="br0">&#41;</span>, <span class="st0">&quot;LogoutBegin&quot;</span>, Toast.<span class="me1">LENGTH_SHORT</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onLogoutFinish<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toast.<span class="me1">makeText</span><span class="br0">&#40;</span>getBaseContext<span class="br0">&#40;</span><span class="br0">&#41;</span>, <span class="st0">&quot;LogoutFinish&quot;</span>, Toast.<span class="me1">LENGTH_SHORT</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span>&lt;/strong&gt;</div>
</li>
</ol>
</div>
<p><strong> </strong></li>
<p><strong> </strong></p>
<p><strong></p>
<li>Generate hash key for singleSignOn
<pre>keytool -exportcert -alias [alias] -keystore [keystore] | openssl sha1 -binary | openssl enc -a -e</pre>
<p><strong>For Windows users : you must install Cygwin and run command in the cygwin shell or use a linux VM. The result from Windows command will not work</strong></li>
<li>Put your hash key on Facebook application page &#8211; mobile tab<br />
<a href="http://devicefms.ro/wp-content/uploads/2011/01/facebook_hash_key.jpg"><img class="aligncenter size-medium wp-image-722" title="facebook_hash_key" src="http://devicefms.ro/wp-content/uploads/2011/01/facebook_hash_key-300x182.jpg" alt="" width="300" height="182" /></a></li>
<li>Run your app</li>
<p></strong><strong> </strong></ol>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2011/01/android-facebook-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DRadio</title>
		<link>http://devicefms.ro/2010/11/dradio/</link>
		<comments>http://devicefms.ro/2010/11/dradio/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 16:32:37 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Europa FM]]></category>
		<category><![CDATA[Kiss FM]]></category>
		<category><![CDATA[Magic FM]]></category>
		<category><![CDATA[Radio]]></category>
		<category><![CDATA[radio guerrilla]]></category>
		<category><![CDATA[radio zu]]></category>
		<category><![CDATA[rock fm]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=646</guid>
		<description><![CDATA[Now you can listen Romanian radios on your Android device. Current version knows : Europa FM, Radio Guerrilla, Kiss FM, Rock FM, Magic FM, Radio ZU si posibilitatea de a adauga o adresa custom.]]></description>
			<content:encoded><![CDATA[<p><a href="market://search?q=pname:com.devicefms.android.dradio"><img class="alignleft" title="DRadio on Android Market" src="http://chart.apis.google.com/chart?cht=qr&amp;chs=150x150&amp;chl=market://search?q=pname:com.devicefms.android.dradio" alt="" width="150" height="150" /></a><br />
Now you can listen Romanian radios on your Android device.</p>
<p>Current version knows : Europa FM, Radio Guerrilla, Kiss FM, Rock FM, Magic FM, Radio ZU si posibilitatea de a adauga o adresa custom.<br />
<span id="more-646"></span><br />
<a href="http://devicefms.ro/wp-content/uploads/2010/11/ecran_radio.png"><img src="http://devicefms.ro/wp-content/uploads/2010/11/ecran_radio.png" alt="" title="ecran_radio" width="320" height="480" class="aligncenter size-full wp-image-650" /></a><br />
<a href="http://devicefms.ro/wp-content/uploads/2010/11/ecran_radio_kiss.png"><img src="http://devicefms.ro/wp-content/uploads/2010/11/ecran_radio_kiss.png" alt="" title="ecran_radio_kiss" width="320" height="480" class="aligncenter size-full wp-image-649" /></a><br />
<a href="http://devicefms.ro/wp-content/uploads/2010/11/ecran_pref.png"><img src="http://devicefms.ro/wp-content/uploads/2010/11/ecran_pref.png" alt="" title="ecran_pref" width="320" height="480" class="aligncenter size-full wp-image-648" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/11/dradio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Gestures</title>
		<link>http://devicefms.ro/2010/09/the-gestures/</link>
		<comments>http://devicefms.ro/2010/09/the-gestures/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 14:07:49 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[The Gestures]]></category>
		<category><![CDATA[alphabet]]></category>
		<category><![CDATA[cyrillic]]></category>
		<category><![CDATA[gesture]]></category>
		<category><![CDATA[latin]]></category>
		<category><![CDATA[numerals]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=504</guid>
		<description><![CDATA[With The Gestures you can learn and go deepen into gestures on your Android phone. After you learned Latin and Cyrillic alphabets and numerals you can create your custom levels. You can download new levels and play them. The score will be recorded as number of successful gesture performed. The time is also important so]]></description>
			<content:encoded><![CDATA[<p><a href="market://search?q=pname:com.devicefms.android.dgestures"><img class="alignleft" title="The Gestures on Android Market" src="http://chart.apis.google.com/chart?cht=qr&amp;chs=150x150&amp;chl=market://search?q=pname:com.devicefms.android.dgestures" alt="" width="150" height="150" /></a><br />
With The Gestures you can learn and go deepen into gestures on your Android phone. </p>
<p>After you learned Latin and Cyrillic alphabets and numerals you can create your custom levels.<br />
You can download new levels and play them. The score will be recorded as number of successful gesture performed. The time is also important so the faster the better.<br />
<span id="more-504"></span></p>
<p><a href="http://devicefms.ro/wp-content/uploads/2010/09/main.png"><img src="http://devicefms.ro/wp-content/uploads/2010/09/main.png" alt="" title="main" width="320" height="480" class="aligncenter size-full wp-image-506" /></a></p>
<p><a href="http://devicefms.ro/wp-content/uploads/2010/09/gestures.png"><img src="http://devicefms.ro/wp-content/uploads/2010/09/gestures.png" alt="" title="gestures" width="320" height="480" class="aligncenter size-full wp-image-505" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/09/the-gestures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La Vuelta – Tour of Spain</title>
		<link>http://devicefms.ro/2010/08/la-vuelta/</link>
		<comments>http://devicefms.ro/2010/08/la-vuelta/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 16:22:27 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[La Vuelta]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[spain]]></category>
		<category><![CDATA[stage]]></category>
		<category><![CDATA[tour]]></category>
		<category><![CDATA[vuelta]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=430</guid>
		<description><![CDATA[La Vuelta &#8211; Tour de Spain on Android With La Vuelta you can see Tour de Spain in detail directly on your Android device. see overall standings, stage results, stage details, teams riders. Not live during the race, but after every stages results will be updated via internet. Hope the size it has does not]]></description>
			<content:encoded><![CDATA[<p><a href="market://search?q=pname:com.devicefms.android.lavuelta"><img class="alignleft" title="La Vuelta Tour de Spain on Android Market" src="http://chart.apis.google.com/chart?cht=qr&amp;chs=150x150&amp;chl=market://search?q=pname:com.devicefms.android.lavuelta" alt="" width="150" height="150" /></a><br />
La Vuelta &#8211; Tour de Spain on Android</p>
<p>With <strong>La Vuelta</strong> you can see Tour de Spain in detail directly on your Android device.</p>
<ul>
<li>see overall standings,</li>
<li>stage results,</li>
<li>stage details,</li>
<li>teams</li>
<li>riders.</li>
</ul>
<p>Not live during the race, but after every stages results will be updated via internet.</p>
<p>Hope the size it has does not create problems. I embedded in the application the images about stages : map, profil and last km.</p>
<p>Please comment if you want more features.</p>
<p><span id="more-430"></span></p>
<div id="attachment_445" class="wp-caption aligncenter" style="width: 330px"><img src="http://devicefms.ro/wp-content/uploads/2010/08/vuelta_main1.png" alt="" title="vuelta_main" width="320" height="480" class="size-full wp-image-445" /><p class="wp-caption-text">La Vuelta Main screen</p></div>
<div id="attachment_431" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-431" title="stages" src="http://devicefms.ro/wp-content/uploads/2010/08/stages.png" alt="" width="320" height="480" /><p class="wp-caption-text">Stages map</p></div>
<div id="attachment_437" class="wp-caption aligncenter" style="width: 330px"><img src="http://devicefms.ro/wp-content/uploads/2010/08/stage_profil.png" alt="" title="stage_profil" width="320" height="480" class="size-full wp-image-437" /><p class="wp-caption-text">Stage profil</p></div>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/la-vuelta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EuropaFM</title>
		<link>http://devicefms.ro/2010/08/europafm/</link>
		<comments>http://devicefms.ro/2010/08/europafm/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 16:13:04 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Europa FM - Info Trafic]]></category>
		<category><![CDATA[europafm]]></category>
		<category><![CDATA[info traffic]]></category>
		<category><![CDATA[infotrafic]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=408</guid>
		<description><![CDATA[Main functions of EuropaFM Android application : listen to Europa FM Radio from online streaming servers receive via internet auto traffic information send via internet auto traffic information read Europa FM tweets read news from Europa FM via Twitter Version : 1.0 Release date : 30.08.2010]]></description>
			<content:encoded><![CDATA[<p><a href="market://search?q=pname:com.devicefms.android.europafm"><img class="alignleft" title="EuropaFM Info trafic on Android Market" src="http://chart.apis.google.com/chart?cht=qr&amp;chs=150x150&amp;chl=market://search?q=pname:com.devicefms.android.europafm" alt="" width="150" height="150" /></a><br />
Main functions of EuropaFM Android application :</p>
<ul>
<li>listen to Europa FM Radio from online streaming servers</li>
<li>receive via internet auto traffic information</li>
<li>send via internet auto traffic information</li>
<li>read Europa FM tweets</li>
<li>read news from Europa FM via Twitter</li>
</ul>
<p>Version : 1.0</p>
<p>Release date : 30.08.2010<br />
<span id="more-408"></span></p>
<div id="attachment_410" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-410" title="main" src="http://devicefms.ro/wp-content/uploads/2010/08/main.png" alt="" width="320" height="480" /><p class="wp-caption-text">Main screen</p></div>
<div id="attachment_411" class="wp-caption aligncenter" style="width: 332px"><img class="size-full wp-image-411" title="radio" src="http://devicefms.ro/wp-content/uploads/2010/08/radio.png" alt="" width="322" height="483" /><p class="wp-caption-text">Radio screen</p></div>
<div id="attachment_409" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-409" title="infotrafic" src="http://devicefms.ro/wp-content/uploads/2010/08/infotrafic.png" alt="" width="320" height="480" /><p class="wp-caption-text">Info Traffic screen</p></div>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/europafm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Admob with padding</title>
		<link>http://devicefms.ro/2010/08/admob-with-padding/</link>
		<comments>http://devicefms.ro/2010/08/admob-with-padding/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 07:14:20 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Android development]]></category>
		<category><![CDATA[admob]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[onFailedToReceiveAd]]></category>
		<category><![CDATA[padding]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=395</guid>
		<description><![CDATA[I just added AdMob to my Android app DRoute and it doesn&#8217;t work. I receive many calls to onFailedToReceiveAd event function @Override &#160; &#160; &#160; &#160; public void onFailedToReceiveAd&#40;AdView adView&#41; &#160; &#160; &#160; &#160; &#123; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Log.d&#40;&#34;DRoute&#34;, &#34;onFailedToReceiveAd&#34;&#41;; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; super.onFailedToReceiveAd&#40;adView&#41;; &#160;]]></description>
			<content:encoded><![CDATA[<p>I just added <strong>AdMob</strong> to my <strong>Android</strong> app <strong>DRoute</strong> and it doesn&#8217;t work. I receive many calls to <strong>onFailedToReceiveAd </strong>event function</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">@Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onFailedToReceiveAd<span class="br0">&#40;</span>AdView adView<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.<span class="me1">d</span><span class="br0">&#40;</span><span class="st0">&quot;DRoute&quot;</span>, <span class="st0">&quot;onFailedToReceiveAd&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">super</span>.<span class="me1">onFailedToReceiveAd</span><span class="br0">&#40;</span>adView<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>I dig into the problem, search on the internet and didn&#8217;t found a solution. This morning I&#8217;ve created step by step a fresh new app only to test AdMob publisher code and ID and it works fine on emulator with :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">AdManager.<span class="me1">setTestDevices</span><span class="br0">&#40;</span><span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a><span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="br0">&#123;</span>AdManager.<span class="me1">TEST_EMULATOR</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>After step by step testing I found out that the problem was with a padding value that I have in my surrounding <RelativeLayout><br />
<span id="more-395"></span><br />
<strong>Before (not working ) :</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;ScrollView</span> &nbsp;<span class="re0">xmlns:android</span>=<span class="st0">&quot;http://schemas.android.com/apk/res/android&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">xmlns:myapp</span>=<span class="st0">&quot;http://schemas.android.com/apk/res/com.android.example.testad&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:id</span>=<span class="st0">&quot;@+id/scrllvwNo2&quot;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span> </div>
</li>
<li class="li2">
<div class="de2"><span class="re0">android:layout_height</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:fillViewport</span>=<span class="st0">&quot;true&quot;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:background</span>=<span class="st0">&quot;#ffffff&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;RelativeLayout</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="re0">android:layout_height</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:background</span>=<span class="st0">&quot;#ffffff&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:padding</span>=<span class="st0">&quot;10dip&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="coMULTI">&lt;!&#8211; app layout &#8211;&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;com</span>.admob.android.ads.AdView</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:id</span>=<span class="st0">&quot;@+id/ad&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:layout_height</span>=<span class="st0">&quot;wrap_content&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:layout_alignParentBottom</span>=<span class="st0">&quot;true&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:backgroundColor</span>=<span class="st0">&quot;#FFFFFF&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:primaryTextColor</span>=<span class="st0">&quot;#000000&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:secondaryTextColor</span>=<span class="st0">&quot;#CCCCCC&quot;</span><span class="re2">/&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/RelativeLayout<span class="re2">&gt;</span></span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/ScrollView<span class="re2">&gt;</span></span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p><strong>After ( the solution ) :</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">&quot;1.0&quot;</span> <span class="re0">encoding</span>=<span class="st0">&quot;utf-8&quot;</span><span class="re2">?&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;ScrollView</span> &nbsp;<span class="re0">xmlns:android</span>=<span class="st0">&quot;http://schemas.android.com/apk/res/android&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">xmlns:myapp</span>=<span class="st0">&quot;http://schemas.android.com/apk/res/com.devicefms.android.droute&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:id</span>=<span class="st0">&quot;@+id/scrllvwNo2&quot;</span> </div>
</li>
<li class="li2">
<div class="de2"><span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:layout_height</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:fillViewport</span>=<span class="st0">&quot;true&quot;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="re0">android:background</span>=<span class="st0">&quot;#ffffff&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;LinearLayout</span> <span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="re0">android:layout_height</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:orientation</span>=<span class="st0">&quot;vertical&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;RelativeLayout</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re0">android:layout_height</span>=<span class="st0">&quot;wrap_content&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; <span class="re0">android:background</span>=<span class="st0">&quot;#ffffff&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="sc3"><span class="coMULTI">&lt;!&#8211; app layout &#8211;&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/RelativeLayout<span class="re2">&gt;</span></span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;com</span>.admob.android.ads.AdView</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:id</span>=<span class="st0">&quot;@+id/ad&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:layout_width</span>=<span class="st0">&quot;fill_parent&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">android:layout_height</span>=<span class="st0">&quot;wrap_content&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:backgroundColor</span>=<span class="st0">&quot;#FFFFFF&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:primaryTextColor</span>=<span class="st0">&quot;#000000&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">myapp:secondaryTextColor</span>=<span class="st0">&quot;#CCCCCC&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">/&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/LinearLayout<span class="re2">&gt;</span></span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/ScrollView<span class="re2">&gt;</span></span></span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/admob-with-padding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScrollView and fillViewport</title>
		<link>http://devicefms.ro/2010/08/scrollview-and-fillviewport/</link>
		<comments>http://devicefms.ro/2010/08/scrollview-and-fillviewport/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 15:33:08 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Android development]]></category>
		<category><![CDATA[fillViewport]]></category>
		<category><![CDATA[scrollview]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=372</guid>
		<description><![CDATA[Romain Guy write a little info about a ScrollView attribute that is missing  from documentation : android:fillViewport=”true” . It must be set to ScrollView and has the following efect : when set to true, this attribute causes the scroll view’s child to expand to the height of the ScrollView if needed. When the child is taller than the ScrollView, the attribute]]></description>
			<content:encoded><![CDATA[<p><strong>Romain Guy</strong> write a little info about a <strong>ScrollView</strong> attribute that is missing  from documentation : <strong>android:fillViewport=”true”</strong> .</p>
<p>It must be set to ScrollView and has the following efect : when set to true, this attribute causes the scroll view’s child to expand to the height of the <code>ScrollView</code> if needed. When the child is taller than the <code>ScrollView</code>, the attribute has no effect.</p>
<p>Source : <a href="http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/">http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/scrollview-and-fillviewport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handle Back button action</title>
		<link>http://devicefms.ro/2010/08/handle-back-button-action/</link>
		<comments>http://devicefms.ro/2010/08/handle-back-button-action/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 13:21:44 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Android development]]></category>
		<category><![CDATA[back button]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[moveTaskToBack]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=322</guid>
		<description><![CDATA[By default pressing Back button on any activity the Android sistem will close / destroy the activity ( OnDestroy method is called ) See : Activity Lifecycle. This can be a little annoying when you have some service that perform background work. You can handle the back button action like this : @Override &#160; &#160; &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>By default pressing <strong>Back button</strong> on any activity the <strong>Android</strong> sistem will <strong>close / destroy</strong> the activity ( OnDestroy method is called ) See : <a title="android activity lifecycle" href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle" target="_blank">Activity Lifecycle</a>.</p>
<p>This can be a little annoying when you have some service that perform background work.<br />
<span id="more-322"></span><br />
You can handle the back button action like this :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">@Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">boolean</span> onKeyDown<span class="br0">&#40;</span><span class="kw4">int</span> keyCode, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AKeyEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">KeyEvent</span></a> event<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>keyCode == <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AKeyEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">KeyEvent</span></a>.<span class="me1">KEYCODE_BACK</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showDialog<span class="br0">&#40;</span>DIALOG_CLOSE<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">return</span> <span class="kw2">true</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">return</span> <span class="kw2">super</span>.<span class="me1">onKeyDown</span><span class="br0">&#40;</span>keyCode, event<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>and let the user to decide what to do using an <strong>AlertDialog</strong> :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">@Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">protected</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADialog+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Dialog</span></a> onCreateDialog<span class="br0">&#40;</span><span class="kw4">int</span> id<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">switch</span> <span class="br0">&#40;</span>id<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">case</span> DIALOG_CLOSE :</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">final</span> AlertDialog.<span class="me1">Builder</span> closeWindowBuilder = <span class="kw2">new</span> AlertDialog.<span class="me1">Builder</span><span class="br0">&#40;</span><span class="kw2">this</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; closeWindowBuilder.<span class="me1">setMessage</span><span class="br0">&#40;</span><span class="kw2">this</span>.<span class="me1">getResources</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getString</span><span class="br0">&#40;</span>R.<span class="me1">string</span>.<span class="me1">alertCloseWindow</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span class="me1">setCancelable</span><span class="br0">&#40;</span><span class="kw2">false</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span class="me1">setPositiveButton</span><span class="br0">&#40;</span><span class="kw2">this</span>.<span class="me1">getResources</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getString</span><span class="br0">&#40;</span>R.<span class="me1">string</span>.<span class="me1">btnYes</span><span class="br0">&#41;</span>, <span class="kw2">new</span> DialogInterface.<span class="me1">OnClickListener</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">public</span> <span class="kw4">void</span> onClick<span class="br0">&#40;</span><span class="kw2">final</span> DialogInterface dialog, <span class="kw2">final</span> <span class="kw4">int</span> id<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;finish<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<span class="me1">setNegativeButton</span><span class="br0">&#40;</span><span class="kw2">this</span>.<span class="me1">getResources</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getString</span><span class="br0">&#40;</span>R.<span class="me1">string</span>.<span class="me1">btnNo</span><span class="br0">&#41;</span>, <span class="kw2">new</span> DialogInterface.<span class="me1">OnClickListener</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">public</span> <span class="kw4">void</span> onClick<span class="br0">&#40;</span><span class="kw2">final</span> DialogInterface dialog, <span class="kw2">final</span> <span class="kw4">int</span> id<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; moveTaskToBack<span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Move the task containing this activity to the back of the activity stack. The activity&#8217;s order within the task is unchanged.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">return</span> closeWindowBuilder.<span class="me1">create</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">return</span> <span class="kw2">null</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Starting with <strong>Api Level 5</strong> there it is a specific function in <strong>Activity</strong> class that can pe override :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">@Override</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> onBackPressed<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showDialog<span class="br0">&#40;</span>DIALOG_CLOSE<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">super</span>.<span class="me1">onBackPressed</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/handle-back-button-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install/Move to sd card on Froyo</title>
		<link>http://devicefms.ro/2010/08/installmove-to-sd-card-on-froyo/</link>
		<comments>http://devicefms.ro/2010/08/installmove-to-sd-card-on-froyo/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 11:21:10 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Android development]]></category>
		<category><![CDATA[froyo]]></category>
		<category><![CDATA[installLocation]]></category>
		<category><![CDATA[sd card]]></category>

		<guid isPermaLink="false">http://devicefms.ro/?p=316</guid>
		<description><![CDATA[On Froyo ( Android 2.2 ) the user have the option to move / install applications to sd card. This is good due to lack of space on phone memory. To enable this option at application level the developer should do some simple modifications. Open manifest file ( AndroidManifest.xml ). Add android:installLocation=&#8221;auto&#8221; as attributes to]]></description>
			<content:encoded><![CDATA[<p>On Froyo ( Android 2.2 ) the user have the option to move / install applications to sd card. This is good due to lack of space on phone memory.</p>
<p>To enable this option at application level the developer should do some simple modifications.</p>
<ol>
<li>Open manifest file ( <strong>AndroidManifest.xml</strong> ).</li>
<li>Add <strong>android:installLocation=&#8221;auto&#8221;</strong> as attributes to your root manifest element. Here you have 3 options :
<ul>
<li><code><strong>internalOnly</strong></code>: Install the application on internal storage only. This will result in storage errors if the device runs low on internal storage.</li>
<li><code><strong>preferExternal</strong></code>: The android system tries to install the application on external storage. If that is full, the application is installed on internal storage.</li>
<li><code><strong>auto</strong></code>: Let the Android system decide the best install location for the application. The default system policy is to install the application on internal storage first. If the system is running low on storage, the application is then installed on external storage.</li>
</ul>
</li>
<li>Change Project Build Target to <strong>Android 2.2</strong></li>
<li>Keep <strong>android:minSdkVersion</strong> as low as you want. This new option will be available only on devices running Froyo (2.2)</li>
</ol>
<p>References : <a href="http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html">http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://devicefms.ro/2010/08/installmove-to-sd-card-on-froyo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

