SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Titanium
Mobileを
使ってみた
  小澤昌樹
Titanium Mobileとは
• 「タイタニウム」と読むらしい。
• Appcelerator社のスマートフォン
  アプリケーションの開発環境。
• マルチプラットフォーム展開可能。
• JavaScriptで開発できる。
その前に必要なモノ

• OS:今回はWindows7
• JDK:1.6.0_33
• Android SDK:R18
• Git:1.7.9
    (↑あった方がいいけど、なくても動く)
JDK
http://www.oracle.com/technetwork/java/javase/downloads/
              jdk6-downloads-1637591.html




                                           これ
                                           ダウンロード
                                           (JDK6です。
                                             7では動きません。)
JDKをインストールしたら環境変数を
         変
• JAVA_HOME
  – スタート - コンピューター を右クリック。
  – [プロパティ] - [システムの詳細設定] - [環境変数]をクリック。
  – [システム環境変数]の[新規]をクリックして、次の内容を設定。
     変数名:JAVA_HOME
     変数値:JDKがインストールされたフォルダ
            (C:¥Program Files¥Java¥jdk1.6.0_33)
  – [OK]をクリック。
• Path
  – [システム環境変数]の[Path]を選択、[編集]をクリックして、[変数値]の先頭に
    以下を追記。
     変数値:%JAVA_HOME%¥bin;
  – [OK]をクリック。
Android SDK
http://developer.android.com/intl/ja/sdk/index.html




                                これ
                                ダウンロード
Andoid SDKをインストールしたら環
        境変数を変
• ANDROID_SDK
  – スタート - コンピューター を右クリック。
  – [プロパティ] - [システムの詳細設定] - [環境変数]をクリック。
  – [システム環境変数]の[新規]をクリックして、次の内容を設定。
     変数名:ANDROID_SDK
     変数値:Android SDKがインストールされたフォルダ
            (C:¥Android¥android-sdk)
  – [OK]をクリック。
• Path
  – [システム環境変数]の[Path]を選択、[編集]をクリックして、[変数値]の先頭に以
    下を追記。
     変数値: %ANDROID_SDK%¥tools;%ANDROID_SDK%¥platform-tools;
  – [OK]をクリック。
Andoid SDK Managerを設定
         をコピー
• adb.exeをコピー
  – Android SDKがインストールされたフォルダ(C:¥Android¥android-
    sdk)の下の
      ¥platform-tools¥adb.exe を ¥tools にコピー


                     を起動
• Android SDK Managerを起動
  – スタート - すべてのプログラム - Android SDK Tools - SDK Managerをクリック。
  – [Tools] - [Android SDK Platform-tools] にチェックを入れる。
  – [Android 2.2] - [SDK Platform]と[Google APIs] にチェックを入れる。
      (他のバージョンもインストールしてもよいが、2.2は必ず!)
  – [Install n packages]をクリック。
  – インストールされるまで待つ。
Titanium Studio
http://www.appcelerator.com/platform




     ここから
     ダウンロード
     (2.0.2.201205311912)
Titanium Studioをインストールしたら
• Desktop SDKを認 させる
  – http://builds.appcelerator.com.s3.amazonaws.com/RC/desktopsd
    k-1.2.0.RC6d-win32.zip をダウンロードして解凍。
  – 解凍してできたフォルダすべてを
    C:¥Users¥xxxx¥AppData¥Roaming¥Titaniumに上書き。


• Android SDKを設定する
  – デスクトップのアイコンをクリックして起動。
  – メニューの[Window] - [Preferences]をクリック。
  – 左ペインの[Aptana Studio] - [Titanium]をクリックして、次の内容を設定。
     Android SDK Home:Android SDKがインストールされたフォルダ
                        (C:¥Android¥android-sdk)
     Default Android SDK:Google APIs Android 2.2
  – [Appry]をクリックして、[OK]をクリック。
とりあえず、プロジェクト作る

           Titanium Mobile Project
    クリック   を選択



                          クリック



           プロジェクト名(Hello)を

           ID(com.hoge.hello)を




                            クリック
できあがったプロジェクト
さっそく、Webで表示してみる

 右クリック




         Mobile Web Preview in
           Browserをクリック
こんな画面




 タ 卲り え




 ※ちなみに、IEではエラーになって表示できないです…
エミュレーターでも表示してみる

  右クリック




          Android Emulatorをクリック
エミュレーターでも表示してみる




     待つ…
エミュレーターでも表示してみる




      待つ…
エミュレーターでも表示してみる




      待つ…
