JavaScript ãã¼ã¹ã§ãiPhone/Android 両ãã©ãããã©ã¼ã å
±éã¢ããªãéçºã§ããã¨ãã Titanium Mobile ã®éçºç°å¢(Titanium Developer)ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ããã¡ã¢æ¸ãã«ãªãã¾ãã
Titanium Mobile 㯠Appcelerator 社(http://www.appcelerator.com/)ãéçºããã¢ãã¤ã«ããã¤ã¹åãã®ã½ããã¦ã§ã¢éçºç°å¢ã
@IT ã®ã»ãã«è¨äºãããã¾ãã®ã§ããã£ããããã¼ç»é²ãªã©ã«ã¤ãã¦ã¯ããã¡ããåç
§ããã ããã°ã¨æãã¾ãã
ãWebæè¡ã§ãã¤ãã£ãã¢ããªãä½ããTitaniumã
http://www.atmarkit.co.jp/fwcr/design/index/index_titanium.html
éçºç°å¢ã¯ Windows/Mac/Linux ããããã«ç¨æããã¦ãã(iPhone åãã®ã¢ããªãéçºããå ´å㯠Mac ã¨ãªãã¾ãã)ã
ä»å㯠Windows XP ã«ã¤ã³ã¹ãã¼ã«ããã®ã§ãAndroid åãã®ã¢ããªéçºç°å¢ã¨ãããã¨ã«ãªãã¾ãã
ãªããGetting Started ã¬ã¤ããã¿ãã¨ãWindows ã®ãµãã¼ã(ãã¹ããã)ç°å¢ã¯ Windows 7 ã®ã¿ã®ããã§ã(Windows 7 ã®ã¿ãµãã¼ãã¨ããã®ã¯åãã¦åºä¼ã£ãããã»ã»ã»)ã
ã§ãã¾ããç§ã¯ Windows 7 ç°å¢ã¯æã£ã¦ããªãã®ã§ãXP ã§ãã¨ããæãã
é°å²æ°çã«ã¯ Mac ã§ãã£ãã»ãããããããªæ°ããã(iPhone åããéçºã§ããã)ã
ã¡ãªã¿ã«ãTitanium ã¯å¥ã« Mobile åãã®ã¿ãã¨ããããã§ã¯ãªããããã
Titanium Developer Tool 以å¤ã« Java 㨠Android SDK ãå¿
è¦ã«ãªãã¾ãã
ã»Sun ã® JDK(1.6+)
ã»Android SDK (by Google)
âã¤ã³ã¹ãã¼ã«
ç§ã®ç°å¢ã¯ããã§ã« Java & Android SDK ãã¤ã³ã¹ãã¼ã«ããã¦ããã®ã§ãPATH ã®ä¿®æ£ã¨ãTitanium Developer ãã¤ã³ã¹ãã¼ã«ããã ãOKã§ãããä¸å¿ã
âäºå確èª
Java ã«é¢ãã¦ã¯ãæ®éã«ã¤ã³ã¹ãã¼ã«ã㦠JAVA_HOME ãè¨å®ãã¤ã¤ã%JAVA_HOME%\bin ã PATH ã«è¨å®ããã¦ããã°OKã®ããã§ããã³ãã³ãããã³ããã«ã¦
ãå®è¡ãã¦ãã¹ãéã£ã¦ãããã¨ã確èªããã°è¯ãã¨ããæãã
C:\path\to\dir> java -version
Android SDK ã«é¢ãã¦ã¯ã以å Android SDK ãã¤ã³ã¹ãã¼ã«ããã¨ãã«ãAndroid SDK ã®ãã£ã¬ã¯ããªã %ANDROID_HOME% ã¨ããã¨ãPATH ã« %ANDROID_HOME%tools ã追å ããã®ã§ãããä»åã追å 㧠%ANDROID_HOME%\platforms\android-4\tools ãè¨å®ãããã¨ã«ãªãã¾ãããGetting Start ããã¥ã¡ã³ãã«ããããAndroid SDK ã«é¢ããç°å¢ç¢ºèªã§ã¯
ãå®è¡ããããã«ãã¨ããã¾ãããããaapt ã³ãã³ã㯠%ANDROID_HOME%\platforms\android-4\tools ã«ãããã¨ãããã¨ã§ãã
C:\path\to\dir> aapt v
ã»ã»ã»
C:\path\to\dir> android list
ã»ã»ã»
ã§ãTitanium Developer ã¯ããã¦ã³ãã¼ããµã¤ããããã©ãããã©ã¼ã ã«å¯¾å¿ããã¤ã³ã¹ãã¼ã«ãã¡ã¤ã«(Windows 㯠Titanium Developer.msi)ããã¦ã³ãã¼ããã¦å®è¡ããã¤ã³ã¹ãã¼ã«å ãé¸ã¶ãããã§ããã
âãã£ããããã¼ç»é²
ç»åãªã©ç»é²ãå¿ãã¦ãã¾ã£ãã®ã§å²æã»ã»ã»
ã¡ã¼ã«ã¢ãã¬ã¹ããã¹ã¯ã¼ãããã¡ã¼ã¹ããã¼ã ããã¡ããªã¼ãã¼ã ãããããå¿ é ã
ãã¨ãå½ã¨ããTwitter ã¢ã«ã¦ã³ãã¨ãããªãã·ã§ã³ã¨ãªãã¾ãã
ãã¨ã¯ãã¢ã«ã¦ã³ãä½æå¾ããã¼ã«ã«ã® Android SDK ã®ãã£ã¬ã¯ããªãæå®ããå ´æãããã¾ãããã㯠Android SDK ã®ããããã£ã¬ã¯ããª(tools ã¨ã platform ãã£ã¬ã¯ããªãããå ´æ)ãæå®ãã¾ãã
âGetting Started ã§è¦ãããªãã£ãå 容
ã¾ããã¡ããã¨èªãã§ããªãã ãããããã¾ãããã
Android SDK ãæå®ããã¨ãTitanium Developer ã®ã¡ã¤ã³ã¦ã£ã³ãã¦ã®å³ä¸(Windows ã®ã¦ã£ã³ãã¦æ大åã»æå°åã»éãã)ã®ä¸ãããã«ãæ°ãã Mobile éçºç°å¢(?)ãå©ç¨ã§ãã¾ãçãªã¡ãã»ã¼ã¸ã表示ãããã®ã§ããããã¯ãªãã¯ãã¾ãã
ããããã£ã¦ãããªãã¨ãæ°ããããã¸ã§ã¯ããä½æããéã«ãProject type 㧠Mobile ãé¸æã§ãã¾ããã
ãã¨ãGetting Started ã«ã¯ãããã¸ã§ã¯ãä½ææã« Project type ã« Mobile ãé¸ã¶ã¨è¨è¿°ããã¦ãããã©(Desktop 以å¤ã«)é¸æè¢ããªããªãããªãã¦æããªãã Titanium Developer ãåèµ·åã¨ãããã®ã§ãAndroid SDK ã®å ´ææå®å¾ã« Titanium Developer ãåèµ·åããå¿ è¦ãããããããã¾ããã
âããã«ã¡ã¯ä¸ç
ãããªããã§ãã¾ãã¯ã¸ãã¼ãã¼ãã©ã¢ããªããã¨ãããã¨ã§ã
Titanium Developer ã®ãã¼ã«ãã¼(ã¨èªãã§è¯ãã®ã ããã)ã«ãç·ã®ï¼ãã¼ã¯ã¢ã¤ã³ã³ãããã®ã§ããããã¯ãªãã¯ãã¦ããã¸ã§ã¯ããä½æã
ä½ææã«å ¥åããå 容ã¯ä»¥ä¸ã
URLã®ã»ãã¯å¿ é ã¿ãããªã®ã§ãã¨ãããããã®ã¯ã¦ãªãã¤ã¢ãªã¼ãæå®ãã¦ã¿ã¾ããã
Project type: Mobile
Name: HelloTitanium
App Id: Java ã®ããã±ã¼ã¸ã½ã£ã½ãæååãé©å½ã«
Directory: é©å½ãªå ´æ
Company/Personal URL:http://d.hatena.ne.jp/k155e1/
Titanium SDK version: 1.4.0 (å¤æ´ãã)
Language Module: ãã¹ã¦Ã
Create Project ãã¿ã³ãæ¼ä¸ããã¨ãDirectory ã« Name ã§æå®ããæåå(ãããã)ã®ãã£ã¬ã¯ããªãä½æããããã®ä¸ã«ãã¡ã¤ã«ãããã¤ãä½ããã¾ãã
Resources ã«ã¯ app.js ã¨ãããã¡ã¤ã«ãããããããã¡ã¤ã³ã®ããã°ã©ã ã«ãªãããã§ãã
ãã§ãå®è¡ã
Titanium Developer ã«ã¦ã(ãã¼ã«ãã¼ã¨ã¡ã¤ã³ããã«ã®éã®ã©ã¤ã³)Test & Package ãé¸æããSDKãScreen ããããé¸æã㦠Launch ãã¿ã³ãæ¼ä¸ããã¨ã¢ããªã±ã¼ã·ã§ã³ãèµ·åããã¯ãã ã£ãã®ã§ããã»ã»ã»
âãã©ãã«ã·ã¥ã¼ãã£ã³ã°
ã¾ããäºå®éããããããããã¾ããã
Getting Started ãè±èªãªã®ã§(è¨ã訳)ããã¹ã¦ãèªãã§ããããã§ã¯ãªãã
ãã£ããã¨ã®çµæã ãã
ã¨ããæãã§ããã°ã4)ã§èµ·åãã Android ã¨ãã¥ã¬ã¼ã¿ä¸ã§ã¸ãã¼ãã¼ãã©ã¢ããªãèµ·åãã¾ããã¨ãã
1)%ANDROID_HOME% ã«ãã SDK Manager.exe ãå®è¡ã㦠Android SDK and AVD Manager ãèµ·å
2)å·¦ãã¤ã³ã«ã¦ Virtual Devices ãé¸æ
3)ã¡ã¤ã³ãã¤ã³ã«ã¦ titanium_5_QVGA(Google Inc.)ãé¸æ(â»Platform 㯠1.6 㧠API Level 㯠4)
4)Start ãã¿ã³ãæ¼ä¸ã㦠Android ã¨ãã¥ã¬ã¼ã¿ãèµ·å
â»âããã¾ã§ Android ã¨ãã¥ã¬ã¼ã¿å´ã®ä½æ¥
5)Titanium Developer ã® SDK 㧠1.6ãScreen 㧠QVGA ãé¸æã㦠Launch
Titanium Developer ä¸ã§ä»¥ä¸ã®ãã°ãã§ããã©ãèµ·åãã¾ãã
ãã®ããã㯠Android SDK ã®æ§æãããããã£ã¦ããªãã®ã§ãããã¾ããã
[ERROR] C:\path\to\android-sdk-windows\tools\apkbuilder.bat
âã¨ãã¥ã¬ã¼ã¿ä¸ã§èµ·åããã
ãããªæãâ
Getting Started ã§ã¯ãããããã¸ãã¼ãã¼ãã©ã®èª¬æãå§ã¾ãããã§ãããã¨ããããç°å¢æ§ç¯ã¨ããç¹ã§ã¯ããã¾ã§ã
ã¤ã¥ãã»ã»ã»ããªï¼
2010/12/22 追è¨ï¼
Android SDK Tools Revision 8 ã«ãã¼ã¸ã§ã³ã¢ãããããããã¾ãã·ãã¥ã¬ã¼ã¿ä¸ã§ããã°ã©ã ãåããªããªãã¾ããã
調ã¹ã¦ã¿ãã¨ãããabd.exe ã®ãã¹ãå¤ãã£ã¦ãã¾ã£ããããããã§ãã
%ANDROID_HOME%\platform-tools ã«ãã abd.exe ã %ANDROID_HOME%\tools ã«ã³ãã¼ãããã¨ã§ãç¡äºã«åä½ããããã«æ»ãã¾ããã
åèï¼http://jmblog.jp/archives/744