With cdt installed in eclipse, you may also "convert to C++ project" once you have
opened this as an android project. Select makefile project->toolchain other to do this.
+Eclipse tip of the day:
+You may get build warnings when linking to the project, complainging about duplicate something
+or other in you .svn directories. Right click project->settings->java build path->source->excude paths->add
+.svn/ and **/.svn/ should do it ;)
#you can download the ndk from http://www.crystax.net/android/ndk-r4.php
ANDROID_NDK_ROOT=$(HOME)/android-ndk-r4-crystax
+#define only armeabi-v7a to make the final apk smaller or armeabi
ARM_TARGETS=armeabi armeabi-v7a
\ No newline at end of file
// Restore preferences
SharedPreferences settings = ctx.getSharedPreferences(CAMERA_SETTINGS,
0);
- int mode = settings.getInt(CAMERA_MODE, CAMERA_MODE_BW);
+ int mode = settings.getInt(CAMERA_MODE, CAMERA_MODE_COLOR);
return mode;
}
SharedPreferences settings = ctx.getSharedPreferences(CAMERA_SETTINGS,
0);
size[0] = settings.getInt(IMAGE_WIDTH, 600);
- size[1] = settings.getInt(IMAGE_HEIGHT, 600);
+ size[1] = settings.getInt(IMAGE_HEIGHT, 400);
}