안녕하세요
windows 환경에서 Built-in Camera 정확히는 Gallery를 수정하고 에뮬에 올려보고 하는 작업을 하고 싶습니다.
해서 생각한게 아래의 작업인데 잘 되지 않아 염치 불구하고 질문 올립니다.
혹 경험 있으신 분 있으시면 조언 부탁드립니다.
1. /packages/apps/Camera 부분만 들고와서 eclipse에서 불러온다
2. 풀소스 빌드 결과물 중 아래 두 파일을 프로젝트에 import 한다.
/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar
/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar
3. 빌드 하여 .apk 생성
4. Camera application 을 빼고 풀소스를 빌드한 이미지를 넣은 에뮬에 apk 설치
(or ADP1 System 영역 권한 변경후 기존 Camera 지우고 설치)
이 과정인데 이 과정 중 2번 까지 진행하면 에러는 모두 사라지지만
빌드과정에서 아래와 같은 에러가 콘솔창에 나타납니다.
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2010-01-18 16:54:54 - Camera3]1 error; aborting
[2010-01-18 16:54:54 - Camera3]Conversion to Dalvik format failed with error 1
다른 이야기 인데요.
에뮬레이터에서 카메라는 어떻게 인식을 하는지요?
에뮬에는 카메라가 없지 않나요?