본문 바로가기

android dialog

(5)
안드로이드/Android Dialog의 각종 속성들 정리 ~! 개발 환경 >   ●  작성일 : 2013.02.03 ●  OS 설치 버전 : Windows7 32bit   ●  SDK 설치 버전 : 안드로이드 SDK 4.2 (젤리빈) / API LEVEL : 17   ●  ADT 설치 버전 : 21    ●  Java 설치 버전 : JDK 1.6.0_20 / JRE6  ●  이클립스 설치 버전 : Indigo ●  테스트단말 : 삼성 갤럭시 S2 4.0.4 (아이스크램 샌드위치)      ●  Android Build Target / API LEVEL / Complie With : 17   ●  minSdkVersion : 8  ●  targetSdkVersion : 16   ●  Java Compiler Level : 1.6   ●  Text file enco..
안드로이드/Android android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 에러 안드로이드/Android android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 에러 안드로이드 프로그래밍 도중에, android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 이란 에러가 뜨는 경우가 발생하게 되는데요.!!문제는 다이얼로그 생성시 context를 getApplicationContext() 넣어서 발생하는 문제 였습니다. 해결방법은 context에 getApplicationContext() 사용하지 마시고, 액티비티명.this..
안드로이드/Android 기본 Dialog, inflate Dialog 안드로이드/Android 기본 Dialog, inflate Dialog AlertDialog를 사용한 기본 Dialog 예제 입니다. package arabiannight.tistory.com.simpledialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class TestSimpleD..
안드로이드/Android Custom Dialog 만들기 안드로이드/Android Custom Dialog 만들기 TestCustomDialogActivity.Java package arabiannight.tistory.com; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Toast; import arabiannight.tistory.com.popup.CustomDialog; public class TestCustomDialogActivity extends Activity { private CustomDialog mCustomDialog; @Override public void onCreate(Bundle savedInst..
안드로이드/Android Inflater 적용한 Alertdialog 만들기 안드로이드/Android Inflater 적용한 Alertdialog 만들기 ▒ ▒ ▒ ▒ ▒ ▒ ▒ 전체 소스 입니다. ▒ ▒ ▒ ▒ ▒ ▒ ▒package arabiannight.tistory.com; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.CheckBox; public class TestAlertdialogA..