모바일 개발(3)
-
안드로이드 다이얼로그
[안드로이드,Android]다이어로그,AlerDialog (버튼3개)-확인,중립,취소 package com.example.teste22; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.widget.Toast; public class MainActivity extends Activity { @Overri..
2013.05.30 -
젤리빈(Jelly Bean) 4.1 이상 WebView 사진선택 openFileChooser 방법
@SuppressWarnings("unused") public void openFileChooser(ValueCallback uploadMsg) { openFileChooser(uploadMsg, ""); } // For Android 3.0+ public void openFileChooser(ValueCallback uploadMsg, String acceptType) { mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType("image/*"); startActivityForResult(Intent.createChooser(i,..
2012.12.28 -
[안드로이드,Android] 안드로이드 TOAST 띄우기
안드로이드 Toast TOAST EX.1) Toast toast = Toast.makeText(getApplicationContext(), "안녕 어서와", Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER, 0, 0); toast.show(); EX.2) Toast toast = Toast.makeText(getApplicationContext(), 안녕 어서와", Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER, 0, 0); LinearLayout toastView = (LinearLayout) toast.getView(); ImageView imageCodeProject = new ImageView(getAppl..
2012.12.28