본문 바로가기

전체 글

(223)
[C++] static 멤버 변수, 함수 static 멤버 변수, 함수 ( http://blog.daum.net/coolprogramming/67 ) http://showmiso.tistory.com/95 에서 보통 함수의 지역 변수는 stack 영역에 저장되지만, static 으로 선언한 지역 변수는 메모리 영역 중 static영역에 저장되어 프로그램이 종료할 때까지 사라지지 않는다. 라고 했습니다. class A { int a; static int b; public: void func1() {} static void func2() {} }; int main() { A a; } class A의 객체 a를 선언하게 되면, A의 멤버 변수와 멤버 함수는 이 객체의 인스턴스 멤버 변수, 멤버 함수가 된다.하지만, static 멤버 변수와 stati..
[완료] 티스토리 초대장 배포'ㅅ '/ 저에게 티스토리 초대장이 10장 있네요~필요하신 분 댓글남겨주세용 'ㅇ'!!
opencv 2.4.5 vs2010 opencv_calib3d245d.libopencv_contrib245d.libopencv_core245d.libopencv_features2d245d.libopencv_flann245d.libopencv_gpu245d.libopencv_haartraining_engined.libopencv_imgproc245d.libopencv_legacy245d.libopencv_ml245d.libopencv_objdetect245d.libopencv_ts245d.libopencv_video245d.libopencv_highgui245d.libopencv_nonfree245d.libopencv_photo245d.libopencv_stitching245d.libopencv_videostab245d.lib 링커>입력C:..
Android capture http://yonoo88.tistory.com/20
Activity를 상속받지 않은(extends 하지 않은) 클래스에서의 intent Relative layout을 상속받은 custom layout 을 상속받은 ~~~ view class 가 있다. 내 목적은 이 class에서 갤러리에 접근하고, 갤러리에서 받은 사진을 imageview에 setImageBitmap하는 것이었다. 이 class 는 activity 를 상속받은 것이 아니기 때문에, 갤러리에 접근하기 위해서는 intent.setAction(Intent.ACTION_GET_CONTENT);intent.setType("image/*");intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);mContext.startActivity(intent); 위와같이 flag를 FLAG_ACTIVITY_NEW_TASK로 해줘야 한다. 또한, startActivi..
Installation failed due to invalid APK file! Installation failed due to invalid APK file!Please check logcat output for more details.Launch canceled! http://stackoverflow.com/questions/7998101/eclipse-installation-failed-due-to-invalid-apk-file Posibility 1: version problem. Make your minimum and target sdk version higher and try again.Posibility 2: package mistmatching. Package name in AndroidManifest.xml does not match with the actual pa..
jni 할때 Edit Configuration 꼭 할 것 jni 할때 Edit Configuration 꼭 할 것 AndroidNDK_javah ${env_var:JAVA_HOME}/bin/javah.exe ${workspace_loc:/magicScan/bin/classes} -d ${workspace_loc:/magicScan/jni} -classpath${env_var:ANDROID_SDK}/platforms/android-17/android.jar;miso.ux_proj.magicscan.MagicScan magicScan : project namemiso.ux_proj.magicscan.MagicScan : jni 할 class name 주의!! ${CYGWIN_HOME}/bin/bash ${NDKROOT}/ndk-build NDK_DEBUG=1 V=..
Binary XML file line #7: Error inflating class 11-14 23:37:40.721: E/AndroidRuntime(2778): FATAL EXCEPTION: main11-14 23:37:40.721: E/AndroidRuntime(2778): java.lang.RuntimeException: Unable to start activity ComponentInfo{miso.ux_proj/miso.ux_proj.magicscan.magicscan_cameraActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class mono.jni.magicscan.magicscan_cameraSurfaceView XML 파일에서 package 명을 수정해라. package ..