<?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>mgBlog &#187; Eclipse</title>
	<atom:link href="http://mgsimon.de/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://mgsimon.de</link>
	<description>Esc(ape), einfach ein anderes Blog über technische Spielerei ...</description>
	<lastBuildDate>Sun, 18 Dec 2011 08:52:23 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hello World Google App Engine</title>
		<link>http://mgsimon.de/2011/10/25/hello-world-google-app-engine/</link>
		<comments>http://mgsimon.de/2011/10/25/hello-world-google-app-engine/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:19:39 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Servlet]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=3132</guid>
		<description><![CDATA[Google App Engine ist eine Plattform zum Entwickeln und Hosten von Webanwendungen auf den Servern von Google. Dabei werden die Ressourcen in der Infrastruktur von Google dynamisch in Abh&#228;ngigkeit der Last zugewiesen. Ohne sich Gedanken um CPU, Bandbreite oder Speicher machen zu m&#252;ssen, werden laut Google bis zu 5 Millionen Seitenaufrufe pro Monat kostenlos und [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/intl/de-DE/appengine/" target="_blank">Google App Engine</a> ist eine Plattform zum Entwickeln und Hosten von Webanwendungen auf den Servern von Google.  Dabei werden die Ressourcen in der Infrastruktur von Google dynamisch in Abh&#228;ngigkeit der Last zugewiesen. Ohne sich Gedanken um CPU, Bandbreite oder Speicher machen zu m&#252;ssen, werden laut Google bis zu 5 Millionen Seitenaufrufe pro Monat kostenlos und dar&#252;ber hinaus zu <a href="http://code.google.com/intl/de-DE/appengine/docs/billing.html" target="_blank">wettbewerbsf&#228;higen Preisen</a> angeboten.<br />
<div id="attachment_3176" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineMozillaFirefox.png" alt="Hello World Google App Engine :: Mozilla Firefox" title="Hello World Google App Engine :: Mozilla Firefox" width="442" height="137" class="size-full wp-image-3176 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Mozilla Firefox</p></div> Die Anwendungen k&#246;nnen in einer Umgebung f&#252;r Phyton oder Java umgesetzt werden. </p>
<p>&#8220;Hello World&#8221; in der Google App Engine, ein erstes kleines Beispiel in Java. Ab in die Cloud, schnell, schneller, am schnellsten &#8230;</p>
<p><span id="more-3132"></span><div style="background-color: rgb(191, 228, 255); border:1px solid rgb(128, 201, 255); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/info.png" alt="Hinweis" title="Hinweis" width="24" height="24" style="margin: 4px 8px 0 0; float:left;"/>Das folgende Beispiel wurde unter Mac OS X 10.6.8 mit der Java Version 1.6.0_26, Eclipse EE 3.7.1 Indigo und Google Plugin f&#252;r Eclipse 2.4.1 durchgef&#252;hrt.</div><br />
<strong>Google App Engine Account</strong></p>
<p>F&#252;r die Verwendung der Google App Engine ist ein Google-Konto und die Anmeldung unter <a href="http://appengine.google.com" target="_blank">appengine.google.com</a> notwendig. </p>
<p>Einfach mit der E-Mail und dem Passwort anmelden und auf der folgenden Seite &#252;ber &#8220;Create Application&#8221; das eigene Konto durch eine Handynummer best&#228;tigen. Eine SMS mit einem Code zur Best&#228;tigung wird unmittelbar an die angegebene Nummer gesendet. Nach der Best&#228;tigung kann die erste Anwendung erstellt werden. </p>
<p>&#8220;Application Identifier&#8221;, &#8220;Application Title, &#8220;I accept these terms.&#8221; und die Anwendung kann &#252;ber &#8220;Create Application&#8221; erstellt werden.</p>
<p><div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" />Auf der Suche nach einem noch verf&#252;gbarem &#8220;Application Identifier&#8221; kann der Name des eigenen Google-Kontos verwendet werden, dieser sollten in der Regel f&#252;r das eigene Konto reserviert sein.</div> <div id="attachment_3155" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineDashboard.png" alt="Hello World Google App Engine :: Dashboard" title="Hello World Google App Engine :: Dashboard" width="442" height="276" class="size-full wp-image-3155 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Dashboard</p></div> <strong>Entwicklungsumgebung Eclipse</strong></p>
<p>Anwendungen f&#252;r die Google App Engine k&#246;nnen mit dem <a href="http://code.google.com/intl/de-DE/appengine/downloads.html#Google_App_Engine_SDK_for_Java" target="_blank">SDK f&#252;r Java</a> manuell oder mit etwas mehr Benutzerfreundlichkeit dem <a href="http://code.google.com/intl/de-DE/appengine/downloads.html#Download_the_Google_Plugin_for_Eclipse" target="_blank">Google Plugin</a> in der IDE Eclipse erstellt werden.</p>
<p><a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse herunterladen</a>, Archiv extrahieren, Eclipse starten und das Google Repository &#252;ber &#8220;Help / Install New Software&#8230; / Add&#8230;&#8221; mit folgenden Angaben hinzuf&#252;gen.</p>
<ul>
<li>Name: Google</li>
<li>Location: http://dl.google.com/eclipse/plugin/3.7</li>
</ul>
<p><div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" />Google stellt das Plugin f&#252;r mehrere Eclipse Versionen (Galileo, Helios, Indigo &#8230;) in verschiedene Repositories bereit. Die Adressen f&#252;r die jeweilige Version sind unter <a href="http://code.google.com/intl/de-DE/eclipse/docs/download.html" target="_blank">Google Plugin f&#252;r Eclipse</a> aufgelistet.</div> Anschlie&#223;end wird das Google Plugin f&#252;r Eclipse zur Installation angeboten.</p>
<p><div id="attachment_3180" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineInstallAvailableSoftware.png" alt="Hello World Google App Engine :: Install Available Software" title="Hello World Google App Engine :: Install Available Software" width="442" height="344" class="size-full wp-image-3180 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Install Available Software</p></div> Nach der Installation werden einige neue Funktionen in Eclipse durch das Google Plugin f&#252;r Eclipse angeboten.</p>
<div id="attachment_3198" class="wp-caption alignnone" style="width: 287px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineEclipsePlugin.png" alt="Hello World Google App Engine :: Eclipse Plugin" title="Hello World Google App Engine :: Eclipse Plugin" width="277" height="191" class="size-full wp-image-3198 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Eclipse Plugin</p></div>
<p><strong>Hello World</strong></p>
<p>Einfach &#252;ber &#8220;File / New / Project &#8230;&#8221; ein &#8220;Google / Web Application Project&#8221; ausw&#228;hlen und durch &#8220;Next >&#8221; mit folgenden Einstellungen &#252;ber &#8220;Finish&#8221; ein neues Projekt erstellen.</p>
<ul>
<li>Project name: HelloWorldGoogleAppEngine</li>
<li>Package: tld.sld.my.example</li>
<li>Use Google Web Toolkit abw&#228;hlen</li>
</ul>
<p><div id="attachment_3173" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineCreateWebApplicationProject.png" alt="Hello World Google App Engine :: Create Web Application Project" title="Hello World Google App Engine :: Create Web Application Project" width="442" height="590" class="size-full wp-image-3173 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Create Web Application Project</p></div> Die notwendige Verzeichnisstruktur und initiale Konfiguration wird mit dem folgendem Servlet durch das Plugin automatisch erstellt.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">tld.sld.my.example</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.http.*</span><span style="color: #339933;">;</span>
&nbsp;
@SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;serial&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWorldGoogleAppEngineServlet <span style="color: #000000; font-weight: bold;">extends</span> HttpServlet <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> doGet<span style="color: #009900;">&#40;</span>HttpServletRequest req, HttpServletResponse resp<span style="color: #009900;">&#41;</span>
			<span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
		resp.<span style="color: #006633;">setContentType</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;text/plain&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		resp.<span style="color: #006633;">getWriter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello, world&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Das erste Servlet &#8220;Hello World Google App Engine&#8221; ohne eine Zeile selbst geschrieben zu haben &#8230; ;)</p>
<p><strong>Test</strong></p>
<p>Die Entwicklungsumgebung bietet durch das Google Plugin f&#252;r Eclipse eine lokale Simulationsumgebung an. </p>
<p>Die Google App Engine Web Anwendung wird bei selektiertem Projekt &#252;ber &#8220;Run / Run As / Web Application&#8221; lokal gestartet und im Browser kann &#252;ber die URL http://localhost:8888/ die folgende Startseite geladen werden.<br />
<div id="attachment_3204" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineHelloAppEngine.png" alt="Hello World Google App Engine :: Hello App Engine" title="Hello World Google App Engine :: Hello App Engine" width="442" height="164" class="size-full wp-image-3204 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Hello App Engine</p></div> Der Quelltext der Startseite befindet sich in der Datei &#8220;/war/index.html&#8221;. Der erste Link &#8220;HelloWorldGoogleAppEngine&#8221; zeigt auf das zuvor erstellte Servlet.</p>
<p><div id="attachment_3176" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2011/10/HelloWorldGoogleAppEngineMozillaFirefox.png" alt="Hello World Google App Engine :: Mozilla Firefox" title="Hello World Google App Engine :: Mozilla Firefox" width="442" height="137" class="size-full wp-image-3176 stamp" /><p class="wp-caption-text">Hello World Google App Engine :: Mozilla Firefox</p></div> <strong>Ab in die Cloud &#8230;</strong></p>
<p>Damit das erste Beispiel im weltweiten Netz erreichbar ist, muss die Anwendung in die Cloud von Google publiziert werden. </p>
<p>In der Konfigurationsdatei appengine-web.xml unter &#8220;war/WEB-INF&#8221; die eigene zuvor erstellte Anwendungs-ID (myappid) eintragen.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;appengine-web-app</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://appengine.google.com/ns/1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;application<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>myappid<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/application<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">    By default, App Engine sends requests serially to a given web server.</span>
<span style="color: #808080; font-style: italic;">    To allow App Engine to send multiple requests in parallel specify:</span>
&nbsp;
<span style="color: #808080; font-style: italic;">      &lt;threadsafe&gt;true&lt;/threadsafe&gt;</span>
<span style="color: #808080; font-style: italic;">  --&gt;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- Configure java.util.logging --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;system-properties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;java.util.logging.config.file&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;WEB-INF/logging.properties&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/system-properties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/appengine-web-app<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Das Projekt kann &#252;ber das Kontextmen&#252; &#8220;Google / Deploy to App Engine&#8221; zur App Engine von Google &#252;bertragen werden.</p>
<p>Anschlie&#223;end kann auf die Anwendung &#252;ber http://myappid.appspot.com (myappid = zuvor erstellter Application Identifier) wie z.B. <a href="http://mgsimon.appspot.com" target="_blank">http://mgsimon.appspot.com</a> zugegriffen werden.</p>
<p>Fertig &#8230; erst einmal. ;)</p>
<p><strong>Weiter &#8230;</strong></p>
<ul>
<li><a href="http://code.google.com/intl/de-DE/appengine/" title="Google App Engine Projekt" target="_blank">Google App Engine Projekt</a></li>
<li><a href="http://code.google.com/intl/de-DE/appengine/docs/" title="Google App Engine Dokumentation" target="_blank">Google App Engine Dokumentation</a></li>
<li><a href="http://code.google.com/intl/de-DE/appengine/docs/java/javadoc/" title="Google App Engine Javadoc" target="_blank">Google App Engine Javadoc</a></li>
<li><a href="https://appengine.google.com/" title="Google App Engine Administration" target="_blank">Google App Engine Administration</a></li>
<li><a href="http://www.amazon.de/gp/product/B003DL3NT8/ref=as_li_ss_tl?ie=UTF8&#038;tag=mgs-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B003DL3NT8" title="Programming Google App Engine (Animal Guide)" target="_blank">Programming Google App Engine (Animal Guide)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2011/10/25/hello-world-google-app-engine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MOTODEV Studio for Android 64-bit</title>
		<link>http://mgsimon.de/2010/04/02/motodev-studio-for-android-64-bit/</link>
		<comments>http://mgsimon.de/2010/04/02/motodev-studio-for-android-64-bit/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 10:07:35 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[uup]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=2209</guid>
		<description><![CDATA[Die Entwicklungsumgebung f&#252;r Android besonders der Emulator ist unter Linux mit dem Workaround MOTODEV Studio for Android &#038; Ubuntu 64-Bit nicht wirklich schnell. Die aktuelle Version 1.2 wird in einer 64-bit Variante f&#252;r Linux zum Download unter MOTODEV Studio for Android v1.2 (64-bit) angeboten. Schneller, besser, stabiler &#8230; :-)]]></description>
			<content:encoded><![CDATA[<p>Die Entwicklungsumgebung f&#252;r Android besonders der Emulator ist unter Linux mit dem Workaround <a href="http://mgsimon.de/2010/01/23/motodev-studio-for-android-ubuntu-64-bit/">MOTODEV Studio for Android &#038; Ubuntu 64-Bit</a> nicht wirklich schnell. Die aktuelle Version 1.2 wird in einer 64-bit Variante f&#252;r Linux zum Download unter <a href="http://developer.motorola.com/docstools/motodevstudio/download/">MOTODEV Studio for Android v1.2 (64-bit)</a> angeboten. Schneller, besser, stabiler &#8230; :-)</p>
<div id="attachment_2215" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2010/04/MotoDevStudioAndroid64.png" alt="MOTODEV Studio for Android 64bit" title="MOTODEV Studio for Android 64bit" width="442" height="232" class="size-full wp-image-2215 stamp" /><p class="wp-caption-text">MOTODEV Studio for Android 64bit</p></div>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2010/04/02/motodev-studio-for-android-64-bit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MOTODEV Studio for Android &amp; Ubuntu 64-Bit</title>
		<link>http://mgsimon.de/2010/01/23/motodev-studio-for-android-ubuntu-64-bit/</link>
		<comments>http://mgsimon.de/2010/01/23/motodev-studio-for-android-ubuntu-64-bit/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 08:48:42 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[uup]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=2152</guid>
		<description><![CDATA[Die Entwicklungsumgebung MOTODEV Studio for Android bietet gegen&#252;ber der Erweiterung f&#252;r Eclipse von Google zus&#228;tzlich Code Snippets, Device Management, Market Publishing und einen Database Explorer. Wie im Blog Linux und Ich :: Android-SDK mit Bezug auf 64-bit Ubuntu und das Samsung Galaxy beschrieben funktioniert auch die Entwicklungsumgebung von Motorala unter Ubuntu 64-Bit nicht. MOTODEV Studio [...]]]></description>
			<content:encoded><![CDATA[<p>Die Entwicklungsumgebung <a href="http://developer.motorola.com/docstools/motodevstudio/download/">MOTODEV Studio for Android</a> bietet gegen&#252;ber der Erweiterung f&#252;r Eclipse von Google zus&#228;tzlich Code Snippets, Device Management, Market Publishing und einen Database Explorer.</p>
<div id="attachment_2155" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2010/01/MOTODEVStudioAndroid.png" alt="MOTODEV Studio for Android" title="MOTODEVStudioAndroid" width="442" height="225" class="size-full wp-image-2155 stamp" /><p class="wp-caption-text">MOTODEV Studio for Android</p></div>
<p>Wie im <a href="http://linuxundich.de/de/ubuntu/android-sdk-mit-bezug-auf-64-bit-ubuntu-und-das-samsung-galaxy/">Blog Linux und Ich :: Android-SDK mit Bezug auf 64-bit Ubuntu und das Samsung Galaxy</a> beschrieben funktioniert auch die Entwicklungsumgebung von Motorala unter Ubuntu 64-Bit nicht. </p>
<p>MOTODEV Studio for Android unter Ubuntu 64-Bit-Version &#8230;</p>
<p><span id="more-2152"></span>Damit die IDE auch unter der 64-Bit-Version funktioniert k&#246;nnte die Standard VM auf die 32-Bit Variante ge&#228;ndert werden &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-alternatives <span style="color: #660033;">--config</span> java</pre></div></div>

<p>&#8230; oder einfach die Entwicklungsumgebung mit folgendem Parameter gestartet werden.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>motodevstudio <span style="color: #660033;">-vm</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm<span style="color: #000000; font-weight: bold;">/</span>ia32-java-<span style="color: #000000;">6</span>-sun<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java</pre></div></div>

<div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" /><em>Warum die 64-Bit VM beibehalten?</em><br />
Ein &#8220;Suchen und Ersetzen&#8221; &#252;ber 300 Dateien in JEdit mit einem etwas komplexeren regul&#228;ren Ausdruck dauert mit der 32-Bit VM mehrere Minuten. Die OpenJDK 64-Bit Version ben&#246;tigt wenige Sekunden.</div>
<p><strong>Notizen</strong></p>
<p>Installation der 32-Bit virtual Machine.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ia32-sun-java6-bin</pre></div></div>

<p>Die installierten Varianten f&#252;r Java befinden sich unter /usr/lib/jvm/.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm
insgesamt <span style="color: #000000;">12</span>
... default-java -<span style="color: #000000; font-weight: bold;">&gt;</span> java-<span style="color: #000000;">6</span>-openjdk
... ia32-java-<span style="color: #000000;">6</span>-sun -<span style="color: #000000; font-weight: bold;">&gt;</span> ia32-java-<span style="color: #000000;">6</span>-sun-1.6.0.15
... ia32-java-<span style="color: #000000;">6</span>-sun-1.6.0.15
... java-1.6.0-openjdk -<span style="color: #000000; font-weight: bold;">&gt;</span> java-<span style="color: #000000;">6</span>-openjdk
... java-<span style="color: #000000;">6</span>-openjdk
... java-<span style="color: #000000;">6</span>-sun -<span style="color: #000000; font-weight: bold;">&gt;</span> java-<span style="color: #000000;">6</span>-sun-1.6.0.15
... java-<span style="color: #000000;">6</span>-sun-1.6.0.15</pre></div></div>

<p>Information der Standard VM anzeigen.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ java <span style="color: #660033;">-version</span>
java version <span style="color: #ff0000;">&quot;1.6.0_0&quot;</span>
OpenJDK Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>IcedTea6 1.6.1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>6b16-1.6.1-3ubuntu1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
OpenJDK <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">14.0</span>-b16, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2010/01/23/motodev-studio-for-android-ubuntu-64-bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Motorola Milestone und Dalvik Debug Monitor</title>
		<link>http://mgsimon.de/2009/12/23/motorola-milestone-und-dalvik-debug-monitor/</link>
		<comments>http://mgsimon.de/2009/12/23/motorola-milestone-und-dalvik-debug-monitor/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:10:51 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[uup]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[ddms]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=1898</guid>
		<description><![CDATA[Das erste Beispiel oder die erste Android Anwendung ist fertig und kann einfach im virtuellem Ger&#228;t &#8220;Android Virtual Device&#8221; gestartet werden. Aber wie sieht es mit einem echten Ger&#228;t aus? Man k&#246;nnte die Anwendung als .apk (Android Application Package) exportieren und auf das Device kopieren, installieren und starten oder einfach &#252;ber die Android Debug Bridge [...]]]></description>
			<content:encoded><![CDATA[<p>Das erste Beispiel oder die erste Android Anwendung ist fertig und kann einfach im virtuellem Ger&#228;t &#8220;Android Virtual Device&#8221; gestartet werden. </p>
<p>Aber wie sieht es mit einem echten Ger&#228;t aus? </p>
<p>Man k&#246;nnte die Anwendung als .apk (Android Application Package) exportieren und auf das Device kopieren, installieren und starten oder einfach &#252;ber die Android Debug Bridge direkt aus Eclipse heraus Anwendungen nicht nur starten sondern auch gleich debuggen.</p>
<div id="attachment_1911" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/DalvikDebugMonitorMotorolaMilestone.png" alt="Dalvik Debug Monitor :: Motorola Milestone" title="DalvikDebugMonitorMotorolaMilestone" width="442" height="251" class="size-full wp-image-1911 stamp" /><p class="wp-caption-text">Dalvik Debug Monitor :: Motorola Milestone</p></div>
<p>Android SDK, Eclipse und ein echtes Device, das <a href="http://www.motorola.com/Consumers/DE-DE/Consumer-Products-and-Services/Mobile-Phones/ci.Motorola-MILESTONE-DE-DE.alt">Milestone von Motorola</a> &#8230;</p>
<p><span id="more-1898"></span><div style="background-color: rgb(191, 228, 255); border:1px solid rgb(128, 201, 255); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/info.png" alt="Hinweis" title="Hinweis" width="24" height="24" style="margin: 4px 8px 0 0; float:left;"/>Das folgende Beispiel wurde unter Ubuntu Karmic Koala 9.10 und einer Entwicklungsumgebung f&#252;r Android durchgef&#252;hrt. Die Einrichtung einer Entwicklungsumgebung f&#252;r Android unter Linux ist im Artikel <a href="http://mgsimon.de/2009/12/19/hello-world-android-unter-linux/">Hello World Android unter Linux</a> beschrieben.</div></p>
<p><strong>Motorola Milestone</strong></p>
<p>Auf dem Android Device USB-Debugging aktivieren.</p>
<ul>
<li>Unter &#8220;Einstellungen / Anwendungen / Entwicklung&#8221; USB-Debugging aktivieren.</li>
</ul>
<p><strong>Linux</strong></p>
<p>In der Shell die Ger&#228;te ID ermitteln.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ lsusb</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Bus 001 Device 004: ID 22b8:41db Motorola PCS</pre></div></div>

<p>udev-Regel f&#252;r das Ger&#228;t erstellen.</p>
<ul>
<li>Folgende Zeile in einer udev-Regel Konfiguration eintragen.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;22b8&quot;, MODE=&quot;0666&quot;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">51</span>-android.rules</pre></div></div>

<ul>
<li>Lesende Zugriffsberechtigung auf die neue Regeldatei setzen.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> a+r <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">51</span>-android.rules</pre></div></div>

<ul>
<li>Die Debug Bridge (adb) sollte &#252;ber folgenden Aufruf das Ger&#228;t auflisten.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">&lt;</span>sdk<span style="color: #000000; font-weight: bold;">&gt;/</span>tools<span style="color: #000000; font-weight: bold;">/</span>adb devices</pre></div></div>

<p><strong>Dalvik Debug Monitor</strong></p>
<p>Erster Test mit dem Dalvik Debug Monitor (ddms).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">&lt;</span>sdk<span style="color: #000000; font-weight: bold;">&gt;/</span>tools<span style="color: #000000; font-weight: bold;">/</span>ddms</pre></div></div>

<div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" />Wird das Device nicht erkannt hilft ein Neustart der Android Debug Bridge. ($ &lt;sdk&gt;/adb kill-server)</div>
<p>Funktioniert die Debug Bridge k&#246;nnen Screenshots &#252;ber &#8220;Device / Screen capture&#8230;&#8221; erstellt werden.</p>
<div id="attachment_1913" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/MotorolaMilestoneStartBildschirm.png" alt="Motorola Milestone :: Startbildschirm" title="MotorolaMilestoneStartBildschirm" width="442" height="786" class="size-full wp-image-1913 stamp" /><p class="wp-caption-text">Motorola Milestone :: Startbildschirm</p></div>
<p>Was f&#252;r eine Aufl&#246;sung! :-)</p>
<p><strong>Eclipse</strong></p>
<p>In Eclipse die Anwendung auf dem externen Ger&#228;t zum debuggen starten.</p>
<ul>
<li>Anwendung in der Konfiguationsdatei AndroidManifest.xml unter &#8220;Application&#8221; &#8220;debugable&#8221; auf &#8220;true&#8221; setzen.</li>
<li>Kontextmen&#252; auf das Projekt und &#8220;Debug As / 1 Android Application&#8221; ausw&#228;hlen.</li>
</ul>
<div id="attachment_1921" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/EclipseDebugHelloWorldMotorolaMilstone.png" alt="Eclipse Debug - HelloWorld :: Motorola Milstone" title="EclipseDebugHelloWorldMotorolaMilstone" width="442" height="251" class="size-full wp-image-1921 stamp" /><p class="wp-caption-text">Eclipse Debug - HelloWorld :: Motorola Milstone</p></div>
<p><strong>Fertig</strong></p>
<p>Jetzt fehlt nur noch eine Idee f&#252;r eine sch&#246;ne Anwendung, aber vielleicht habe ich ja schon die eine oder andere &#8230; :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2009/12/23/motorola-milestone-und-dalvik-debug-monitor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hello World Android unter Linux</title>
		<link>http://mgsimon.de/2009/12/19/hello-world-android-unter-linux/</link>
		<comments>http://mgsimon.de/2009/12/19/hello-world-android-unter-linux/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 14:18:39 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[uup]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=1835</guid>
		<description><![CDATA[Android ist ein Betriebssystem sowie auch eine Software-Plattform f&#252;r mobile Ger&#228;te auf Basis der Linux-Kernel Version 2.6. Ein gro&#223;er Teil der Software ist frei und quelloffen. Ein Grund sich die M&#246;glichkeiten der Entwicklung unter Linux kurz anzusehen. :-) Ein erstes Android-Programm &#8220;Hello World&#8221; im Android Virtual Device unter Linux kurz notiert &#8230; Android SDK Das [...]]]></description>
			<content:encoded><![CDATA[<p>Android ist ein Betriebssystem sowie auch eine Software-Plattform f&#252;r mobile Ger&#228;te auf Basis der Linux-Kernel Version 2.6. Ein gro&#223;er Teil der Software ist frei und quelloffen. Ein Grund sich die M&#246;glichkeiten der Entwicklung unter Linux kurz anzusehen. :-)</p>
<div id="attachment_1863" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/EclipseHelloWorldAndroid.png" alt="Eclipse :: Hello World Android" title="EclipseHelloWorldAndroid" width="442" height="251" class="size-full wp-image-1863 stamp" /><p class="wp-caption-text">Eclipse :: Hello World Android</p></div>
<p>Ein erstes Android-Programm &#8220;Hello World&#8221;  im Android Virtual Device unter Linux kurz notiert &#8230;</p>
<p><span id="more-1835"></span><strong>Android SDK</strong></p>
<p>Das Android Software Development Kit herunterladen und installieren.</p>
<ul>
<li>Android SDK f&#252;r Linux (i386) von <a href="http://developer.android.com/intl/en/sdk/index.html">http://developer.android.com/intl/en/sdk/index.html</a> herunterladen.</li>
<li>Heruntergeladenes Archiv entpacken und Ausf&#252;hrungsrechte auf die Dateien unter Tools setzen.</li>
</ul>
<div style="background-color: rgb(191, 228, 255); border:1px solid rgb(128, 201, 255); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/info.png" alt="Hinweis" title="Hinweis" width="24" height="24" style="margin: 4px 8px 0 0; float:left;"/>Die Angabe &lt;sdk&gt; bezieht sich auf das Stammverzeichnis des entpackten Android SDKs (Bsp.: &#8230;/android-sdk-linux_86/).</div>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz android-sdk_r04-linux_86.tgz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">&lt;</span>sdk<span style="color: #000000; font-weight: bold;">&gt;/</span>
$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x tools<span style="color: #000000; font-weight: bold;">/*</span></pre></div></div>

<p><strong>Eclipse</strong></p>
<p>Die Entwicklungsumgebung Eclipse installieren.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> eclipse</pre></div></div>

<ul>
<li>Eclipse starten (Entwicklung / Eclipse).</li>
</ul>
<div style="background-color: rgb(191, 228, 255); border:1px solid rgb(128, 201, 255); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/info.png" alt="Hinweis" title="Hinweis" width="24" height="24" style="margin: 4px 8px 0 0; float:left;"/>Die Eclipse Version unter Ubuntu Karmic Koala 9.10 wird ohne Softwarequellen von Eclipse installiert. Referenzen zu notwendigen Paketen der Erweiterung ADT k&#246;nnen nicht aufgel&#246;st werden.<br />
L&#246;sung: Site von Eclipse hinzuf&#252;gen.</div>
<ul>
<li>In Eclipse unter Help &#8220;Install new Software &#8230;&#8221; selektieren.</li>
<li>Im Dialogfenster &#8220;Install&#8221; Button &#8220;Add&#8230;&#8221; ausw&#228;hlen.</li>
<li>Dialog &#8220;Add Site&#8221; mit folgenden Werten &#252;ber Button OK best&#228;tigen.
<ul>
<li>Name: Eclipse</li>
<li>Location: http://download.eclipse.org/releases/galileo/</li>
</ul>
</li>
</ul>
<p><strong>Android Development Tools (ADT)</strong></p>
<p>Die Erweiterung Android Development Tools (ADT) f&#252;r Eclipse installieren.</p>
<ul>
<li>In Eclipse unter Help &#8220;Install new Software &#8230;&#8221; selektieren.</li>
<li>Im Dialogfenster &#8220;Install&#8221; Button &#8220;Add&#8230;&#8221; ausw&#228;hlen.</li>
<li>Dialog &#8220;Add Site&#8221; mit folgenden Werten &#252;ber Button OK best&#228;tigen.
<ul>
<li>Name: Android Plugin</li>
<li>Location: https://dl-ssl.google.com/android/eclipse/</li>
</ul>
</li>
<li>Zur&#252;ck im Dialogfenster &#8220;Install&#8221; die Checkbox &#8220;Developer Tools&#8221; ausw&#228;hlen und &#252;ber &#8220;Next >&#8221; best&#228;tigen.</li>
<li>Dialogfenster &#8220;Install Details&#8221; &#252;ber &#8220;Next >&#8221; best&#228;tigen.</li>
<li>Die Lizenzbedingungen im Dialogfenster &#8220;Review Licenses&#8221; best&#228;tigen und &#252;ber &#8220;Finish&#8221; die Installation beenden.
</li>
<li>Sicherheitswarnung &#252;ber den Button OK best&#228;tigen.</li>
<li>Eclipse durch &#8220;Yes&#8221; neu starten.</li>
</ul>
<p><strong>Android Plattform</strong></p>
<p>Android Plattformen durch das &#8220;android tool&#8221; im Verzeichnis &lt;sdk&gt;/tools/ dem SDK hinzuf&#252;gen.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">&lt;</span>sdk<span style="color: #000000; font-weight: bold;">&gt;/</span>
$ tools<span style="color: #000000; font-weight: bold;">/</span>android</pre></div></div>

<div id="attachment_1871" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/AndroidSDKundAVDVerwaltung.png" alt="Android :: SDK und AVD Verwaltung" title="AndroidSDKundAVDVerwaltung" width="442" height="242" class="size-full wp-image-1871 stamp" /><p class="wp-caption-text">Android :: SDK und AVD Verwaltung</p></div>
<ul>
<li>&#8220;Force https://&#8230; sources to be fetched using http://&#8230;&#8221; unter &#8220;Settings&#8221; aktivieren und &#252;ber &#8220;Save &#038; Apply&#8221; speichern.</li>
<li>Gew&#252;nschte Plattformen und Pakete ausw&#228;hlen und &#252;ber &#8220;Install Selected&#8221; installieren.</li>
<li>Lizenzbedingungen best&#228;tigen und Installation &#252;ber &#8220;Install Accepted&#8221; starten.</li>
<li>Die Best&#228;tigung der Installation zus&#228;tzlicher SDK Komponenten durch &#8220;Close&#8221; beenden und das &#8220;android tool&#8221; Fenster schlie&#223;en.</li>
</ul>
<p><strong>Eclipse und Android SDK</strong></p>
<p>Das Android SDK Verzeichnis in Eclipse einstellen.</p>
<ul>
<li>In Eclipse unter &#8220;Window&#8221; &#8220;Preferences&#8221; ausw&#228;hlen.</li>
<li>Im Konfigurationsdialog &#8220;Preferences&#8221; unter &#8220;Android / SDK Location&#8221; das Android SDK Verzeichnis eintragen und &#252;ber OK best&#228;tigen.</li>
</ul>
<p><strong>Android Virtual Device (AVD)</strong></p>
<p>Android Virtual Device (AVD) mit dem Tool &#8220;android&#8221; erzeugen.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">&lt;</span>sdk<span style="color: #000000; font-weight: bold;">&gt;/</span>
$ tools<span style="color: #000000; font-weight: bold;">/</span>android create avd <span style="color: #660033;">--target</span> <span style="color: #000000;">2</span> <span style="color: #660033;">--name</span> my_avd</pre></div></div>

<p><strong>Hello World Android</strong></p>
<p>In Eclipse ein neues Projekt &#8220;Hello World&#8221; erstellen.</p>
<ul>
<li>In Eclipse &#8220;File / New / Project&#8221; ausw&#228;hlen.</li>
<li>Im Dialogfenster &#8220;New Project&#8221; ein Android Projekt unter &#8220;Android / Android Project&#8221; ausw&#228;hlen und &#252;ber &#8220;Next >&#8221; die Erstellung starten.</li>
<li>Das Projekt mit folgenden Werten &#252;ber &#8220;Finish&#8221; erzeugen.
<ul>
<li>Project name: HelloWorld</li>
<li>Application name: Hello, World</li>
<li>Package name: tld.meinedom&#228;ne.android.example.helloworld</li>
<li>Create Activity: HelloWorld</li>
<li>Min SDK Version: 2</li>
</ul>
</li>
<li>Die Klasse HelloWorld.java im Package Explorer unter src/Package name/HelloWorld.java um folgenden Quelltext erg&#228;nzen.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">de.mgsimon.android.example.helloworld</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.app.Activity</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.os.Bundle</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">android.widget.TextView</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWorld <span style="color: #000000; font-weight: bold;">extends</span> Activity <span style="color: #009900;">&#123;</span>
   <span style="color: #008000; font-style: italic; font-weight: bold;">/** Called when the activity is first created. */</span>
   @Override
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       TextView tv <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TextView<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       tv.<span style="color: #006633;">setText</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello World&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       setContentView<span style="color: #009900;">&#40;</span>tv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<ul>
<li>Programm &#8220;HelloWorld&#8221; &#252;ber &#8220;Run / Run&#8221; starten.</li>
<li>&#8220;Android Application&#8221; ausw&#228;hlen und durch Ok ausf&#252;hren.</li>
</ul>
<div id="attachment_1864" class="wp-caption alignnone" style="width: 452px"><img src="http://mgsimon.de/wp-content/uploads/2009/12/AndroidVirtualDeviceHelloWorldAndroid.png" alt="Android Virtual Device (AVD) :: Hello World Android" title="AndroidVirtualDeviceHelloWorldAndroid" width="442" height="359" class="size-full wp-image-1864 stamp" /><p class="wp-caption-text">Android Virtual Device (AVD) :: Hello World Android</p></div>
<p><strong>Fertig</strong></p>
<p>Im Android Virtual Device wird die erste Anwendung &#8220;HelloWorld&#8221; gestart.</p>
<p>Weitere Informationen &#252;ber das Android SDK sind auf den Seiten von <a href="http://www.android.com/index.html">android.com</a> unter Developers. Viel Spasssss &#8230; :)</p>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2009/12/19/hello-world-android-unter-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

