<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2009-06-25T05:23:00Z</created-at>
  <description></description>
  <id type="integer">2837</id>
  <name>Intro</name>
  <number type="integer">5</number>
  <person-id type="integer">2622</person-id>
  <text>= Installation

See [[Install]] page to find how to install nbadroid plugins into your IDE.

= Set up android platform

You need to add Android platform before your project can use it.
Android platform matches to a target ($ANDROID_SDK_HOME/tools/android
list target) and you can define it using its directory. There are
three targets in current SDK:
* platforms/android-1.1 - a target matching to older SDK1.1 platform
* platforms/android-1.5 - SKD1.5
* add-ons/google_apis-3 - SDK1.5 + Google Maps API

Add one or more of these by going to Tools-&gt;Java Platforms. 
# Select 'Google Android Open Handheld Platform' and go to next page of wizard
# Find an SDK directory and continue to last page of wizard
# Set desired name for the platform and choose of of the targets from this SDK as described above.


= Create project

Go to new project a there is a template for an Android project.

# Run project

You have to manually create an AVD (Android virtual device) that can be used to host your application or attach a physical device.

You can customize how the application is executed in project customizer (right-click on a project node and invoke 'Properties' action).
* In an automatic mode the IDE will try to find a suitable device where the application can be deployed
* In a manual mode you can select a preferred device and IDE will start it if needed and deploy to it
* Manual mode without any selection means that IDE will ask for a device before each run/debug. The same will happen if auomatic mode cannot decide how to run the application.

''TODO more details, images''
</text>
  <text-as-html>&lt;h1&gt;&lt;a name='Installation'&gt;&lt;/a&gt; Installation&lt;/h1&gt;
&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;p&gt;See &lt;a href='&lt;?url_for_page Install?&gt;' class='internal'&gt;Install&lt;/a&gt; page to find how to install nbadroid plugins into your IDE.

&lt;/p&gt;&lt;h1&gt;&lt;a name='Set_up_android_platform'&gt;&lt;/a&gt; Set up android platform&lt;/h1&gt;
&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;p&gt;You need to add Android platform before your project can use it.
Android platform matches to a target ($ANDROID_SDK_HOME/tools/android
list target) and you can define it using its directory. There are
three targets in current SDK:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; platforms/android-1.1 - a target matching to older SDK1.1 platform
&lt;/li&gt;&lt;li&gt; platforms/android-1.5 - SKD1.5
&lt;/li&gt;&lt;li&gt; add-ons/google_apis-3 - SDK1.5 + Google Maps API
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Add one or more of these by going to Tools-&amp;gt;Java Platforms. 
&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Select 'Google Android Open Handheld Platform' and go to next page of wizard
&lt;/li&gt;&lt;li&gt; Find an SDK directory and continue to last page of wizard
&lt;/li&gt;&lt;li&gt; Set desired name for the platform and choose of of the targets from this SDK as described above.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h1&gt;&lt;a name='Create_project'&gt;&lt;/a&gt; Create project&lt;/h1&gt;
&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;p&gt;Go to new project a there is a template for an Android project.

&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Run project
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
You have to manually create an AVD (Android virtual device) that can be used to host your application or attach a physical device.

&lt;/p&gt;&lt;p&gt;You can customize how the application is executed in project customizer (right-click on a project node and invoke 'Properties' action).
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; In an automatic mode the IDE will try to find a suitable device where the application can be deployed
&lt;/li&gt;&lt;li&gt; In a manual mode you can select a preferred device and IDE will start it if needed and deploy to it
&lt;/li&gt;&lt;li&gt; Manual mode without any selection means that IDE will ask for a device before each run/debug. The same will happen if auomatic mode cannot decide how to run the application.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;i&gt;TODO more details, images&lt;/i&gt;&lt;/p&gt;</text-as-html>
  <updated-at type="datetime">2009-07-22T21:26:35Z</updated-at>
  <wiki-id type="integer">1908</wiki-id>
</page>
