2014-09-30から1日間の記事一覧

Connection to http://localhost:3000 refused って言われる

http://blog.ceed.jp/?p=298 AVDのlocalhostとは自分自身を指すらしい 特別に 10.0.2.2 がローカルマシンを指すように割り当てられている String url = "http://10.0.2.2:3000"; //String url = "http://localhost:3000"; HttpPost post = new HttpPost(url);

androidで一意なハッシュ生成

ハッシュを生成するにはApacheCommonsLangライブラリを使います。 ApacheCommonsLangライブラリ導入 build.gradleのdependenciesに compile 'commons-lang:commons-lang:+'を追記 そしてSync 使い方 //アルファベットと数字 RandomStringUtils.randomAlphanu…