2012-05-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¬æ¥(2012å¹´5æ31æ¥)ããã£ã¦ãç¾å¨ãä¸è©±ã«ãªã£ã¦ããä¼ç¤¾ãé社ããææ¥ããå¥ã®ä¼ç¤¾ã«å ¥ç¤¾ãã¾ãã ä»ææ§ã«ä¼ããã¹ãä½ããæã¡åããã¦ã¯ããªãã®ã§ãããç§ã«è·ãç´¹ä»ãã¦ãããNæ°ãç¾è·ã®æ¹ã ã次è·ã®æ¹ã ã¸ã®ç§ä¿¡ã¨ããäºã§æ £ããªãçãå·ãã¾ããâ¦
ä¸æºå å§ãã« /path/to/hello-world/project/build.scala ã次ã®ããã«ä¿®æ£ããã // ..snip.. object AndroidBuild extends Build { lazy val main = Project ( "Hello World", file("."), settings = General.fullAndroidSettings ++ AndroidNdk.settingsâ¦
æ¯åãAlertDialog ãä½ãã®ã¯é¢åãªã®ã§ã次ã®ãããªãªãã¸ã§ã¯ããä½ã£ã¦ããã package com.github.cooldaemon.HelloWorld import _root_.android.content.Context import _root_.android.app.{Dialog, AlertDialog => AAlertDialog} import _root_.androâ¦
Scalaã§Androidã¢ããªä½ææãAsyncTaskã®å¯å¤é·å¼æ°ã¡ã½ããã使ããªããã¨ã¸ã®å¯¾çã¨ãµã³ãã« â Gist ã丸ãã¯ãªãScala ã¯ãå¯å¤é·å¼æ°ãæã¤ã¡ã½ãããä¸æ¸ãã§ããªãã®ã§ãå¯å¤é·å¼æ°ãä¸æ¸ãæ¸ã¿ã® /path/to/hello-world/src/main/java/com/github/cooâ¦
ãã°ãåºåããéããã°åºåä½ç½®ã®æ å ±ãä¸ç·ã«åºåããã package com.github.cooldaemon.HelloWorld import _root_.android.util.{Log => ALog} object Log { val TAG = "HelloWorld" def e(m: String) = printlog(ALog.e, m) def w(m: String) = printlogâ¦
ActionBar ã¯ä½¿ãããããã©ãã¿ã¼ã²ããã® API Level ãä½ãå ´åã«éå®ãã ActionBarSherlock ã Scala ãã使ãã sbt ããã¸ã§ã¯ãè¨å® ã¾ãã¯ä¾åããã©ã¤ãã©ãªãæå®ãããæºåç·¨ãåèã«ä½æãããã£ã¬ã¯ã㪠/path/to/hello-world ã®ç´ä¸ã« main.sbâ¦
Toast 表示ä¸ã« Toast ã表示ããã¨åé¡ãããããã*1ã®ã§ã次ã®ãããªã©ããã¼ãªãã¸ã§ã¯ããç¨æããã package ã¯ãæºåç·¨ã§ç¨æãããã®ã package com.github.cooldaemon.HelloWorld import _root_.android.content.Context import _root_.android.widâ¦
åå¿ã¨ããåã®å¼ãç¶ãçãªã¢ã¬ãMac OSX 10.7 ä¸ã§éçºããäºãåæã¨ããã sbt ã®æºå ãã®è¾ºããè¦ãªãã sbt-launch.jar ããã¦ã³ãã¼ããã/usr/local/bin é ä¸ã« sbt-launch-0.11.3.jar ã¨ããååã§ä¿åããã ãã®ã¾ã¾ã ã¨ä½¿ãé£ãã®ã§ãä¸è¨ã® Shâ¦