エミュレーターでも表示してみる




 動かない …orz
(気を取り直して)
プログラムはapp.jsに書きます


これ
             ここにプログラムを書く
いろいろやってみて…
• 結局、エミュレータで動作確認できなかったです
  – エミュレータの起動が遅いから?


• 開発環境を作るのが結構大変でした

• JavaScriptで作れるのは、うれしいです
  – JavaScriptでモバイルアプリが作れるなんて!簡単です!
  – これは、でも、プログラマ向け?


• でも、まだ発展途上かも
  – 今後とても期待できそうなツールです。
  – でも、実際にこれを使ってアプリを作るのはハードルが高いかも。
【参考】非公式 Titanium 掲示板
 http://ti.masuidrive.jp/




  ここから
  ダウンロード

Weitere ähnliche Inhalte

Andere mochten auch

Lat now and back then
Lat now and back thenLat now and back then
Lat now and back thendebbieyeong
 
Correcion del maldito problema .l. (2)
Correcion del maldito problema .l. (2)Correcion del maldito problema .l. (2)
Correcion del maldito problema .l. (2)Andrea Möyano
 
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...appario Pte Ltd
 
appario-Presentation with the Singapore Indian Chamber of Industry & Commerce
appario-Presentation with the Singapore Indian Chamber of Industry & Commerceappario-Presentation with the Singapore Indian Chamber of Industry & Commerce
appario-Presentation with the Singapore Indian Chamber of Industry & Commerceappario Pte Ltd
 
Beyond Pandas and Penguins presented by Joel Swaney and Peter Quale
Beyond Pandas and Penguins presented by Joel Swaney and Peter QualeBeyond Pandas and Penguins presented by Joel Swaney and Peter Quale
Beyond Pandas and Penguins presented by Joel Swaney and Peter QualeNina Hale, Inc.
 
Famous weight loss diets
Famous weight loss dietsFamous weight loss diets
Famous weight loss dietsizonca
 
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...debkumar_lahiri
 
Tech careers 2014 @ web xpress
Tech careers 2014 @ web xpressTech careers 2014 @ web xpress
Tech careers 2014 @ web xpressWebXpress.IN
 

Andere mochten auch (8)

Lat now and back then
Lat now and back thenLat now and back then
Lat now and back then
 
Correcion del maldito problema .l. (2)
Correcion del maldito problema .l. (2)Correcion del maldito problema .l. (2)
Correcion del maldito problema .l. (2)
 
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...
Talk with the Singaporean-German Chamber of Industry & Commerce in Singapore ...
 
appario-Presentation with the Singapore Indian Chamber of Industry & Commerce
appario-Presentation with the Singapore Indian Chamber of Industry & Commerceappario-Presentation with the Singapore Indian Chamber of Industry & Commerce
appario-Presentation with the Singapore Indian Chamber of Industry & Commerce
 
Beyond Pandas and Penguins presented by Joel Swaney and Peter Quale
Beyond Pandas and Penguins presented by Joel Swaney and Peter QualeBeyond Pandas and Penguins presented by Joel Swaney and Peter Quale
Beyond Pandas and Penguins presented by Joel Swaney and Peter Quale
 
Famous weight loss diets
Famous weight loss dietsFamous weight loss diets
Famous weight loss diets
 
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...
Chandogya Upanishad in Bengali (Bangla), Fourth Chapter-----Satyakaama and Ja...
 
Tech careers 2014 @ web xpress
Tech careers 2014 @ web xpressTech careers 2014 @ web xpress
Tech careers 2014 @ web xpress
 

Ähnlich wie Titanium

Code igniterでテスト駆動開発 資料作成中
Code igniterでテスト駆動開発 資料作成中Code igniterでテスト駆動開発 資料作成中
Code igniterでテスト駆動開発 資料作成中Takako Miyagawa
 
How to django at first
How to django at firstHow to django at first
How to django at firstMaito Kuwahara
 
Andoird版OpenCVのJavaサンプルを動かす
Andoird版OpenCVのJavaサンプルを動かすAndoird版OpenCVのJavaサンプルを動かす
Andoird版OpenCVのJavaサンプルを動かすshobomaru
 
Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.Yuki Higuchi
 
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編Masaki Takeda
 
Andriod開発環境の構築
Andriod開発環境の構築Andriod開発環境の構築
Andriod開発環境の構築Kimiyuki Yamauchi
 
SICE 2020 Rtm tutorial 2_online_en
SICE 2020 Rtm tutorial 2_online_enSICE 2020 Rtm tutorial 2_online_en
SICE 2020 Rtm tutorial 2_online_enopenrtm
 
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2近藤 繁延
 
