android

ubuntu10.10でopencv-androidのサンプルコンパイル

まずは・・・ opencvをandroidで使うためにはhttp://opencv.willowgarage.com/wiki/Androidをチェック。 このあとの説明はほぼすべてここの説明の焼き直しです。 あとsdkはもう既にインストール済みであるという前提です。 パスもしっかり通してあるていでよ…

androidのopenglesをつかってみる。三角形の描画

色々サンプルはあるけど、無駄なものがおおい。 必要な部分をしぼって描いてみた。activity。 import android.app.Activity; import android.os.Bundle; import android.opengl.GLSurfaceView; public class MainActivity extends Activity { private GLSurf…

androidでopenglesをつかってみる。画面の表示

まずは、アクティビティの設定。 import android.app.Activity; import android.os.Bundle; import android.opengl.GLSurfaceView; public class MainActivity extends Activity { private GLSurfaceView mGLView; /** Called when the activity is first cr…

androidのopenglesをつかってみる。立方体の描画

ひきつづき、Cubeの描画。activityは変更なし。 public class MainActivity extends Activity { private GLSurfaceView mGLView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.on…

android 2.2 (froyo) と1.6 (donut) でカメラプレビュー

HTC desire HD (2.2) でカメラのpreviewサイズを設定すると「予期せぬエラーで終了しました」がでる。 ぐぐってみるとどうやら2.1-1 以降でこの問題が起きるらしい。http://code.google.com/p/android/issues/detail?id=7909 試してはないけど、sdk付属のカ…