2014-06-01から1日間の記事一覧
GAEのデプロイ中にエラーが発生したり中断した際、 バージョンがどうのこうの、というエラーが発生し、デプロイができなくなることがある。そのときは、Eclipse上ではなく、ターミナルからRollbackをする必要がある。 コマンドは下記の通り。 ./appcfg.sh ro…
前回の記事の続きで、今回は、 ローカルに保存されているpng画像をBitmapとして取得する方法。 public static Bitmap readBitmapData(Context context, String fileName) { Bitmap data = null; if (fileName != null) { try { InputStream inputstream = co…
Bitmapをpng画像として保存する方法。 public static boolean storeBitmap(Context context, Bitmap bitmap, String fileName) { if (bitmap != null && fileName != null) { ByteArrayOutputStream output = new ByteArrayOutputStream(); bitmap.compress(…
Eclipseのキャッシュがおかしくなったときなど、 最終手段として使うEclipseのclean起動。 % cd /Applications/eclipse/Eclipse.app/Contents/MacOS/ % sudo ./eclipse -clean ただし、これをやるとEclipseで設定したパースペクティブ(Perspective)やビュー(…