スポンサードリンク

新着記事
2012/01/23スピナー についてAndroid
2011/12/30レーティングバー/Form Stuff についてAndroid
2011/12/23トグルボタン/Form Stuff についてAndroid
2011/12/18ラジオボタン/Form Stuff についてAndroid
2011/12/05チェックボックス/Form Stuff についてAndroid
2011/11/22編集テキスト(入力ボックス)/Form Stuff についてAndroid
2011/11/15カスタムボタン/Form Stuff についてAndroid
2011/09/11Time Picker についてAndroid
2011/08/31Date Picker についてAndroid
2011/08/17List View についてAndroid

EclipseのADTプラグインをインストール

2011 年 4 月 28 日 木曜日  【 カテゴリー: Android



前回はSTEP2の「Android SDKのインストール」についてみました。

Android SDKをインストールするために必要なステップは次のようになっています。

  1. 開発用コンピュータを準備し、システム要件を確実に満たす
  2. SDKスターターパッケージをインストール
    (Windowsを使っているならば、初期セットアップを補助するインストーラをダウンロードできます。)
  3. EclipseのADTプラグインをインストール
    (Eclipseで開発する予定の場合)
  4. SDKのためのAndroidプラットフォームや他のコンポーネントを追加
  5. Android SDKの内容を詳しく確認(任意)。

今回はSTEP3の「EclipseのADTプラグインをインストール」についてみていきます。
Androidのインストールについては、Android開発者の為の公式サイト「Android developers」に詳しく書かれています。補足しながらみていきます。

Step 3. Installing the ADT Plugin for Eclipse

Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications. It extends the capabilites of Eclipse to let you quickly set up new Android projects, create an application UI, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application. In general, developing in Eclipse with ADT is a highly recommended approach and is the fastest way to get started with Android.

If you'd like to use ADT for developing Android applications, install it now. Read Installing the ADT Plugin for step-by-step installation instructions, then return here to continue the last step in setting up your Android SDK.

If you prefer to work in a different IDE, you do not need to install Eclipse or ADT, instead, you can directly use the SDK tools to build and debug your application. The Overview section of the developer guide outlines the major steps that you need to complete when developing in Eclipse or other IDEs.

[訳]

Androidは、Eclipse IDE用のAndroid Development Tools (ADT)というカスタムプラグインを提供します。それはAndroidアプリケーションを構築する上で、強力な統合開発環境となるように設計されています。そのプラグインはEclipseの機能を拡張します。新規Androidプロジェクトの作成、アプリケーションUIの作成、Android SDKを使ってのアプリケーションのデバッグ、そしてアプリケーションを配布するために署名(未署名)されたAPKsのエクスポートさえできるようになります。一般に、ADTによるEclipseで開発することは非常にお勧めのアプローチで、Androidを始める最も早い方法です。

Androidアプリケーションを開発するためにADTを使いたいならば、すぐにインストールしてください。そして段階的にインストールするため「Installing the ADT Plugin」のページを読んでください。それからここに戻ってAndroid SDKをセットアップする最後のステップを続けてください。

別のIDEで開発することを好むならば、EclipseやADTをインストールする必要はありません。その代わり、アプリケーションを構築したりデバッグするのに直接SDKツールを使うことができます。Eclipseや他のIDEで開発する時に、完成させるのに必要な主なステップについては「developer guide」ページに概要が書かれています。

この投稿の続きを読む »


Android SDKのインストール

2011 年 4 月 26 日 火曜日  【 カテゴリー: Android



前回はSTEP1のシステム要件に関わる「Androidアプリ開発の為のEclipseとJDKの準備」についてみました。

Android SDKをインストールするために必要なステップは次のようになっています。

  1. 開発用コンピュータを準備し、システム要件を確実に満たす
  2. SDKスターターパッケージをインストール
    (Windowsを使っているならば、初期セットアップを補助するインストーラをダウンロードできます。)
  3. EclipseのADTプラグインをインストール
    (Eclipseで開発する予定の場合)
  4. SDKのためのAndroidプラットフォームや他のコンポーネントを追加
  5. Android SDKの内容を詳しく確認(任意)。

