'startActivityForResult'에 해당되는 글 1건

  1. 2011.10.27 startActivityForResult 사용 샘플 코드 (Gallery pickup)


 

 //...  생략 ...



int returnCode = 1;

Intent intent = new Intent();
intent.setAction( Intent.ACTION_GET_CONTENT );
intent.setType( "image/*" );  //video/* 은 비데오 파일
this.startActivityForResult( intent, this.returnCode );


//onActivityResult 로 콜백처리 할 것.


'IT > Android' 카테고리의 다른 글

RUN Thread 사용  (0) 2011.10.27
ScrollView 안에 이미지 적용시 중복된 여백이 생기는 경우.  (0) 2011.10.27
media scanning  (0) 2011.10.27
Map API 등록하기  (0) 2011.10.27
INTENT Activity 호출유형  (0) 2011.10.27
Posted by bestrok
,