2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
æ¦è¦ Androidã¢ããªå ã§ä¾å¤ããã£ããããã¨ãã®ãã°ãGoogleAppEngineã«ããã¦ã¡ã¼ã«ã§ç¥ããã¾ãã ã¤ãã§ãªãã§ä¾å¤ã ããããªãã¦æ®éã®ã¡ãã»ã¼ã¸ãéä¿¡ã§ããããã«ãã¦ã¿ã¾ããã ãã¦ã³ãã¼ã Android ã¡ãã»ã¼ã¸éä¿¡æ© http://bit.ly/5cPFJc GAE/Jâ¦
å¤æ´ç¹ ãã°å ±åæ©è½ãã¤ãã¾ããã åé¡å ±åæ©è½ãã¤ãã¾ããã è±èªè¡¨è¨ã«å¯¾å¿ãã¾ããã ã¨ã©ã¼ãåããã¨ãã«ç§ã«ã¡ã¼ã«ãå±ãã¾ãã å人ãç¹å®ã§ãããããªæ å ±ãåå¾ãã¦ãã¾ããã å質åä¸ã«ãååãã ããã ãã¦ã³ãã¼ã ã«ãã´ãª [ãã¼ã±ãã] -â¦
å¤æ´ç¹ ãã°å ±åæ©è½ãã¤ãã¾ããã ã¨ã©ã¼ãåããã¨ãã«ç§ã«ã¡ã¼ã«ãå±ãã¾ãã å人ãç¹å®ã§ãããããªæ å ±ãåå¾ãã¦ãã¾ããã å質åä¸ã«ãååãã ããã ãã¦ã³ãã¼ã ã«ãã´ãª [ãã¼ã±ãã] -> [ã¢ããªã±ã¼ã·ã§ã³] -> [ãã¼ã«] -> [ã·ã³ãã«ã¿ã¤ãâ¦
å¤æ´ç¹ auã§ä½æã表示ãããªããã°ãä¿®æ£ ã¢ã¤ã³ã³ãå¤æ´ 端æ«ãdocomoããæã£ã¦ãªãã®ã§ãä»ã®ãã£ãªã¢ã®ãã¹ããã§ããªãã®ãé£ç¹ã§ããã ãã¦ã³ãã¼ã ã«ãã´ãª [ãã¼ã±ãã] -> [ã¢ããªã±ã¼ã·ã§ã³] -> [ãã¼ã«] -> [ã·ã³ãã«QRã³ã¼ã] QRã³ã¼ã ãã¼â¦
ã¿ã¤ãã«é¨åã«ããã°ã¬ã¹ï¼ã¹ããã¼ï¼ã表示ããæ¹æ³ ãã¾ããªã public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.main);â¦
åé¡ .NET Framework 1.1 VB.NETã§éçºããã¨Genericã使ããªãã®ã§ã*1 ã³ã¬ã¯ã·ã§ã³ã使ãããã¨ãã¯ãã£ã¹ããã¦ãããªãã¨ãããªãã ãããVB.NETã§ãã£ã¹ããæ¸ã㨠Dim order As Order = CType(OrderList(i),Order) ã£ã¦ãã風ã«é·ããªãã®ã§éãå¤ãâ¦
å¤æ´ç¹ ã¢ãããã¼ããããéã«ã¢ã©ã¼ã ãé³´ããªããã°ãç´ãã¾ããã ãã®ã¢ããªã«ã¤ãã¦ã«twitter IDã追å ãã¾ããã ã¢ãããã¼ãããéã«ã¢ã©ã¼ã ãé³´ããªããªããã°ãç´ãã¾ããã é·ããæ¾ç½®ãã¦ãã¦ç³ã訳ããã¾ããã æ°ããè¨å®é ç®ãå¢ãããã¨ãâ¦
ãã¼ã«ã«ã§ãã¹ããã¦ããã¨ãã¼ã¿ã¹ãã¢ã®å 容ãæ¶ãããã£ããã ãã©ããæ¹ãããããªã㦠æãã¦ããã£ãã®ã§ã¡ã¢ /war/WEB-INF/appengine-generated/local_db.bin ãåé¤ãã
次ã¯GAE/Jã使ã£ãAndroidã¢ããªãä½ãããã®ã§ãGAE/Jã®åå¼·ä¸ã ã¨ããããç°¡åãªCRUDä½ã£ã¦ã¿ã¾ããã ã½ã¼ã¹ PMF.java PersistenceManagerFactoryãä¿æããã¦ã¼ãã£ãªãã£ã¯ã©ã¹ import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; impâ¦
ç¥ ã·ã³ãã«ã·ãªã¼ãºç¬¬ï¼å¼¾ã§ãã ã·ã³ãã«QRã³ã¼ãããªãªã¼ã¹ãã¾ããï¼ ãã¦ã³ãã¼ã [ãã¼ã±ãã] -> [ã¢ããªã±ã¼ã·ã§ã³] -> [ãã¼ã«] -> [ã·ã³ãã«QRã³ã¼ã]ãããã¯ãã·ã³ãã«QRã³ã¼ããã§æ¤ç´¢ãããã¯ä»¥ä¸ã®QRã³ã¼ãããï¼ æ¦è¦ ã·ã³ãã«QRã³ã¼ãã¯ã¢â¦
ZXingã¨ã¯ zxing - Project Hosting on Google Code googleãããä½ã£ããã¼ã³ã¼ãã®ã¨ã³ã³ã¼ã/ãã³ã¼ãã©ã¤ãã©ãªã§ãã Androidã§ãã¼ã³ã¼ããªã¼ãã¯ã»ã¨ãã©ããããæ¡ç¨ãã¦ãã¾ãã 対å¿ãã¦ãããã¼ã³ã¼ãã®ç¨®é¡ãè±å¯ã§ãã ããã«java以å¤ã«ãããâ¦
é»è©±çªå·ãåå¾ããæ¹æ³ã§ãã ç°¡åã ãã©ã¡ã¢ ã½ã¼ã¹ TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE); String tel = tm.getLine1Number(); 以ä¸ã®ãã¼ããã·ã§ã³ãå¿ è¦ã§ãã android.permission.READ_PHONE_STATE ãã ãâ¦
èª¿æ» QRã³ã¼ãèªã¿åãâé£çµ¡å ã¸ã®ç»é²ã®QRã³ã¼ãã®ä»æ§ã調ã¹ãã å ¬å¼ãã¼ã¸ã¯æ¢ãã¥ããã®ãå®èª¬ã ãã©ãæå¤ã¨ç°¡åã«æ¢ãå½ã¦ãã SoftBank以å¤ã¯â¦ ä»ã®ã¨ããSoftBankã¯ææ°ã®ä»æ§ãã©ãã«æ¸ãã¦ããã®ãåãããªãã æè¡è ãµãã¼ããµã¤ãã¨ããã®ãè¦â¦
çå androidã®Viewã¯idã§ã¤ã³ã¹ã¿ã³ã¹ã¨ã£ãããã©ã®Viewãå¤æãããã¨ä½¿ãã¾ãã ã§ãOKãã¿ã³ãªã©æ±ç¨çãªååã®IDåã¯é«ç¢ºçã§è¢«ãã¾ãã åãç»é¢ã§OKãã¿ã³ãè¤æ°ããå ´åã¯ãã¾ãèãããã¾ããããç°ãªãç»é¢ã«OKãã¿ã³ãããã®ã¯ããã®ã§ã¯ãªããâ¦
ç¥ ï¼ä¸ãã¦ã³ãã¼ãçªç ´ï¼ï¼ æãã㨠ã¾ããæåã«å ¬éããç°¡åãªã¢ããªãããã¾ã§èºé²ããã¨ã¯æãããã¾ããã§ããã ä»å¾ã®ã·ã³ãã«ã¿ã¤ãã¼ ãã¿ã¤ãã¼ãã¨ããã®ã¯å¤§ãã¦æ©è½ãå¿ è¦ãªãã®ã§ãããã使ããããã¢ããªãã常ã«è¿½æ±ãã¦æ¹åãæ½ãã¦ããâ¦
æãã¤ãã§ãã£ã¦ã¾ãã ç¾å¨ã®ã·ã³ãã«ã¿ã¤ãã¼ã§å®è·µãã¦ããLogã¯ã©ã¹ã®ãããã³ã°æ¹æ³ã§ãã ã¿ã¤ãã³ã°éãæ¸ãã¾ãã ãã¡ãã¡ã¯ã©ã¹æ¯ã«TAGã£ã¦å¤æ°åããªãã¦æ¸ã¿ã¾ãã ããªãããã±ã¼ã¸å ã«ä½ãã°importããããã¾ããã ã½ã¼ã¹ public class Log â¦
æ¹æ³ KeyguardManager.KeyguardLockã¯ã©ã¹ã¨PowerManager.WakeLockã¯ã©ã¹ã使ãã¾ã KeyguardManager.KeyguardLock ã¹ã¯ãªã¼ã³ããã¯ãã¯ããããã®ã¯ã©ã¹ã§ãã ãã¼ããã·ã§ã³ã«DISABLE_KEYGUARDãå¿ è¦ PowerManager.WakeLock ã¹ã¯ãªã¼ã³ãæããããããâ¦
å¤æ´ç¹ éç¥æ¹æ³ã«ã¢ã©ã¼ãã追å è¨å®ã«ãããã¯ã©ã¤ããæ¶ããªããã追å éç¥æ¹æ³ã«ã¢ã©ã¼ãã追å è¨å®ã®éç¥æ¹æ³ã§ã¢ã©ã¼ããé¸æãããã¨ã§ ã¿ã¤ãã¼ãçµéããã¨ãã«ã¢ã©ã¼ãã§éç¥ãããããã«ãªãã¾ãã æ¨æºã§ä»å±ãã¦ããã¢ã©ã¼ã ã¨åãåãããâ¦
ãã㯠ééããªã便å©ã§ããã ã§ã 表示ãããã®ããªãã Goodiesåãè¼ãã¦ã¿ãã ãã¼ãããªã«ããããã®ã¯ãªããã®ã⦠ã¾ã Activityã®ã©ã¤ããµã¤ã¯ã«ãæªããã¦ãªãªã¼ã¹ã¯ã¾ã ã§ããªãã§ãã Activityã表示ããã¦ãã®ã«Destroyããã¾ãã ãã£ã¡ãæ»â¦
festastic! åè¦ã§ã¯fantasic!ãã¨æã£ãã åé¡çã«ã¯music playerã§ãé³æ¥½ã®åçãã§ãã ãã¼ã«ã«ã«ããé³æ¥½ã¯ãã¡ããã®ãã¨ãP2Pã§é³æ¥½ã®å ±æãã§ããã¿ããã ã åæ©è½ Local Android端æ«å ã«åå¨ããé³æ¥½ããªã¹ããã¦ããã¦ãåçãããã¨ãã§ãã¾ãâ¦
å¤æ´ç¹ æ°ããã¿ã°ã®å ¥åæ¹æ³ãå°å ¥ãã¾ããã ã¿ããã®ã¿ã§å ¥å/åé¤ãã§ãã¾ãã ããã¨ã§èªããã ããåé¤ãããã¨ãã£ã¦ãã£ããããã¾ãããã便å©ã«ãªã£ãã¨æãã¾ãã ãã¦ã³ãã¼ã ã«ãã´ãª [ãã¼ã±ãã] -> [ã¢ããªã±ã¼ã·ã§ã³] -> [ã½ã¼ã·ã£ã«ããâ¦
ã¤ãã« EditTextã«ã¨ã©ã¼ã表示ããã¨ããæ©ä¼ãæ¥ãï¼ï¼ï¼*1 ããããè¨å®ã¯ã§ãããã©ãã¯ãªã¢ã¯ã©ããããã ï¼ï¼ã£ã¦ã¡ãã£ã¨æ©ãã ãã§ã¡ã¢ JavaDocè¦ãã°å³è¦ã¤ãããã©ã ã¯ãªã¢ããã«ã¯ã¨ã©ã¼ã¡ãã»ã¼ã¸ã«nullãè¨å®ãã¦ãããã°ããã®ã§ãã ã½ã¼ã¹ â¦
ã·ã³ãã«ã¿ã¤ãã¼ã®æå¹ã¤ã³ã¹ãã¼ã«æ°ãæãããè½ã¡ãã ãã¤ããªãï¼å²ãï¼å²ãªã®ã«ãä»æ¥ã¯ï¼å²å¼±ã ããã ä¸æ¥ã«ã¢ãããã¼ãï¼åãããããããªâ¦ï¼ ããï¼åã¢ãããã¼ãããã®ã«ãªã¼ã ææ¥ã«ã¯æ»ã£ã¦ãã¨ãããªã
æ¸ãæ¹ã¯äººãããã 人ããããã«ãã£ã¦å®è£ æ¹æ³ã¯ç°ãªãã¨æãã¾ãã ä»åã¯ãã¿ã³ãã²ã¨ã¤è¨ç½®ãããããæ¼ãããã¨ãã«ãã¼ã¹ãã表示ããã¨ããæ©è½ãå®è£ ãããã¨æãã¾ãã main.xml
å¤æ´ç¹ ããã°ã°ã©ã¦ã³ãã§ã¿ã¤ãã¼ãçµäºããå ´åãã¢ã¯ãã£ãã«ãªã£ãã¨ãã«åæ¢ãã¿ã³ãèªåçã«æ¼ãããããã«å¤æ´ 説æé£ããã§ããã ã¿ã¤ãã¼ãè¨å® ã·ã³ãã«ã¿ã¤ãã¼çµäº ããã°ã°ã©ã¦ã³ãã§ã·ã³ãã«ã¿ã¤ãã¼åä½ ãã¼ãã£ãã£ã±ã¼ã·ã§ã³ã§ã¿ã¤ãã¼â¦
å¤æ´ç¹ ã»ã¿ã¤ãã¼ãå ã«æ»ããªããã°ãä¿®æ£ ãã¦ã³ãã¼ã ã«ãã´ãª [ãã¼ã±ãã] -> [ã¢ããªã±ã¼ã·ã§ã³] -> [ãã¼ã«] -> [ã·ã³ãã«ã¿ã¤ãã¼] QRã³ã¼ã ä¸è¨ ãªãªã¼ã¹æã«ãã°ãããã¨æå¹ãã¦ã³ãã¼ãæ°ãæ ¼æ®µã«ä½ãã§ããããã å ã«æ»ãã¨ãããã§ããã©â¦
å 輩ã«èªããã¦ããªãã®ãæä¼ã*1ããã¦ãã¾ããã ãã®äººãGrand Theft Auto: Vice Cityãåºåãã¦ããã®ã§ãã売ã£ã¦ãã ããï¼ãã£ã¦è¨ã£ãããã¿ãã§ããããï¼ ã¤ãã§ã«ãµã«ãã¯ãã¿ãã§ããããï¼ ã§ã俺ãã¬ã¹ãï¼æã£ã¦ãªããï¼ åéãæã£ã¦ãããâ¦
ä½ããã¨æã£ã¦ããéçºã®ãã¿ããã£ã¦ãç°¡åã«ã§ããã ããã¨æã£ã¦ããã®ã ãã©ãããä½ããã¨ããã¨ä½ãã¾ããã§ããã javaãªãç°¡åãªã®ã«ãAndroidã ã¨é£ããã£ã¦ãã¨ã¯ããã¾ããã ç¹ã«javaã ã¨ã©ã¤ãã©ãªã«é ¼ã£ã¦ãããã¨ã¯ãAndroidã ã¨åããªããâ¦
å¤æ´ç¹ ã¢ã¤ã³ã³ãå¤æ´ ãã³ãã¼å ¥åã追å ä¸é¨ã®äººããè¦æããã£ããã³ãã¼å ¥åãå®è£ ãã¾ããã è¨å®ããå ¥åæ¹æ³ãåãæ¿ãããã¨ãã§ãã¾ãã NumericUpDownããé«éã«æéãè¨å®ã§ãã¾ããï¼ ã¹ãã¬ã¹ã®å°ãªãã¤ã³ã¿ã¼ãã§ã¤ã¹ã£ã¦ããã®ã¯é常ã«éè¦â¦
Thread & Handler Thread & Handlerã使ã£ãå¥ã¹ã¬ããå¦ç è¦ææèããã£ããã©ããã大ä¸å¤«ãææ¡ãããè¦ã¯ Runnnable::runã«å¥ã¹ã¬ããå¦çãæ¸ãã Handler::postã§UIã«è§¦ãã°OK ã½ã¼ã¹ mHandler = new Handler(); new Thread(new Runnable() { publicâ¦