<?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>Knut-Olav blogger &#187; Android</title>
	<atom:link href="http://hovenko.no/blog/tag/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://hovenko.no/blog</link>
	<description>Alt om ingenting og litt i mellom</description>
	<lastBuildDate>Thu, 02 Sep 2010 20:49:57 +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>Ladekabel og datakabel for HTC Desire &#8211; Micro USB</title>
		<link>http://hovenko.no/blog/2010/07/24/ladekabel-og-datakabel-for-htc-desire-micro-usb/</link>
		<comments>http://hovenko.no/blog/2010/07/24/ladekabel-og-datakabel-for-htc-desire-micro-usb/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 13:02:28 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[feilsøking]]></category>
		<category><![CDATA[synkronisering]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=452</guid>
		<description><![CDATA[Jeg fant ut i dag noe jeg mistenkte for noen dager siden, at ladekabelen til HTC-telefoner som jeg kjøpte på Elkjøp ikke var en fullkommen Micro USB-datakabel, men bare en ladekabel. Det kom ikke noe opp i loggene og dmesg da jeg kobla telefonen til PC-en, ingen nye enheter ble detektert. Jeg bestilte så en [...]]]></description>
			<content:encoded><![CDATA[<p>Jeg fant ut i dag noe <a href="http://twitter.com/hovenko/status/19107164756">jeg mistenkte for noen dager siden</a>, at ladekabelen til HTC-telefoner som jeg kjøpte på Elkjøp ikke var en fullkommen Micro USB-datakabel, men bare en ladekabel. Det kom ikke noe opp i loggene og dmesg da jeg kobla telefonen til PC-en, ingen nye enheter ble detektert.</p>
<p>Jeg bestilte så en helt vanlig Micro USB-kabel på Komplett.no, henta den på Posten i dag og testa, og vips så dukka den opp på PC-en og telefonen ble satt i synkroniseringsmodus.</p>
<p>Fra dmesg:</p>
<pre><code>
[1668040.520065] usb 2-1: new high speed USB device using ehci_hcd and address 16
[1668040.683373] usb 2-1: configuration #1 chosen from 1 choice
[1668040.699678] scsi9 : SCSI emulation for USB Mass Storage devices
[1668040.700616] usb-storage: device found at 16
[1668040.700622] usb-storage: waiting for device to settle before scanning
[1668045.710103] usb-storage: device scan complete
[1668045.716922] scsi 9:0:0:0: Direct-Access     HTC      Android Phone    0100 PQ: 0 ANSI: 2
[1668045.755374] sd 9:0:0:0: [sdb] 7698432 512-byte hardware sectors: (3.94 GB/3.67 GiB)
[1668045.757120] sd 9:0:0:0: [sdb] Write Protect is off
[1668045.757128] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[1668045.757133] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[1668045.817134] sd 9:0:0:0: [sdb] 7698432 512-byte hardware sectors: (3.94 GB/3.67 GiB)
[1668045.818298] sd 9:0:0:0: [sdb] Write Protect is off
[1668045.818300] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[1668045.818302] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[1668045.818308]  sdb: sdb1
[1668046.067608] sd 9:0:0:0: [sdb] Attached SCSI removable disk
</code></pre>
<p>lsusb:</p>
<pre><code>
Bus 002 Device 023: ID 0bb4:0ffe High Tech Computer Corp.
</code></pre>
<p>Husk å aktivere debugging på telefonen hvis du skal koble til med Android SDK adb.</p>

<span class="slashdigglicious">
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F24%2Fladekabel-og-datakabel-for-htc-desire-micro-usb%2F&amp;title=Ladekabel+og+datakabel+for+HTC+Desire+%26%238211%3B+Micro+USB" title="Digg This Story">Digg this</a>
<a href="http://www.kudos.no/giKudos.php?tittel=Ladekabel+og+datakabel+for+HTC+Desire+%26%238211%3B+Micro+USB&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F24%2Fladekabel-og-datakabel-for-htc-desire-micro-usb%2F" title="Gi Kudos til denne saken">Gi kudos!</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://hovenko.no/blog/2010/07/24/ladekabel-og-datakabel-for-htc-desire-micro-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging Google Maps in Android applications &#8211; uses-library</title>
		<link>http://hovenko.no/blog/2010/07/20/debugging-google-maps-in-android-applications-uses-library/</link>
		<comments>http://hovenko.no/blog/2010/07/20/debugging-google-maps-in-android-applications-uses-library/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 21:17:11 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[English-posts]]></category>
		<category><![CDATA[Programmering]]></category>
		<category><![CDATA[debugging]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=445</guid>
		<description><![CDATA[If your application is failing with a ClassNotFoundException of the class com.google.android.maps.MapView, then the uses-library tag might be misplaced or missing from the application manifest XML. When adding Google Maps to your Android application, make sure that the &#60;uses -library&#62;-tag is inside the &#60;application&#62;-tag of the manifest XML. This might be obvious, but I got [...]]]></description>
			<content:encoded><![CDATA[<p>If your application is failing with a ClassNotFoundException of the class <strong>com.google.android.maps.MapView</strong>, then the uses-library tag might be misplaced or missing from the application manifest XML.</p>
<p>When adding Google Maps to your Android application, make sure that the &lt;uses -library&gt;-tag is inside the &lt;application&gt;-tag of the manifest XML. This might be obvious, but I got this wrong and it took me a long time to figure out the real reason for the error.</p>
<p><code><br />
&lt;uses -library android:name="com.google.android.maps" /&gt;<br />
</code></p>

<span class="slashdigglicious">
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F20%2Fdebugging-google-maps-in-android-applications-uses-library%2F&amp;title=Debugging+Google+Maps+in+Android+applications+%26%238211%3B+uses-library" title="Digg This Story">Digg this</a>
<a href="http://www.kudos.no/giKudos.php?tittel=Debugging+Google+Maps+in+Android+applications+%26%238211%3B+uses-library&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F20%2Fdebugging-google-maps-in-android-applications-uses-library%2F" title="Gi Kudos til denne saken">Gi kudos!</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://hovenko.no/blog/2010/07/20/debugging-google-maps-in-android-applications-uses-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synkronisere kontaktlista fra iPhone til Android uten iTunes</title>
		<link>http://hovenko.no/blog/2010/07/10/synkronisere-kontaktlista-fra-iphone-til-android/</link>
		<comments>http://hovenko.no/blog/2010/07/10/synkronisere-kontaktlista-fra-iphone-til-android/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 11:56:50 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[kontaktliste]]></category>
		<category><![CDATA[synkronisering]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=427</guid>
		<description><![CDATA[Jeg har nylig fått meg Android-telefonen HTC Desire, og trenger å kopiere over kontaktlista fra iPhone 3G til Desire. Det er mulig å kopiere over kontaktlista fra iPhone via iTunes, men ikke hvis man bare har PC-er med Linux-OS. Etter noen søk i Apple App Store fant jeg et program som heter Ubuntu One Contacts [...]]]></description>
			<content:encoded><![CDATA[<p>Jeg har nylig fått meg <a href="http://en.wikipedia.org/wiki/HTC_Desire">Android-telefonen HTC Desire</a>, og trenger å kopiere over kontaktlista fra <a href="http://en.wikipedia.org/wiki/IPhone_3G">iPhone 3G</a> til Desire. Det er mulig å <a href="http://www.willineedit.com/2009/11/how-to-transfer-contacts-from-your-iphone-to-your-new-android-phone/">kopiere over kontaktlista fra iPhone via iTunes</a>, men ikke hvis man bare har PC-er med Linux-OS.</p>
<p>Etter noen søk i Apple App Store fant jeg et program som heter <a href="http://itunes.apple.com/us/app/ubuntu-one-contacts/id365281620?mt=8">Ubuntu One Contacts som kan synkronisere kontaktlista på iPhone</a> opp mot <a href="http://one.ubuntu.com/">Ubuntu One</a>, en nettjeneste for å synkronisere filer mellom PC-er og dele filer og kataloger med andre.</p>
<p>Etter registrering på Ubuntu One, setter man opp <a href="https://one.ubuntu.com/phones/">innstillingene for mobiltelefon her</a>, hvor du får tildelt brukernavn og passord, som skal brukes i Ubuntu One Contacts på iPhone. Dette er ikke samme innlogging som på nettsiden, hvor du logger inn med e-postadresse og selvvalgt passord.</p>
<p>Etter installering av Ubuntu One Contacts, skriver du inn brukernavnet og passordet du ble tildelt. Serverinnstillingene skal allerede være utfyllt med <strong>http://syncml.one.ubuntu.com</strong>. Du mottar også e-post med instruksjoner underveis. Gå så tilbake til forsiden av applikasjonen og trykk &#8220;Sync Contacts&#8221;. Hvis synkroniseringen fullfører uten feil skal du kunne se kontaktene dine på <a href="https://one.ubuntu.com/contacts/">kontaktlista på Ubuntu One</a>.</p>
<p>Sånn, da var den vanskelige halvparten av jobben gjort, å få ut dataene fra iPhone.</p>
<p>I Android Market søker du etter <strong>funambol</strong> og  <a href="market://search?q=pname:com.funambol.androidsync" title="Funambol i Android Market">installerer Funambol Sync</a>. Denne setter du opp med samme innstillinger som Ubuntu One Contacts på iPhone. Hvis du ikke husker brukernavn og passord står det i e-posten du har fått fra Ubuntu One.</p>
<p>Whoala, kontaktene er synkronisert.</p>

<span class="slashdigglicious">
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F10%2Fsynkronisere-kontaktlista-fra-iphone-til-android%2F&amp;title=Synkronisere+kontaktlista+fra+iPhone+til+Android+uten+iTunes" title="Digg This Story">Digg this</a>
<a href="http://www.kudos.no/giKudos.php?tittel=Synkronisere+kontaktlista+fra+iPhone+til+Android+uten+iTunes&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F07%2F10%2Fsynkronisere-kontaktlista-fra-iphone-til-android%2F" title="Gi Kudos til denne saken">Gi kudos!</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://hovenko.no/blog/2010/07/10/synkronisere-kontaktlista-fra-iphone-til-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android OS &#8211; mer enn bare gratis</title>
		<link>http://hovenko.no/blog/2010/06/03/android-os-mer-enn-bare-gratis/</link>
		<comments>http://hovenko.no/blog/2010/06/03/android-os-mer-enn-bare-gratis/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:53:56 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[tablets]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=412</guid>
		<description><![CDATA[Terskelen for å lage applikasjoner som fungerer sømløst med operativsystemet og med andre applikasjoner over felles grensesnitt er et veldig viktig argument for å velge Android. Steve Guggenheimer i Microsoft tar frem &#8220;gratis&#8221; som argument for at mange hopper på Android-bølgen med tablets, tilsvarende da netbooks kom på markedet med Linux-operativsystemer, men Android har noe [...]]]></description>
			<content:encoded><![CDATA[<p>Terskelen for å lage applikasjoner som fungerer sømløst med operativsystemet og med andre applikasjoner over felles grensesnitt er et veldig viktig argument for å velge Android.</p>
<p>Steve Guggenheimer i Microsoft tar frem &#8220;gratis&#8221; som <a href="http://www.digi.no/843931/interessen-for-android-tablets-vil-gi-seg">argument for at mange hopper på Android-bølgen med tablets</a>, tilsvarende da netbooks kom på markedet med Linux-operativsystemer, men Android har noe som ikke Linux på netbooks hadde, og det er Market &#8211; tilgjengelighet.</p>

<span class="slashdigglicious">
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F06%2F03%2Fandroid-os-mer-enn-bare-gratis%2F&amp;title=Android+OS+%26%238211%3B+mer+enn+bare+gratis" title="Digg This Story">Digg this</a>
<a href="http://www.kudos.no/giKudos.php?tittel=Android+OS+%26%238211%3B+mer+enn+bare+gratis&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F06%2F03%2Fandroid-os-mer-enn-bare-gratis%2F" title="Gi Kudos til denne saken">Gi kudos!</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://hovenko.no/blog/2010/06/03/android-os-mer-enn-bare-gratis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging your Android application</title>
		<link>http://hovenko.no/blog/2010/01/09/debugging-your-android-application/</link>
		<comments>http://hovenko.no/blog/2010/01/09/debugging-your-android-application/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 16:43:12 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[English-posts]]></category>
		<category><![CDATA[Programmering]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[debugging]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=396</guid>
		<description><![CDATA[I am novice on Android application development, slowly starting to understand the architecture. I particularly like that communication between applications and data storage are resource centric. But anyway&#8230; If you have been developing mobile applications for Android you have most likely seen some exceptions in the Eclipse debugger that you don&#8217;t understand, maybe not the [...]]]></description>
			<content:encoded><![CDATA[<p>I am novice on <a href="http://developer.android.com/">Android application development</a>, slowly starting to understand the architecture. I particularly like that communication between applications and data storage are resource centric. But anyway&#8230;</p>
<p>If you have been developing mobile applications for Android you have most likely seen some exceptions in the Eclipse debugger that you don&#8217;t understand, maybe not the tiniest bit. This mostly has to do with lack of experience with the API combined with the strict way that Android sets up views and restricts which threads that are allowed to draw and control the views, along with other concurrency issues.</p>
<p>Starting up your application in the emulated Android environment is not the fastest thing to do, so how can you debug your applications in a little more snappier way? &#8211; In short, I really don&#8217;t know.</p>
<p>What I want is a sane error message with a stack trace of my application code, but since I can&#8217;t get that, I have to debug my application in other ways.</p>
<p><strong>Break points</strong><br />
By setting a breakpoint in your code on places where you think the bug might exist, you can step through your source code until the application fails.</p>
<p>The cons of this are that it is time consuming to do all the manual step by step operations, it&#8217;s a boring way of debugging and the exception message you get might not be understandable to you.</p>
<p><strong>Logging</strong><br />
The Android API provides a <a href="http://developer.android.com/reference/android/util/Log.html">Log class</a> that can be used to log messages and exceptions. It took me some time to figure out how to read the log messages, but the Android Eclipse plugin provides a LogCat view.</p>
<p>To show the LogCat view in Eclipse, you go to &#8220;Window&#8221;, &#8220;Show View&#8221;, &#8220;Other &#8230;&#8221;, expand the &#8220;Android&#8221; category and then open the &#8220;LogCat&#8221; view.</p>
<p>Example output from the LogCat view.<br />
<code>
<pre>
01-09 16:56:52.069: ERROR/Listings(1064): Failed to get trip listings
01-09 16:56:52.069: ERROR/Listings(1064): java.lang.RuntimeException: Example of exception logging
01-09 16:56:52.069: ERROR/Listings(1064):     at no.ut.trip.Listings$ProgressThread.run(Listings.java:112)
</pre>
<p></code></p>
<p>The example above shows an error message on the first line, the exception class and message on the second line, with the stack trace on the following lines. Might be helpful.</p>

<span class="slashdigglicious">
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F01%2F09%2Fdebugging-your-android-application%2F&amp;title=Debugging+your+Android+application" title="Digg This Story">Digg this</a>
<a href="http://www.kudos.no/giKudos.php?tittel=Debugging+your+Android+application&amp;url=http%3A%2F%2Fhovenko.no%2Fblog%2F2010%2F01%2F09%2Fdebugging-your-android-application%2F" title="Gi Kudos til denne saken">Gi kudos!</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://hovenko.no/blog/2010/01/09/debugging-your-android-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
