카메라 관련 어플을 만들었습니다.
 
가상머신에서는 아무탈없이 잘 돌아가는데
 
apk파일로 만들어서 폰에 설치를 하려고하면
 
애플리케이션이 설치되지 않았습니다 라고 뜨면서 설치가 안됩니다.

환경설정에서 제공처불명 어플 설치 항목에도 체크하고

개발 항목에 USB디버그 모드도 체크 했고요

같은 이름의 어플이 설치되어 있지도 않습니다.

설치 공간도 충분하구요~

너무 답답하네요 ㅠ
 
뭐가 문제인 걸까요??
 
조언 부탁드립니다 ㅠㅠ
 



혹시 몰라서 소스첨부 합니다~

 
 
C25_Camera.java
 
 

import java.io.*;
import java.util.*;
import android.app.*;
import android.content.*;
import android.hardware.*;
import android.hardware.Camera.*;
import android.net.*;
import android.os.*;
import android.util.*;
import android.view.*;
import android.widget.*;
public class C25_Camera extends Activity {
 MyCameraSurface mSurface;
 Button mShutter;
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  
  mSurface = (MyCameraSurface)findViewById(R.id.preview);
  // 오토 포커스 시작
  findViewById(R.id.focus).setOnClickListener(new Button.OnClickListener() {
   public void onClick(View v) {
    mShutter.setEnabled(false);
    mSurface.mCamera.autoFocus(mAutoFocus);
   }
  });
  // 사진 촬영
  mShutter = (Button)findViewById(R.id.shutter);
  mShutter.setOnClickListener(new Button.OnClickListener() {
   public void onClick(View v) {
    mSurface.mCamera.takePicture(null, null, mPicture);
   }
  }); 
 }
 // 포커싱 성공하면 촬영 허가
 AutoFocusCallback mAutoFocus = new AutoFocusCallback() {
  public void onAutoFocus(boolean success, Camera camera) {
   mShutter.setEnabled(success);
  }
 };
 // 사진 저장.
 PictureCallback mPicture = new PictureCallback() {
  public void onPictureTaken(byte[] data, Camera camera) {
   String sd = Environment.getExternalStorageDirectory().getAbsolutePath();
   String path = sd + "/cameratest.jpg";
   File file = new File(path);
   try {
    FileOutputStream fos = new FileOutputStream(file);
    fos.write(data);
    fos.flush();
    fos.close();
   } catch (Exception e) {
    Toast.makeText(C25_Camera.this, "파일 저장 중 에러 발생 : " + 
      e.getMessage(), 0).show();
    return;
   }
   
   Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
   Uri uri = Uri.parse("file://" + path);
   intent.setData(uri);
   sendBroadcast(intent);
   Toast.makeText(C25_Camera.this, "사진 저장 완료 : " + path, 0).show();
   mSurface.mCamera.startPreview();
  }
 };
}
// 미리보기 표면 클래스
class MyCameraSurface extends SurfaceView implements SurfaceHolder.Callback {
 SurfaceHolder mHolder;
 Camera mCamera;
 public MyCameraSurface(Context context, AttributeSet attrs) {
  super(context, attrs);
  mHolder = getHolder();
  mHolder.addCallback(this);
  mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
 }
 // 표면 생성시 카메라 오픈하고 미리보기 설정
 public void surfaceCreated(SurfaceHolder holder) {
  mCamera = Camera.open();
  try {
   mCamera.setPreviewDisplay(mHolder);
  } catch (IOException e) {
   mCamera.release();
   mCamera = null;
  }
 }
    // 표면 파괴시 카메라도 파괴한다.
 public void surfaceDestroyed(SurfaceHolder holder) {
  if (mCamera != null) {
   mCamera.stopPreview();
   mCamera.release();
   mCamera = null;
  }
 }
 // 표면의 크기가 결정될 때 최적의 미리보기 크기를 구해 설정한다.
    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
  Camera.Parameters params = mCamera.getParameters();
        List<Size> arSize = params.getSupportedPreviewSizes();
        if (arSize == null) {
   params.setPreviewSize(width, height);
        } else {
         int diff = 10000;
         Size opti = null;
         for (Size s : arSize) {
          if (Math.abs(s.height - height) < diff) {
           diff = Math.abs(s.height - height);
           opti = s;
           
          }
         }
   params.setPreviewSize(opti.width, opti.height);
        }
  mCamera.setParameters(params);
  mCamera.startPreview();
 }
}
 
 

 
AndroidMenifest.xml
 
 
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="exam.andexam"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="8" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" 
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        <activity
            android:name=".C25_Camera"
            android:label="@string/app_name" 
            android:screenOrientation="landscape">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-feature android:name="android.hardware.camera" />
   <uses-feature android:name="android.hardware.autofocus" /> 
</manifest>