今回はSTEP2の「SDKスターターパッケージをインストール」についてみていきます。
Androidのインストールについては、Android開発者の為の公式サイト「Android developers」に詳しく書かれています。補足しながらみていきます。

Step 2. Downloading the SDK Starter Package

The SDK starter package is not a full development environment—it includes only the core SDK Tools, which you can use to download the rest of the SDK components (such as the latest Android platform).If you haven't already, get the latest version of the SDK starter package from the SDK download page.

If you downloaded a .zip or .tgz package (instead of the SDK installer), unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform>.

If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).

Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from command line.

[訳]

SDKスターターパッケージはSDKのコア部分だけを含んでいるに過ぎず、それだけでは十分な開発環境とはいえません。SDKコンポーネントの残り(最新Androidプラットフォームなど)は、SDKスターターパッケージを使ってダウンロードすることができます。まだSDKを持っていないならば、SDKスターターパッケージの最新バージョンを「SDK download」ページから手に入れてください。

ziptgz拡張子のパッケージをダウンロードしたならば(SDKインストーラのかわりに)、コンピュータの安全な場所に解凍してください。デフォルトで、「android-sdk- + プラットフォーム名」という名前のディレクトリ内にSDKファイルが解凍されます。

システム上のSDKディレクトリの名前と場所を覚えておいてください。
ADTプラグインをセットアップしたり、コマンドラインからSDKツールを使うときなど、後でSDKディレクトリを参照する必要がでてきます

もしWindowsインストーラ(.exeファイル)をダウンロードしたならば、すぐに実行してください。適切なJava SE Development Kit (JDK)がインストールされているかチェックし(※必要ならばインストールします)、それからSDKツールをデフォルトの場所(※変更可能)にインストールします。

システム上のSDKディレクトリの名前と場所を覚えておいてください。ADTプラグインをセットアップしたり、コマンドラインからSDKツールを使うときなど、後でSDKディレクトリを参照する必要がでてきます。

この投稿の続きを読む »


Androidアプリ開発の為のEclipseとJDKの準備

2011 年 4 月 24 日 日曜日  【 カテゴリー: Android



前回はAndroid SDKのダウンロードについてみました。今回からAndroid SDKのインストールについてみていきます。

Android SDKをインストールするために必要なステップは次のようになっています。

  1. 開発用コンピュータを準備し、システム要件を確実に満たす
  2. SDKスターターパッケージをインストール
    (Windowsを使っているならば、初期セットアップを補助するインストーラをダウンロードできます。)
  3. EclipseのADTプラグインをインストール
    (Eclipseで開発する予定の場合)
  4. SDKのためのAndroidプラットフォームや他のコンポーネントを追加
  5. Android SDKの内容を詳しく確認(任意)。

今回はSTEP1のシステム要件を満たす準備をします。
Androidのインストールについては、Android開発者の為の公式サイト「Android developers」に詳しく書かれています。補足しながらみていきます。

Step 1. Preparing Your Development Computer

Before getting started with the Android SDK, take a moment to confirm that your development computer meets the System Requirements. In particular, you might need to install the JDK, if you don't have it already.

If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin—the recommended path if you are new to Android—make sure that you have a suitable version of Eclipse installed on your computer as described in the System Requirements document. If you need to install Eclipse, you can download it from this location:

http://www.eclipse.org/downloads/

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

[訳]

Android SDKを始める前に、少し時間と取って開発用コンピュータがシステム要件を満たしているか確認してください。特にJDKがない場合があるので、その時はJDKをインストールしてください。

Android Development Tools (ADT)プラグインを用いたEclipseでの開発を予定ならば(※Android初心者にお薦め)、System Requirements のドキュメントで記述されている適切なバージョンのEclipseがコンピュータにインストールされているか確認してください。もしEclipseのインストールが必要ならば、次の場所からダウンロードできます。

http://www.eclipse.org/downloads/

"Eclipse Classic"バージョンがお薦めですが、それでなければ、"Eclipse for JAVA"や"Eclipse for RCP"のバージョンもお薦めです。

この投稿の続きを読む »


