<?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>Tech Blog &#187; android</title>
	<atom:link href="http://informationideas.com/news/category/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://informationideas.com/news</link>
	<description>Using technology to help your business</description>
	<lastBuildDate>Tue, 06 Dec 2011 06:39:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Android making https requests with SSL from GoDaddy &#8211; No peer certificate error</title>
		<link>http://informationideas.com/news/2011/11/29/android-making-https-requests-with-ssl-from-godaddy-no-peer-certificate-error/</link>
		<comments>http://informationideas.com/news/2011/11/29/android-making-https-requests-with-ssl-from-godaddy-no-peer-certificate-error/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 00:00:08 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/?p=201</guid>
		<description><![CDATA[Another hair pulling session that all ended well. Task: Make a secure call to a server using a httprequest and get the httpresponse for further processing. Android http request and response: HttpClient client = new DefaultHttpClient(); HttpGet req = new HttpGet("https://www.example.com"); HttpResponse res = client.execute(req); Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate Problem: The issue is that [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>Another hair pulling session that all ended well.</p>
<p><strong>Task:</strong></p>
<p>Make a secure call to a server using a httprequest and get the httpresponse for further processing.</p>
<p><strong>Android http request and response:</strong></p>
<blockquote>
<pre>HttpClient client = new DefaultHttpClient();
HttpGet req = new HttpGet("https://www.example.com");
HttpResponse res = client.execute(req);</pre>
</blockquote>
<p><strong>Error:</strong></p>
<p>javax.net.ssl.SSLPeerUnverifiedException: No peer certificate</p>
<p><strong>Problem:</strong></p>
<p>The issue is that cert from GoDaddy was installed but not installed completely. An Intermediate cert is required for the server/domain in order to have a fully installed cert.</p>
<p><strong>Reference:</strong></p>
<p><strong><a href="http://community.godaddy.com/help/5238">http://community.godaddy.com/help/5238</a><br />
</strong></p>
<div class="shr-publisher-201"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2011/11/29/android-making-https-requests-with-ssl-from-godaddy-no-peer-certificate-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Develop and Debug &#8211; Android On A G1</title>
		<link>http://informationideas.com/news/2009/01/14/develop-and-debug-android-on-a-g1/</link>
		<comments>http://informationideas.com/news/2009/01/14/develop-and-debug-android-on-a-g1/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 05:47:17 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/?p=71</guid>
		<description><![CDATA[Develop and Debug - Android. This is a great way to debug your Android app on a G1 or any Android driven device via USB.Â  It is a much better way to go than the emulator if you have the resources.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p><a href="http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware">Develop and Debug - Android</a>.</p>
<p>This is a great way to debug your Android app on a G1 or any Android driven device via USB.Â  It is a much better way to go than the emulator if you have the resources.</p>
<div class="shr-publisher-71"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2009/01/14/develop-and-debug-android-on-a-g1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Second Android phone, Agora, follows G1</title>
		<link>http://informationideas.com/news/2008/12/05/second-android-phone-agora-follows-g1/</link>
		<comments>http://informationideas.com/news/2008/12/05/second-android-phone-agora-follows-g1/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 18:19:47 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[agora]]></category>
		<category><![CDATA[g1]]></category>
		<category><![CDATA[kogan]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/?p=67</guid>
		<description><![CDATA[It has been less than two months after G1, the first Android phone, was launch that the second one is announced by Kogan.Â  It is the Agora, a phone looking more like a Blackberry than an iPhone.Â  The great thing about this new phone is that it is not locked.Â  However, it does not have [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>It has been less than two months after G1, the first Android phone, was launch that the second one is announced by Kogan.Â  It is the <a href="http://www.brighthand.com/default.asp?newsID=14660">Agora</a>, a phone looking more like a Blackberry than an iPhone.Â  The great thing about this new phone is that it is not locked.Â  However, it does not have as many features as the G1.</p>
<p>Here is what Howard Wong has to say about the Agora vs G1.</p>
<blockquote><p>This is more blackberry-ish in style, slimmer and so in a way its a bit more "humble" and makes you wanna compare it to a blackberry.. which sort of allows Agora to scale back on memory features (256 meg, 128 meg flash, no WIFI).Â  Also I think they were smarter about battery life by supplying a 1300mAh battery as opposed to G1's 1150mAh.. G1 most prolly uses more power anyway.Â  Clearly Agora's niche is to bridge mainstream PDA users to Android.. a very smart move because quite frankly, most people don't know or care about where mobile applications come from. I believe this phone to be a much more humbler/accessible stage to feature android apps.</p>
<p>Looking back, I think Tmobile should've released something like this and steared clear of IPhone envy.Â  One of the first things I said to myself when I first played with the G1 was, "I can't believe google allowed this to be the first phone."</p>
<p>I still think the 4 buttons should be electro-sensitive like the touchscreen.Â  For such mainstay controls, they deserve to be on par with the touchscreen.Â  At least with this new Agora phone I won't complain because interaction through the touchscreen seems more like a bonus whereas on the G1, it seems required.</p></blockquote>
<div class="shr-publisher-67"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/12/05/second-android-phone-agora-follows-g1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Android emulator working with Google Maps API Key</title>
		<link>http://informationideas.com/news/2008/11/06/getting-android-emulator-working-with-google-maps-api-key/</link>
		<comments>http://informationideas.com/news/2008/11/06/getting-android-emulator-working-with-google-maps-api-key/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 19:47:46 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[google maps api]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/?p=64</guid>
		<description><![CDATA[I was trying to get an Android app that uses Google Maps API to display a MapView running on the emulator.Â  It took quite a bit of hair pulling to finally get it working. First, I tried using a self-signed keystore instead of the the debug.keystore provided through the Android SDK.Â  I created my keystore [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><!-- End Shareaholic LikeButtonSetTop --><p>I was trying to get an Android app that uses Google Maps API to display a MapView running on the emulator.Â  It took quite a bit of hair pulling to finally get it working.</p>
<p>First, I tried using a self-signed keystore instead of the the debug.keystore provided through the Android SDK.Â  I created my keystore using keytool -genkey from JDK.Â  Then I switch the app from using the default, debug.keystore, to my-new-self-signed.keystore.Â  Using keytool -list, I got the MD5 of the certificate that is needed to obtain a Google Map API key.Â  Then the API key was put into the MapView android:apikey attribute.Â  When I brought up the app in the emulator, I got a blank map grid screen.Â  The reason I wanted to use the self-signed keystore instead of the debug keystore is so I don't have to obtain a new Map API key and change the code to reflect this upon releasing the app.</p>
<p>So, I decided to go with the debug.keystore and that worked fine.Â  Here is what I had to do.</p>
<ol>
<li>
<pre class="prettyprint">$ keytool -list -alias androiddebugkey -keystore &lt;path_to_debug_keystore&gt;.keystore -storepass android -keypass android</pre>
</li>
<li>Copy that MD5 and goto <a href="http://code.google.com/android/maps-api-signup.html">http://code.google.com/android/maps-api-signup.html</a></li>
<li>Signup for an API key</li>
<li>In my xml file that has the views for the activity, add
<pre class="prettyprint">&lt;com.google.android.maps.MapView
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:enabled="true"
 android:clickable="true"
 android:apiKey="example_Maps_ApiKey_String"
 /&gt;</pre>
</li>
<li>In the Manifest.xml file, add the permissions needed<br />
&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;<br />
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;</li>
<li>In the Manifest.xml file, add the maps library<br />
&lt;uses-library android:name="com.google.android.maps" /&gt;<br />
within the application tag</li>
<li>The entire Manifest.xml looks like this<br />
&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"<br />
package="com.informationideas.mapapp"<br />
android:versionCode="1"<br />
android:versionName="1.0.0"&gt;<br />
&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;<br />
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;<br />
&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;<br />
&lt;uses-library android:name="com.google.android.maps" /&gt;<br />
&lt;activity android:name=".ShowDesktop"<br />
android:label="@string/app_name"&gt;<br />
&lt;intent-filter&gt;<br />
&lt;action android:name="android.intent.action.MAIN" /&gt;<br />
&lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br />
&lt;/intent-filter&gt;<br />
&lt;/activity&gt;<br />
&lt;/application&gt;<br />
&lt;/manifest&gt;</li>
<li>The default activity file should look like this
<p>package com.informationideas.mapapp;<br />
import android.os.Bundle;<br />
import com.google.android.maps.MapActivity;</p>
<p>public class ShowDesktop extends MapActivity {</p>
<p>/** Called when the activity is first created. */<br />
@Override<br />
public void onCreate(Bundle savedInstanceState) {<br />
super.onCreate(savedInstanceState);<br />
setContentView(R.layout.main);</p>
<p>}</p>
<p>@Override<br />
protected boolean isRouteDisplayed() {<br />
// TODO Auto-generated method stub<br />
return false;<br />
}<br />
}</li>
</ol>
<p>Now off to building cool things with the map!</p>
<div class="shr-publisher-64"></div><!-- Start Shareaholic LikeButtonSetBottom --><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/11/06/getting-android-emulator-working-with-google-maps-api-key/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.314 seconds -->