Android カスタムROMの作り方
Android カスタムROMの作り方Android カスタムROMの作り方
Android カスタムROMの作り方Masahiro Hidaka
 
Chrome DevTools.next
Chrome DevTools.nextChrome DevTools.next
Chrome DevTools.nextyoshikawa_t
 
Cordovaコトハジメ( Html5fun×senchUG )
Cordovaコトハジメ( Html5fun×senchUG )Cordovaコトハジメ( Html5fun×senchUG )
Cordovaコトハジメ( Html5fun×senchUG )Masayuki Abe
 
20130817 Titanium勉強会(午前2)
20130817 Titanium勉強会(午前2)20130817 Titanium勉強会(午前2)
20130817 Titanium勉強会(午前2)Toshiro Yagi
 
13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejsTakayoshi Tanaka
 
Androidインストール
AndroidインストールAndroidインストール
Androidインストール康宏 髙田
 
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送Google Cloud Platform - Japan
 
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜Takaaki Tanaka
 
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)Shinya Nakajima
 
Microsoft Edge F12 開発者ツール
Microsoft Edge F12 開発者ツールMicrosoft Edge F12 開発者ツール
Microsoft Edge F12 開発者ツールYoshihisa Ozaki
 
The Twelve-Factor (A|M)pp with C#
The Twelve-Factor (A|M)pp with C#The Twelve-Factor (A|M)pp with C#
The Twelve-Factor (A|M)pp with C#Yuta Matsumura
 
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築について
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築についてMacでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築について
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築についてTomoaki Shimizu
 

Ähnlich wie Titanium (20)

Code igniterでテスト駆動開発 資料作成中
Code igniterでテスト駆動開発 資料作成中Code igniterでテスト駆動開発 資料作成中
Code igniterでテスト駆動開発 資料作成中
 
How to django at first
How to django at firstHow to django at first
How to django at first
 
Andoird版OpenCVのJavaサンプルを動かす
Andoird版OpenCVのJavaサンプルを動かすAndoird版OpenCVのJavaサンプルを動かす
Andoird版OpenCVのJavaサンプルを動かす
 
Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.
 
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編
モバイルアプリケーション開発体験ハンズオン ~実装からビルド・テスト・ベータテスト配布まで~ Android 編
 
Andriod開発環境の構築
Andriod開発環境の構築Andriod開発環境の構築
Andriod開発環境の構築
 
SICE 2020 Rtm tutorial 2_online_en
SICE 2020 Rtm tutorial 2_online_enSICE 2020 Rtm tutorial 2_online_en
SICE 2020 Rtm tutorial 2_online_en
 
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2
AITCシニア技術者勉強会 「今さら聞けないWebサイト開発」 vol2
 
Android カスタムROMの作り方
Android カスタムROMの作り方Android カスタムROMの作り方
Android カスタムROMの作り方
 
Chrome DevTools.next
Chrome DevTools.nextChrome DevTools.next
Chrome DevTools.next
 
Cordovaコトハジメ( Html5fun×senchUG )
Cordovaコトハジメ( Html5fun×senchUG )Cordovaコトハジメ( Html5fun×senchUG )
Cordovaコトハジメ( Html5fun×senchUG )
 
20130817 Titanium勉強会(午前2)
20130817 Titanium勉強会(午前2)20130817 Titanium勉強会(午前2)
20130817 Titanium勉強会(午前2)
 
13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs
 
Androidインストール
AndroidインストールAndroidインストール
Androidインストール
 
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送
[Cloud OnAir] アプリケーションにフォーカス!ビジネスに直結する開発の極意をご紹介します。(e-Learning) 2018年3月15日 放送
 
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜
AndroidーiOS開発比較〜iOSエンジニアから見たAndroidのアレコレ〜
 
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)
Visual Studio App Centerを公式サンプルアプリから学ぼうiOS(swift),Android(java)
 
Microsoft Edge F12 開発者ツール
Microsoft Edge F12 開発者ツールMicrosoft Edge F12 開発者ツール
Microsoft Edge F12 開発者ツール
 
The Twelve-Factor (A|M)pp with C#
The Twelve-Factor (A|M)pp with C#The Twelve-Factor (A|M)pp with C#
The Twelve-Factor (A|M)pp with C#
 
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築について
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築についてMacでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築について
Macでcocos2d-x 2.1.2を使用した、Androidアプリの開発環境構築について
 

Titanium