Android SDKのダウンロード

2011 年 4 月 20 日 水曜日  【 カテゴリー: Android



前回はAndroid SDKのシステム要件についてみました。今回はAndroid SDKのダウンロードについてみていきます。

Androidのダウンロードについては、Android開発者の為の公式サイト「Android developers」に詳しく書かれています。補足しながらみていきます。

Android SDKのダウンロード(Download the Android SDK)

Welcome Developers! If you are new to the Android SDK, please read the steps below, for an overview of how to set up the SDK.
If you're already using the Android SDK, you should update to the latest tools or platform using the Android SDK and AVD Manager, rather than downloading a new SDK starter package. See Adding SDK Components.

[訳]
開発者様ようこそ!Android SDKに慣れていないならば、下記のステップを読んでください。SDKのセットアップの概要が書かれています。
既にAndroid SDKを使用しているなら、新しいSDK用スターターパッケージをダウンロードするよりも「Android SDK and AVD Manager」を利用して最新のツールやプラットフォームにアップデートするべきです。「Adding SDK Components」をみてください。

【補足】

「The Android SDK and AVD Manager」とは、開発環境にSDKコンポーネントをインストールやアップグレードする為に使うツールです。(by Launching the Android SDK and AVD Manager)

【2011-04-20時点の最新SDK】

