appengineã®éçºãµã¼ãã§ã«Androidããã¢ã¯ã»ã¹ããæã®è¨å®
appengineã®è¨å®
éçºãµã¼ãã¯ããã©ã«ãã ã¨ãã¼ã«ã«ãã·ã³ããã®ã¢ã¯ã»ã¹ãã許å¯ããªãè¨å®ã«ãªã£ã¦ããã®ã§
ä»ã®ãã·ã³ãããã¢ã¯ã»ã¹å¯è½ã«ãã¾ãã
eclipseã§ã
Run Configurations â debug configuration ã® (x)= Arguments ã¿ãã® Program arguments ã« --address=0.0.0.0 ã追å ãã
Androidããã¢ã¯ã»ã¹ããå ´åã®ã¢ãã¬ã¹
ãã¼ã«ã«ãã·ã³ã§ãã©ã¦ã¶ãããã¼ã«ã«ã®GAEéçºãµã¼ãã«ã¢ã¯ã»ã¹ããå ´åã¯ããã©ã¦ã¶ãã localhost:8888 ã¾ã㯠127.0.0.1:8888 ã§ã¢ã¯ã»ã¹ã§ãããã©ãAndroidã§åæ§ã«æ¸ãã¨Androidèªèº«ãå·®ãã¦ãã¾ãã
Androidããã¢ã¯ã»ã¹ããå ´åã®URLã«ã¯ãã¼ã«ã«ãã·ã³ã®IP Addressã§ã¢ã¯ã»ã¹ããã®ã§MacãªãTerminalã§
$ ifconfig
㧠IP Address (192.168.xx.xxx)ã確èªãã¦ã***.appspot.comã®ãããã«ãã®IPã«ã¢ã¯ã»ã¹ããã
//appengineãµã¼ã webview.loadUrl("http://appid.appspot.com/hoge/"); //éçºãµã¼ã webview.loadUrl("http://192.168.xxx.xxx:8888/hoge/");