목차
1. Activity 파일(txt)
2. xml 파일(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);
.
.
.
.
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);
.
.
.
.
추천자료
안드로이드 앱개발 기초 android application
[STP 분석] 시장세분화, 표적시장, 포지션닝 전략 및 삼성카메라 사례
[Android/JAVA] 자바기반서버 & 안드로이드 클라이언트 채팅프로그램
[방송국, 방송사, 보도연성화, 애니메이션쿼터]방송국(방송사)의 보도연성화, 방송국(방송사)...
[마케팅믹스][마케팅][제품관리]마케팅믹스의 정의, 마케팅믹스의 구성, 마케팅믹스의 디지털...
안드로이드 블루투스(android bluetooth) 연결 소스파일(어플)입니다.
[영화 영상의 이해] 블록버스터 (Blockbuster) 블록버스터의 정의,블록버스터 영화의 특징,어...
(인터넷과정보사회) PC를 제외하고 주변에서 사용가능한 컴퓨팅 기능이 있는 장치(내비게이션...
[인터넷과 정보사회 공통] ①PC제외 주변 컴퓨팅 기능 장치(내비게이션,키오스크,디지털카메라...
[인테넷과 정보사회] 주변에서 사용가능한 컴퓨팅 기능 장치(내비게이션,키오스크,디지털카메...
★ 경영통계학 - 신뢰구간 ( 새로 설립된 한국정기간행물 총판은 서울 경기지역의 가구당 정기...
몰카반성문 몰래카메라반성문 지하철몰카반성문 버스몰카반성문 카메라등이용촬영죄반성문!!!!!
안드로이드 택배조회 앱 소스 (Android Studio)
소개글