Here's an overview of the steps you must follow to set up the Android SDK:

  1. Prepare your development computer and ensure it meets the system requirements.
  2. Install the SDK starter package from the table above. (If you're on Windows, download the installer for help with the initial setup.)
  3. Install the ADT Plugin for Eclipse (if you'll be developing in Eclipse).
  4. Add Android platforms and other components to your SDK.
  5. Explore the contents of the Android SDK (optional).
To get started, download the appropriate package from the table above, then read the guide to Installing the SDK.

[訳]
ここにAndroid SDKをセットアップするために必要なステップの概要があります。

  1. 開発用コンピュータを準備し、システム要件を確実に満たすようにしてください。
  2. 上記テーブルからSDKスターターパッケージをインストールしてください。
    (Windowsを使っているならば、初期セットアップを補助するインストーラをダウンロードできます。)
  3. EclipseのADTプラグインをインストールしてください。
    (Eclipseで開発する予定の場合)
  4. SDKのためのAndroidプラットフォームや他のコンポーネントを追加してください。
  5. Android SDKの内容を詳しく確認してください(任意)。

開始するために、上記テーブルから適切なパッケージをダウンロードしてください
それから「Installing the SDK」を読んでください。

2011-04-20時点のSDKの最新バージョンは「r10」です。ファイルは「Android developers > Download the Android SDK」からダウンロードできます。私はWindows開発なので、Windows版の推奨ファイル「installer_r10-windows.exe」をダウンロードしました。SDKのインストールについては「Installing the SDK」のページに詳しく書かれているので次回詳しくインストール方法についてみていきます。


Android SDKのシステム要件

2011 年 4 月 18 日 月曜日  【 カテゴリー: Android



今回からAndroid SDKでの開発環境を構築していきます。今回はAndroid SDKのシステム要件についてみていきます。

Androidのシステム要件については、Android開発者の為の公式サイト「Android developers」に詳しく書かれています。補足しながらみていきます。

システム要件(System Requirements)

下記にAndroid SDKと使ってAndroidアプリを開発する為のシステムとソフトウェイの要件を説明します。

サポートOS(Supported Operating Systems)
  • Windows XP (32bit), Vista (32 or 64bit), or Windows 7 (32 or 64bit)
  • Mac OS X 10.5.8 以上 (x86 のみ)
  • Linux (tested on Ubuntu Linux, Lucid Lynx)
    • GNU C Library (glibc) 2.7 以上が必要.
    • On Ubuntu Linux, version 8.04 以上が必要.
    • 64bit版では32bitアプリを動作させる必要があります。32bitアプリケーションの動作させる方法については、Ubuntu Linux installation notes.を参考にしてください。

主なOSであるWindows、Mac、Linuxでサポートされています。LinuxはUbuntu Dapper Drakeでテスト済みです。Mac OS Xについては、Intel版のしか対応していません。Linuxも64bit版ではそのままでは動作しないようでUbuntu Linux installation notesを参考にして設定が必要になります。

サポート開発環境(Supported Development Environments)

Eclipse IDE

  • Eclipse 3.5 (Galileo) 以上
    注意: Eclipse 3.4 (Ganymede)はもはやADTの最新バージョンには対応していません。
  • Eclipse JDT plugin
    ほとんどの Eclipse IDE packages に含まれています
  • Eclipseをインストールかアップデート
    必要があるならば、http://www.eclipse.org/downloads/からダウンロードできます。
    Eclipse packagesにはいくつかのタイプがありますが、それぞれのプラットフォームが利用できます。Androidアプリケーションを開発には、次のパッケージのうち1つをインストールすることをお薦めします。
    □ Eclipse IDE for Java Developers
    □ Eclipse Classic (versions 3.5.1以上)
    □ Eclipse IDE for Java EE Developers
  • JDK 5 or JDK 6
    JREだけでは十分ではありません。
  • Android Development Tools plugin (※推奨)
  • JavaのGNUコンパイラとは互換性がありません

Eclipseを使う場合の開発環境の条件です。
googleはADT(Android Development Tools )というEclipse用のプラグインを提供しています。2011-04-19時点のADTの最新バージョンはEclipse3.5以上でないと対応していません。
JDT(Java Development Tools)はJava開発ツールです。推奨されるEclipseのパッケージをインストールすれば含まれているので特に気にする必要はないでしょう。
JDKとは、Java言語でプログラミングを行なう際に必要な最低限のソフトウェアのセットです。JREはJavaで開発されたソフトを動作させる環境を提供するだけなので、JREだけではAndroidアプリ開発には十分ではありません。
wikipedia によるとGNU Compilerは、Javaソースコードをコンパイルし、Java仮想マシンのバイトコードまたはマシン語を出力します。しかしAndroidの仮想マシンは、GNU Compilerがコンパイルしてできたバイトコードを実行する「Java VM」ではなくAndroid独自の「Dalvik VM」でした。ですので互換性はありません。

他の開発環境またはIDE(Other development environments or IDEs)
  • JDK 5 or JDK 6
    JREだけでは十分ではありません。
  • Apache Ant 1.8以降
  • JavaのGNUコンパイラとは互換性がありません

Eclipseを使わなくても開発できます。その代わりApache Antが必要になります。
Apache Antについてwikipedia を引用します。

GNU make のJava版ともいえるものであり、オペレーティングシステム (OS) など特定の環境に依存しにくいビルドツールである。XML文書でビルド(ソフトウェア構築)のルールを記述することが特徴である。統合開発環境EclipseにはAntプラグインが標準で内蔵されている。元々 Apache Tomcat をビルドするために開発されたものである。

GNUコンパイラとはEclipse IDEによる開発と同様で互換性はありません。

【メモ】

Note: If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed above. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.

訳:
JDKが開発用コンピュータに既にインストールされているならば、どうかお手数ですが上記リストにある要件のバージョンであるか確認してください。特に、いくつかのLinuxには「JDK 1.4」か「Gnu Compiler for Java」が入っているかもしれませんが、両方ともAndroid開発では
サポートされてませんので注意してください。

ハードウェイア要件(Hardware requirements)
The Android SDK requires disk storage for all of the components that you choose to install. The table below provides a rough idea of the disk-space requirements to expect, based on the components that you plan to use.

訳:
Android SDKの選択したコンポーネントをインストールするにはディスク・ストレージが必要になります。下記テーブルには予想されるディスク必要容量が大まかにまとめられているので、コンポーネントを使うときは参考にしてください。

Note that the disk-space requirements above are in addition to those of the Eclipse IDE, JDK, or other prerequisite tools that you may need to install on your development computer.

訳:
上記の必要容量は、開発用パソコンにインストールする必要があるEclipse IDE, JDKや他の必須ツールとは別に加えられるので注意してください。

Pages: Prev 1 2 3 4 5 6 7 8 9 10 ...59 60 61 Next