안드로이드 카메라 사용 (앱,어플,애플리케이션) 소스파일 (카메라 띄우기)
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

안드로이드 카메라 사용 (앱,어플,애플리케이션) 소스파일 (카메라 띄우기)에 대한 보고서 자료입니다.

목차

1. Activity 파일(txt)
2. xml 파일(txt)

본문내용

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import java.io.File;
.
.
.
.
.
public class MakePicture extends Activity {

  Button BtImgLoad;
  int w,h;
  ImageView ImgUploaded;
  static int REQUEST_PICTURE = 1;
  static int REQUEST_PHOTO_ALBUM = 2;
  static String SAMPLEIMG = \"photo.png\";

  Context mContext = this;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_make_picture);
.
.
.
.
.
switch(v.getId()) {
      case R.id.BtImgLoad:
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        File file = new File(Environment.getExternalStorageDirectory(), SAMPLEIMG);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
        startActivityForResult(intent, REQUEST_PICTURE);
.
.
.
.
  • 가격2,200
  • 페이지수2페이지
  • 등록일2015.08.10
  • 저작시기2015.8
  • 파일형식압축파일(zip)
  • 자료번호#978544
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니