INSERT INTO `g5_write_tech` VALUES (165,-165,'',165,0,0,'','','html1','[Android] 안드로이드 php를 통한 이미지 업로드','<p><span style=\"color: #404040; font-family: 굴림;\">&lt;?php&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$target_path = \"files/\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$tmp_img = explode(\".\" ,$_FILES[\'uploadedfile\'][\'name\']);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$img_name = $tmp_img[0].\"_\".date(\'Y-m-d_H_i_s\').\".\".$tmp_img[1];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$target_path = $target_path . basename($img_name);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(move_uploaded_file($_FILES[\'uploadedfile\'][\'tmp_name\'], $target_path)) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"The file \".$img_name.\" has been uploaded\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"There was an error uploading the file, please try again!\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">다른 소스...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;?&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 업로드한 파일을 저장할 디렉토리&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$save_dir = \"./files\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 파일이 HTTP POST 방식을 통해 정상적으로 업로드되었는지 확인한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(is_uploaded_file($_FILES[\"myFile\"][\"tmp_name\"])) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"업로드한 파일명 : \" . $_FILES[\"myFile\"][\"name\"] . \"&lt;br&gt;\"; //Hydrangeas.jpg&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"업로드한 파일의 크기(Bytes) : \" . $_FILES[\"myFile\"][\"size\"] . \"&lt;br&gt;\"; //595284&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"업로드한 파일의 MIME Type : \" . $_FILES[\"myFile\"][\"type\"] . \"&lt;br&gt;\"; //image/pjpeg&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"임시 디렉토리에 저장된 파일명 : \" . $_FILES[\"myFile\"][\"tmp_name\"] . \"&lt;br&gt;\"; ///tmp/phpQDQpvq&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 파일을 저장할 디렉토리 및 파일명&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$dest = $save_dir . \"/\" . $_FILES[\"myFile\"][\"name\"];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 파일을 지정한 디렉토리에 저장&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(!move_uploaded_file($_FILES[\"myFile\"][\"tmp_name\"], $dest)) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">die(\"파일을 지정한 디렉토리에 저장하는데 실패했습니다.\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo \"업로드된 파일이 없습니다.\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">================================================================================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">private void HttpFileUpload(String urlString, String params, String fileName) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">try {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mFileInputStream = new FileInputStream(fileName);	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">connectUrl = new URL(urlString);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.d(\"Test\", \"mFileInputStream&nbsp; is \" + mFileInputStream);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// open connection&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">HttpURLConnection conn = (HttpURLConnection)connectUrl.openConnection();	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setDoInput(true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setDoOutput(true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setUseCaches(false);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setRequestMethod(\"POST\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setRequestProperty(\"Connection\", \"Keep-Alive\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// write data&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">DataOutputStream dos = new DataOutputStream(conn.getOutputStream());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.writeBytes(twoHyphens + boundary + lineEnd);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploadedfile\\\";filename=\\\"\" + fileName+\"\\\"\" + lineEnd);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.writeBytes(lineEnd);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int bytesAvailable = mFileInputStream.available();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int maxBufferSize = 1024;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int bufferSize = Math.min(bytesAvailable, maxBufferSize);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">byte[] buffer = new byte[bufferSize];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int bytesRead = mFileInputStream.read(buffer, 0, bufferSize);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.d(\"Test\", \"image byte is \" + bytesRead);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// read image&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">while (bytesRead &gt; 0) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.write(buffer, 0, bufferSize);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">bytesAvailable = mFileInputStream.available();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">bufferSize = Math.min(bytesAvailable, maxBufferSize);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">bytesRead = mFileInputStream.read(buffer, 0, bufferSize);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}	</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.writeBytes(lineEnd);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// close streams&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.e(\"Test\" , \"File is written\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mFileInputStream.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.flush(); // finish upload...	</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// get response&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int ch;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">InputStream is = conn.getInputStream();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">StringBuffer b =new StringBuffer();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">while( ( ch = is.read() ) != -1 ){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">b.append( (char)ch );&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String s=b.toString();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.e(\"Test\", \"result = \" + s);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mEdityEntry.setText(s);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dos.close();	</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} catch (Exception e) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.d(\"Test\", \"exception \" + e.getMessage());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO: handle exception&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}</span></p>','https://www.androidpub.com/index.php?_filter=search&mid=android_dev_qna&search_target=title_content&search_keyword=multipart&page=1&division=-677799&document_srl=664496','http://blog.inculab.net/28',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:39:28',1,'2019-04-26 13:39:28','210.101.103.92','','','','','','','','','','','',''),(166,-166,'',166,0,0,'','','html1','[Android] 폰에서 웹서버로 파일 전송방버','<p><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">&nbsp;예전에&nbsp;</span><strong style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">폰에서 웹으로 Data 보내는방법 &lt;POST&gt;&nbsp;</strong><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">의 강좌를 한적이 있다.&nbsp; 이부분에 대해 한 분의 구독자 분께서 열심히&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">연구 하시는 듯 하여 급하게 폰에서 웹서버로 파일을 전송하는 방법에 대해 설명 하도록 하겠다.&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">최근 나의 근황을 보자면, 너무 바쁘다 집에 올 시간도 없을 뿐더러, 주 7일중에 6일 근무를 기본으로, 9시 까지 출근에 평균&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">퇴근 시간은 am 2:00 시 이후이다. 서비스 오픈이 일주일 남았기 때문에&nbsp;살인적인 일정을 소화 하는 형편이다.&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">머 이상 넋두리 였고, 앞으로 개발자가 되고자 한다면 이런 현실을 알았으면 해서 푸념을 늘어 놓았다. ㅠ_ㅠ</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">폰에서 서버로 파일을 전송하는 방법은 이전에 Data를 보내는 방법과 별반 차이는 없다. 서버쪽에서 되려 작업을 해줘야 하는</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">게 더 많을 것이다. 앞서 말했듯이 이 블로그는 안드로이드에 대해 연재 하기 위해서 꾸며 졌기 때문에 따른 웹 부분의 소스는&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">생략하도록 하겠다. 나중에 웹부분은 따로 연재를 하던가 하겠다. 나역시 웹은 잘 모른다. 기초적인것 이외에;;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">이전에 Data를 웹으로 보낼때의 소스를 보자면&nbsp;</span><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">&nbsp;</span></p>\r\n<p style=\"padding: 0px; color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">&nbsp;</p>\r\n<div class=\"txc-textbox\" style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px; border-width: 3px; border-style: double; border-color: #c1c1c1; padding: 10px; background-color: #eeeeee;\">\r\n   <p style=\"padding: 0px;\">* @Method 설명 : 입력한 내용을 POST 방식으로 Struts2 Action 으로 보냄~<br />&nbsp; */<br />&nbsp;private boolean insertAction() {<br />&nbsp;&nbsp;// pop에서 입력한 내용을 POST 방식으로 Struts2 Action 으로 보냄~<br />&nbsp;&nbsp;try {<br />&nbsp;&nbsp;&nbsp;HttpClient client = new DefaultHttpClient();<br />&nbsp;&nbsp;&nbsp;<font color=\"#e31600\">String postURL = NootoURL.URL+ResultConst.PROFILEHIWORDUPDATE;<br /></font>&nbsp;&nbsp;&nbsp;HttpPost post = new HttpPost(postURL);<br />&nbsp;&nbsp;&nbsp;List params = new ArrayList(); // 부모글에 댓글을 달기위한 파라미터 들 ~<br />&nbsp;&nbsp;&nbsp;params.add(new BasicNameValuePair(\"prof_num\", MyProfileDTO.getProf_num()));<br />&nbsp;&nbsp;&nbsp;params.add(new BasicNameValuePair(\"prof_hiword\", update_hiword.getText().toString()));<br />&nbsp;&nbsp;&nbsp;UrlEncodedFormEntity ent = new UrlEncodedFormEntity(params,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HTTP.UTF_8);<br />&nbsp;&nbsp;&nbsp;post.setEntity(ent);<br />&nbsp;&nbsp;&nbsp;HttpResponse responsePOST = client.execute(post);</p>\r\n   <p style=\"padding: 0px;\">&nbsp;&nbsp;&nbsp;HttpEntity resEntity = responsePOST.getEntity();<br />&nbsp;&nbsp;&nbsp;Toast.makeText(this, \"수정했습니다. 재로그인시 반영됩니다.\", 2000).show();<br />&nbsp;&nbsp;&nbsp;if (resEntity != null) {</p>\r\n   <p style=\"padding: 0px;\">&nbsp;&nbsp;&nbsp;&nbsp;Log.w(\"RESPONSE\", EntityUtils.toString(resEntity));<br />&nbsp;&nbsp;&nbsp;}</p>\r\n   <p style=\"padding: 0px;\">&nbsp;&nbsp;} catch (Exception e) {<br />&nbsp;&nbsp;&nbsp;Toast.makeText(this, \"네트워크 오류로 글등록에 실패하였습니다.\", 2000).show();<br />&nbsp;&nbsp;&nbsp;e.printStackTrace();<br />&nbsp;&nbsp;&nbsp;return false;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;closeContextMenu();<br />&nbsp;&nbsp;return true;<br />&nbsp;}</p>\r\n   <br /></div>\r\n<p><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">이런식이다 .&nbsp;</span><font color=\"#e31600\" style=\"font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">String postURL = NootoURL.URL+ResultConst.PROFILEHIWORDUPDATE;<font color=\"#000000\">&nbsp; 이 부분이 주소에서의 처리를 풀어&nbsp;<br /><br />보자면 public static final String PROFILEHIWORDUPDATE =&nbsp;<font color=\"#e31600\">\"/NootoTalk/profilehiwordUpdate.action\";&nbsp;</font><font color=\"#000000\">이런식이 된다.&nbsp;<br /><br />이 말인즉 서버의 주소가&nbsp;<a href=\"http://localhost:8080/NootoTalk/showPromem.action\" style=\"color: #666666; text-decoration-line: none;\" target=\"_blank\">http://localhost:8080/NootoTalk/<font color=\"#e31600\">profilehiwordUpdate.action</font></a>&nbsp;이런식으로 구성 된다고 보면 된다.<br /><br />이 주소에서 하는일은 말그대로 struts spring 서블릿(영어 모르겠네;;) 이 처리 하는 작업에 대해 호출을 해 주는 식이다.&nbsp;<br /><br />데이터만 보내주면 파라미터의 값들이 일치 하게 되면 웹서버가 알아서 처리 하는 구조라고 할 수 있겠다. &lt; 보통의 웹서버와<br /><br />의 통신은 이렇다. 자료만 보내주면 땡이다. 클라이언트 단말 부분에서는 그 데이터를 보내고 받기만 하면 된다. &gt;<br /><br />이제 서버에 파일을 보내는 구조에 대해 살펴 보자.<br /><br />지금 만들려고 하는 구조를 예를 들어 설명 하자면 어느 사이트에 회원 가입을 할때 입력정보를 입력하고 자신의 프로필을&nbsp;<br /><br />등록할 수 있는 일반적인 sns&nbsp;가입 구조 패턴이라 생각 하자, 사용자는 자신의 사진을 폰에 저장되있는걸 찾아서 입력하고, 그&nbsp;<br /><br />외에 자신의 프로필 이름 나이 주소 등등 을 입력하는 구조이다.&nbsp;<br /><br /><br />단말에서의 입력 화면을 보자~&nbsp;<br /><br /></font></font></font></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px; text-align: center;\"><span class=\"imageblock\" style=\"display: inline-block; width: 480px; height: auto; max-width: 100%;\"><img srcset=\"https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile30.uf.tistory.com%2Fimage%2F996C844D5C2DC6AA1DE699\" src=\"https://t1.daumcdn.net/cfile/tistory/996C844D5C2DC6AA1D\" width=\"480\" filename=\"SC20110515-034211.png\" filemime=\"image/jpeg\" style=\"display: block; border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p><font color=\"#e31600\" style=\"font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\"><font color=\"#000000\"><br />이런식의 구조이다. 화면을 클릭하면 단말내 갤러리로 이동해서 이미지를 클릭하며 화면이 바뀔 것이다.&nbsp;<br /><br />사진을 넣을을때 화면~&nbsp;<br /><br /></font></font></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px; text-align: center;\"><span class=\"imageblock\" style=\"display: inline-block; width: 480px; height: auto; max-width: 100%;\"><img srcset=\"https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile28.uf.tistory.com%2Fimage%2F99175E4B5C2DC71414B4F0\" src=\"https://t1.daumcdn.net/cfile/tistory/99175E4B5C2DC71414\" width=\"480\" filename=\"SC20110515-040113.png\" filemime=\"image/jpeg\" style=\"display: block; border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p><font color=\"#e31600\" style=\"font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\"><font color=\"#000000\"><br /><br />이런 화면이 될 것이고 가입을 하게 되면,&nbsp;<br /><br />서버측의 화면도 추가 하겠다..&nbsp;<br /><br /></font></font></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px; text-align: center;\"><span class=\"imageblock\" style=\"display: inline-block; width: 800px; height: auto; max-width: 100%;\"><img srcset=\"https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile21.uf.tistory.com%2Fimage%2F99FA29435C2DC75F249EE5\" src=\"https://t1.daumcdn.net/cfile/tistory/99FA29435C2DC75F24\" width=\"800\" filename=\"서버화면.jpg\" filemime=\"image/jpeg\" style=\"display: block; border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px;\"><br /><br />붉은 테두리에 서버쪽에 화면에 추가된 내용을 볼 수 있다.&nbsp;<br /><br />여기서 설명하고 있는 소스는 C2DM 을 이용한 sns 서비스이다. 간단히 설명 하자면&nbsp;서드파티션 서버로 로컬 서버를 이용 해서&nbsp;<br />데이터를 저장해서 단말간 메시지 통신을 하는 구조이다. 간단한 네이버 톡이라 생각 해도 무방하다.<br /><br />이부분에 대해선 나중에 연재 하도록 하겠다. 지금 주 강의는 파일 전송이니 ...<br /><br />파일을 전송하는 부분은 이렇게 보내면 된다.&nbsp;<br /><br /></p>\r\n<div class=\"txc-textbox\" style=\"border-width: 3px; border-style: double; border-color: #c1c1c1; padding: 10px; background-color: #eeeeee;\">\r\n   <p style=\"padding: 0px;\">/**<br />&nbsp; * Account.<br />&nbsp; *<br />&nbsp; * @return the string<br />&nbsp; */<br />&nbsp;private String account(){<br />&nbsp;&nbsp;String accounts=\"\";<br />&nbsp;&nbsp;try {<br />&nbsp;<font color=\"#e31600\">&nbsp;파일을 얻어와서 생성해서 URL 에 태운다.&nbsp;</font><br />&nbsp;&nbsp;&nbsp;File file = new File(imgPath);<br />&nbsp;&nbsp;&nbsp;HttpClient httpclient = new DefaultHttpClient();<br />&nbsp;&nbsp;&nbsp;httpclient.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);</p>\r\n   <p style=\"padding: 0px;\">&nbsp;&nbsp;&nbsp;HttpPost httppost = new HttpPost(NootoURL.URL+ ResultConst.PROFILEJOIN);<br />&nbsp;&nbsp;&nbsp;MultipartEntity mpEntity = new MultipartEntity();<br />&nbsp;&nbsp;<font color=\"#e31600\">이부분의 설정으로 파일을 보낸다.</font><br />&nbsp;&nbsp;&nbsp;ContentBody cbFile = new FileBody(file, \"image/jpeg\");<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"doc\", cbFile);&nbsp;&nbsp;<font color=\"#e31600\">서버에서 처리해주는 파일이름이&nbsp;doc 이 되겠고, 내가 보내는 파일이 cbFile이다.</font><br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;//차후 수정 서버 부분 수정<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_id\", new StringBody(\"abcd\"));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_password\", new StringBody(prof_password.getText().toString()));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_name\", new StringBody(<font color=\"#e31600\">prof</font>_name.getText().toString()));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_age\", new StringBody(prof_birth.getText().toString()));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_hiword\", new StringBody(prof_hiword.getText().toString()));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_phone\", new StringBody(prof_phone));<br />&nbsp;&nbsp;&nbsp;mpEntity.addPart(\"prof_device\", new StringBody(NootoGlobal.getProductID()));</p>\r\n   <p style=\"padding: 0px;\">&nbsp;&nbsp;&nbsp;httppost.setEntity(mpEntity);<br />&nbsp;&nbsp;&nbsp;HttpResponse response = httpclient.execute(httppost);<br />&nbsp;&nbsp;&nbsp;HttpEntity resEntity = response.getEntity();<br />&nbsp;&nbsp;&nbsp;/*<br />&nbsp;&nbsp;&nbsp;*/<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;String responseData = EntityUtils.toString(resEntity).toString(); // XML문서 읽기<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;Log.d(\"nootok\", \"리스폰스\" + responseData);<br />&nbsp;&nbsp;&nbsp;DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<br />&nbsp;&nbsp;&nbsp;DocumentBuilder builder = factory.newDocumentBuilder();<br />&nbsp;&nbsp;&nbsp;Document document = builder.parse(new InputSource(new StringReader(responseData)));<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;NodeList account = document.getElementsByTagName(\"account\");<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;accounts = account.item(0).getFirstChild().getNodeValue();<br />&nbsp;&nbsp;&nbsp;if(accounts.equals(\"S\"))<br />&nbsp;&nbsp;&nbsp;{<br />//&nbsp;&nbsp;&nbsp;&nbsp;Toast.makeText(this, \"가입성공\", Toast.LENGTH_SHORT).show();<br />&nbsp;&nbsp;&nbsp;&nbsp;Log.d(\"nootok\", \"성공\");<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;{<br />//&nbsp;&nbsp;&nbsp;&nbsp;Toast.makeText(this, \"가입실패\", Toast.LENGTH_SHORT).show();<br />&nbsp;&nbsp;&nbsp;&nbsp;Log.d(\"nootok\", \"실패\");<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;if (resEntity != null) {<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;httpclient.getConnectionManager().shutdown();<br />&nbsp;&nbsp;} catch (Exception e) {<br />//&nbsp;&nbsp;&nbsp;Toast.makeText(this, \"네트워크 오류로 글등록에 실패하였습니다.\", 2000).show();<br />&nbsp;&nbsp;&nbsp;e.printStackTrace();<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;return accounts;<br />&nbsp;}</p>\r\n   <br /></div>\r\n<p><font color=\"#e31600\" style=\"font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\"><font color=\"#000000\"><br />이부분에 대해선 나중에 더 자세히 다룰것이다. 지금 급히 글을 올리는건 고민하고 계신 한분을 위해서일 뿐이다.&nbsp;<br /><br />오픈 준비중인 프로젝트 서비스를 시작하고나서 어느정도 여유가 생기게 되면 이 프로젝트의 풀소스를 분석해 보도록 하자.<br /><br />C2DM 에 대해서 알아 볼겸(이미 여러군데에서 c2dm을 다루고 있긴 하나 실질적인 내용을 다루진 않으니 다뤄볼 생각이다.)<br /><br />마지막으로 가입된 내용의 화면을 보여주자면~</font></font></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p style=\"padding: 0px; text-align: center;\"><span class=\"imageblock\" style=\"display: inline-block; width: 480px; height: auto; max-width: 100%;\"><img srcset=\"https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile4.uf.tistory.com%2Fimage%2F994735505C2DC79C1D412B\" src=\"https://t1.daumcdn.net/cfile/tistory/994735505C2DC79C1D\" width=\"480\" filename=\"SC20110515-040345.png\" filemime=\"image/jpeg\" style=\"display: block; border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"padding: 0px;\">&nbsp;</p>\r\n<p><font color=\"#e31600\" style=\"font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\"><font color=\"#000000\"><font color=\"#000000\"><br />연습삼아 카카오톡 따라 만든 부분이고, 저작권도 나한테 있으므로 공개 공개~~&nbsp;<br /><br />그리고 폰에서 파일을 전송하기 위해선 두개의 jar 파일이 필요 하므로 첨부하도록 하겠다.&nbsp;</font></font></font><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><br style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" /><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">출처:&nbsp;</span><a href=\"https://ememomo.tistory.com/32\" style=\"color: #666666; text-decoration-line: none; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\" target=\"_blank\">https://ememomo.tistory.com/32</a><span style=\"color: #333333; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, Dotum, 돋움, &quot;Noto Sans KR&quot;, &quot;Nanum Gothic&quot;, Lato, Helvetica, sans-serif; font-size: 14px;\">&nbsp;[EpoNg\'s Life]</span></p>','https://ememomo.tistory.com/32','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:40:01',0,'2019-04-26 13:40:01','210.101.103.92','','','','','','','','','','','',''),(167,-167,'',167,0,0,'','','html1','[Android] SQLite 예제','<p><span style=\"color: #404040; font-family: 굴림;\">바로 UI부터 잡아봅시다..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">======================================&nbsp; main.xml&nbsp; ======================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:orientation=\"vertical\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"fill_parent\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"fill_parent\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;Button&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; android:id=\"@+id/insert\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:onClick=\"mOnClick\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:text=\"Insert\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;Button&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:id=\"@+id/delete\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:onClick=\"mOnClick\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:text=\"Delete\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;Button&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:id=\"@+id/update\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:onClick=\"mOnClick\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:text=\"Update\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;Button&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:id=\"@+id/select\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:onClick=\"mOnClick\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:text=\"Select\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;EditText&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:id=\"@+id/edittext\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"fill_parent\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;/LinearLayout&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">======================================================================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">다음은 DBHelper클래스 입니다..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">====================================&nbsp; WordDBHelper.java&nbsp; ==============================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">package com.lin.app;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.content.Context;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.database.sqlite.SQLiteDatabase;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.database.sqlite.SQLiteDatabase.CursorFactory;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.database.sqlite.SQLiteOpenHelper;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public class WordDBHelper extends SQLiteOpenHelper {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;public WordDBHelper(Context context) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; super(context, \"EngWord.db\", null, 1);&nbsp; // 마지막 인자는 버전임&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // TODO Auto-generated constructor stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;public void onCreate(SQLiteDatabase db) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // 쿼리구문 실행 dic이라는 테이블을 만듬&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; db.execSQL(\"CREATE TABLE dic (_id INTEGER PRIMARY KEY AUTOINCREMENT, \"+&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; \"eng TEXT, han TEXT);\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // 디비 버전이 바뀌었을 때 처리&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; db.execSQL(\"DROP TABLE IF EXISTS dic\");&nbsp; // 기존 테이블 삭제&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; onCreate(db);&nbsp; // 데이터베이스 다시 만듬&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">======================================================================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">다음은 메인 Activity클래스 입니다..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">=========================================&nbsp; LINSQLiteExActivity.java&nbsp; ====================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">package com.lin.app;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.app.Activity;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.content.ContentValues;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.database.Cursor;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.database.sqlite.SQLiteDatabase;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.os.Bundle;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.view.View;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">import android.widget.EditText;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public class LINSQLiteExActivity extends Activity {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; /** Called when the activity is first created. */&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;WordDBHelper mHelper;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;EditText mText;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; @Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; public void onCreate(Bundle savedInstanceState) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; super.onCreate(savedInstanceState);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; setContentView(R.layout.main);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mHelper=new WordDBHelper(this);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mText=(EditText) findViewById(R.id.edittext);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; public void mOnClick(View v){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; SQLiteDatabase db;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; ContentValues row;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; switch( v.getId() ){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; case R.id.insert:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db=mHelper.getWritableDatabase();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; // inser 메소드로 삽입&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; row=new ContentValues();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; row.put(\"eng\", \"boy\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; row.put(\"han\", \"남자\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db.insert(\"dic\", null, row);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; // 쿼리로 삽입&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db.execSQL(\"INSERT INTO dic VALUES (null, \'girl\', \'여자\');\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mText.setText(\"Insert success\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; case R.id.delete:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db=mHelper.getWritableDatabase();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db.delete(\"dic\", null, null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; // db.execSQL(\"DELETE FROM dic\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mText.setText(\"Delete Success\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; case R.id.update:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db=mHelper.getWritableDatabase();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; row=new ContentValues();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; row.put(\"han\", \"소년\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db.update(\"dic\", row, \"eng=\'boy\'\", null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//&nbsp; &nbsp; &nbsp; db.execSQL(\"UPDATE dic SET han=\'소년\' WHERE eng=\'boy\';\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mText.setText(\"Update Success\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; case R.id.select:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; db=mHelper.getWritableDatabase();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; Cursor cursor;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; cursor=db.query(\"dic\", new String[]{\"eng\", \"han\"}, null,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; null, null, null, null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; cursor=db.rawQuery(\"SELECT eng, han FROM dic\", null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; String result=\"\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; while( cursor.moveToNext() ){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; String eng=cursor.getString(0);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; String han=cursor.getString(1);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; result+=(eng+\" = \"+han+\"\\n\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; if( result.length()==0 ){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mText.setText(\"Empty Text\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; }else{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mText.setText(result);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; cursor.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; mHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">======================================================================================================&nbsp;</span></p>','https://cy.cyworld.com/home/39230330/post/12989661','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:40:34',0,'2019-04-26 13:40:34','210.101.103.92','','','','','','','','','','','',''),(168,-168,'',168,0,0,'','','html1','[Android] SQLite 예제 - 반갑다 친구야...','<p><span style=\"color: #555555; font-family: Tahoma;\">SQLite Local DataBase를 이용하여 어플 만드는 Tutorial 입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구&nbsp;관리&nbsp;반갑다 친구입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구 조회,&nbsp;해당 친구 상세 내용, 친구 등록, 친구 수정, 친구 삭제&nbsp;에 대해서 부분적 설명후 전체 소스를 첨부하겠습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">1. OpenDataBase&nbsp;</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">1.1. DB 생성</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">기본적으로 SQLite DB를 이용하기 때문에 DB 테이블을 생성하겠습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">temp_db_create:function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;db&nbsp;=&nbsp;bizMOB.SQLite.openDatabase();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//SQLite와&nbsp;내부&nbsp;DB연결하는&nbsp;객체를&nbsp;db에&nbsp;저장</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//트랜잭션을&nbsp;실행</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(<span class=\"string\">\"create&nbsp;table&nbsp;if&nbsp;not&nbsp;exists&nbsp;Friends_address(\"</span>&nbsp;+&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"string\">\"&nbsp;no&nbsp;integer&nbsp;primary&nbsp;key&nbsp;autoincrement,\"</span>&nbsp;+&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"string\">\"name&nbsp;varchar2,nickname&nbsp;,birthday&nbsp;,sex&nbsp;integer&nbsp;,facebook&nbsp;,mobile&nbsp;,memo&nbsp;)\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//Friends_address&nbsp;테이블을&nbsp;생성한다.&nbsp;</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//테이블이&nbsp;존재할경우&nbsp;작동되지&nbsp;않으며&nbsp;없을경우&nbsp;생성한다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//name에&nbsp;varchar2로&nbsp;타입을&nbsp;정하였지만&nbsp;없어도&nbsp;크게&nbsp;문제되지않는다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">}&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">DB에 넣을 정보는 친구정보의 no라는 자등증가하는 primary 값과</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">이름,별명,생일,성별,페이스북과,연락처,메모등을 구성하였다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">1.2. 데이터 넣기</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">테이블이 생성 되어 있어 사용상에는 크게 문제가 되지 않습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">하지만 데이터가 아무것도 없기 떄문에 빠른 확이을 위하여 임시 데이터를 넣겠습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">temp_db_insert:function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//임시&nbsp;데이터&nbsp;넣기</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;query&nbsp;=&nbsp;<span class=\"keyword\">new</span>&nbsp;Array();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;query_header&nbsp;=<span class=\"string\">\"insert&nbsp;into&nbsp;friends_address&nbsp;(name&nbsp;,nickname&nbsp;,birthday&nbsp;,sex&nbsp;,facebook&nbsp;,mobile&nbsp;,memo)&nbsp;values\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'김태희\',\'공주님\',\'1990-02-25\',1,\'http://twitter.com/@teahee\',\'01031315252\',\'내&nbsp;사랑스런&nbsp;베프\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'송혜교\',\'풀하우스\',\'1980-11-04\',1,\'http://twitter.com/@song\',\'01079795452\',\'현빈&nbsp;군대감\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'이나영\',\'도망자\',\'1989-05-16\',1,\'http://twitter.com/@na0\',\'01058581222\',\'인형&nbsp;나영\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'고소영\',\'장동건부인\',\'1988-05-05\',1,\'http://twitter.com/@goso\',\'0107979123\',\'신혼댁\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'장동건\',\'고소영남편\',\'1982-08-15\',0,\'http://twitter.com/@donggun\',\'01083254\',\'대통령\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'조인성\',\'군악대\',\'1985-05-07\',0,\'http://twitter.com/@insung\',\'0103215421\',\'군악대&nbsp;인기남\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'강동원\',\'프림없는커피\',\'1960-03-01\',0,\'http://twitter.com/@dongwon\',\'0198561245\',\'초능력자\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'차인표\',\'대물&nbsp;국회의원\',\'1990-02-17\',0,\'http://twitter.com/@menu\',\'0109506452\',\'신애라&nbsp;신애라\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.push(query_header&nbsp;+&nbsp;<span class=\"string\">\"(\'서태지\',\'난알아요\',\'1978-02-21\',0,\'http://twitter.com/@leezia\',\'0103995454\',\'힘내&nbsp;태지야\');\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;i&nbsp;=&nbsp;0;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$.each(query,function(i)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(query[i],[],function(){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">쿼리문에 배열을 선언하여 여러개의 쿼리문을 push 한 후에 each 문을 이용하여 반복작업을 수행합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">1.3. 데이터 초기화</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">자신이 넣은 자료를 초기화 하기 위하여 소스입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">SQLite에서는 truncate_table 함수를 제공하지 않습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">delete 문을 사용해야합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">temp_db_delete:function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//테이블값&nbsp;지우기</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;query&nbsp;=<span class=\"string\">\"delete&nbsp;from&nbsp;friends_address\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(query);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">테이틀의 값을 지웁니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">이것으로 기본적인 테이블 생성,데이터 입력, 데이터값 삭제를 해보았습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">만약 테이블 자체를 삭제를 하시고자 하실떄는 drop talble friends_address 를 하시면됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">2. 친구 목록 조회</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"imageblock center\" style=\"color: #555555; font-family: Tahoma; text-align: center; clear: both;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/1831B0554E2F64970F\" width=\"480\" alt=\"\" filename=\"SC20110727-100415.jpg\" filemime=\"image/jpeg\" style=\"border-width: 0px; cursor: pointer; max-width: 100%; height: auto;\" /></div>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">조회시 이름,별명,연락처로 검색이 가능하며</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">검색 전에는 모든 데이터를 출력합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구 추가가 가능합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(<span class=\"string\">\"select&nbsp;no,name,nickname,sex&nbsp;from&nbsp;Friends_address&nbsp;order&nbsp;by&nbsp;name\"</span>,[],function(tx,rs){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;$(<span class=\"string\">\'#list\'</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.empty();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$.each(rs.rows,function(index){&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;row&nbsp;=&nbsp;rs.rows.item(index);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sex&nbsp;=&nbsp;row.sex;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sex_text;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(sex&nbsp;==&nbsp;1)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sex_text&nbsp;=<span class=\"string\">\"&lt;img&nbsp;src=\"</span>http:<span class=\"comment\">//bizmob.tistory.com/script/powerEditor/images/Female.png\"&nbsp;width=\"50\"&nbsp;height=\"50\"&gt;\";</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">else</span>&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sex_text&nbsp;=<span class=\"string\">\"&lt;img&nbsp;src=\"</span>http:<span class=\"comment\">//bizmob.tistory.com/script/powerEditor/images/Man.png\"&nbsp;width=\"50\"&nbsp;height=\"50\"&gt;\";</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.append(sex_text+<span class=\"string\">\"&lt;span&gt;&lt;b&gt;\"</span>+row.name&nbsp;+<span class=\"string\">\"&lt;/b&gt;&lt;/span&gt;\"</span>&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<span class=\"string\">\"&lt;span&gt;\"</span>+row.nickname&nbsp;+<span class=\"string\">\"&lt;/span&gt;\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.table_Tr_select();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//페이지&nbsp;글&nbsp;클릭시</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">eacho 문으로 반복적으로 수행하고</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">반환된 값을 rs 라는 recordset 에 답고 해당하는 rows 지칭하고 그것을 row에 담습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">row를 이용하여 해당되는 값을 받아옵니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">이때 받아오는 값은 출력되는 컬럼명과 동일해야합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">성별에 따라 다른 사진의 경로를 넣습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">그리고 해당 값을 append 하여 기록합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">기록을 하면 해당 no 값을 td에 넣어 해당 값을 차후에 쓸수 있도록 합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">page.table_Tr_select는 말그대로</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">해당 Tr를 선택시 즉</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">사진 이름 별명 에 해당되는 줄을 클릭시 발생하는 함수를 지정한 것입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">소스는 아래와 같습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">table_Tr_select:function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//선택</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;$(<span class=\"string\">\'tbody&nbsp;&gt;&nbsp;tr\'</span>).click(function()&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;selected&nbsp;=&nbsp;$(<span class=\"keyword\">this</span>).children();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>(selected&nbsp;==&nbsp;<span class=\"string\">\'\'</span>&nbsp;||&nbsp;selected&nbsp;==&nbsp;undefined)&nbsp;<span class=\"keyword\">return</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Friend_INFO.S_NO&nbsp;=&nbsp;$(selected).attr(<span class=\"string\">\'no\'</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">/*&nbsp;새로운&nbsp;웹&nbsp;페이지를&nbsp;연다&nbsp;*/</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bizMOB.Web.open(<span class=\"string\">\"sqlite/html/sqlite_info.html\"</span>,&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;modal&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;페이지를&nbsp;modal&nbsp;를&nbsp;열것&nbsp;인지&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replace&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;현재&nbsp;페이지를&nbsp;새로운&nbsp;웹&nbsp;페이지로&nbsp;교체&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message&nbsp;:&nbsp;Friend_INFO&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;페이지에&nbsp;전달할&nbsp;데이터</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">}&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">&nbsp;</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">tbody 안에 tr를 클릭이벤트 발생시&nbsp;</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">선택한것의 자식을 선택합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">여기서 상속의 개념이 존재하게 됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">해당 선택한 값의 no값을 Json 형태의 S_NO 값에 저장합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">선택된 no 값을 넘겨주어 상세 정보에서 해당 no 에 대한 값을 조회 하기 위함입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">Friend_INFO&nbsp;에&nbsp;info&nbsp;정보에&nbsp;보내줍니다.&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><span style=\"color: #555555; font-family: Tahoma;\">이제 검색 결과가 없을 경우 조회하는 부분을 설명하였습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">이제 검색단어로 검색부분을 설명하겠습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"imageblock center\" style=\"color: #555555; font-family: Tahoma; text-align: center; clear: both;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/141A4F3D4E2F692723\" width=\"480\" alt=\"\" filename=\"SC20110727-100238.jpg\" filemime=\"image/jpeg\" style=\"border-width: 0px; cursor: pointer; max-width: 100%; height: auto;\" /></div>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">$(<span class=\"string\">\'#search\'</span>).click(function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;type&nbsp;=&nbsp;$(<span class=\"string\">\'select#searchoption&nbsp;option:selected\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//옵션에서&nbsp;선택된&nbsp;값을&nbsp;가져온다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;word&nbsp;=&nbsp;$(<span class=\"string\">\'#searchword\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//검색단어를&nbsp;가져온다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(type&nbsp;==&nbsp;<span class=\"string\">\"이름\"</span>)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type&nbsp;=&nbsp;<span class=\"string\">\"name\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(type&nbsp;==&nbsp;<span class=\"string\">\"연락처\"</span>)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type&nbsp;=&nbsp;<span class=\"string\">\"mobile\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(type&nbsp;==&nbsp;<span class=\"string\">\"별명\"</span>)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type&nbsp;=&nbsp;<span class=\"string\">\"nickname\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//선택된&nbsp;타입에&nbsp;대한&nbsp;컬럼명으로&nbsp;변경</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;query;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(word&nbsp;==&nbsp;<span class=\"string\">\"\"</span>)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;=&nbsp;<span class=\"string\">\"select&nbsp;no,name,nickname,sex&nbsp;from&nbsp;Friends_address\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">else</span>&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;word&nbsp;=&nbsp;<span class=\"string\">\"%\"</span>+word+<span class=\"string\">\"%\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;=&nbsp;<span class=\"string\">\"select&nbsp;no,name,nickname,sex&nbsp;from&nbsp;Friends_address&nbsp;where&nbsp;\"</span>+type+<span class=\"string\">\"&nbsp;like&nbsp;?\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//쿼리문을&nbsp;미리&nbsp;작성하는데&nbsp;검색어가&nbsp;없을&nbsp;경우와&nbsp;있을&nbsp;경우를&nbsp;나눠서&nbsp;구분한다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//like&nbsp;문을&nbsp;이용하여&nbsp;출력하기&nbsp;떄문에&nbsp;해당&nbsp;검색어의&nbsp;앞뒤로&nbsp;%를&nbsp;붙여준다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//%바&nbsp;는&nbsp;끝단어가&nbsp;바일&nbsp;경우&nbsp;이고&nbsp;바%는&nbsp;시작단어가&nbsp;바일&nbsp;경우이다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//%바%라면&nbsp;시작,끝&nbsp;중간에&nbsp;상관없이&nbsp;검색하는&nbsp;단어이다.</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(query);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(word);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(query,[word],function(tx,rs){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;list&nbsp;=&nbsp;$(<span class=\"string\">\'#list\'</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.empty();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$.each(rs.rows,function(index){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;row&nbsp;=&nbsp;rs.rows.item(index);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sex&nbsp;=&nbsp;row.sex;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sex_text;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">if</span>&nbsp;(sex&nbsp;==&nbsp;1)&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sex_text&nbsp;=<span class=\"string\">\"&lt;img&nbsp;src=\"</span>http:<span class=\"comment\">//bizmob.tistory.com/script/powerEditor/images/Female.png\"&nbsp;width=\"50\"&nbsp;height=\"50\"&gt;\";</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">else</span>&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sex_text&nbsp;=<span class=\"string\">\"&lt;img&nbsp;src=\"</span>http:<span class=\"comment\">//bizmob.tistory.com/script/powerEditor/images/Man.png\"&nbsp;width=\"50\"&nbsp;height=\"50\"&gt;\";</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.append(sex_text+<span class=\"string\">\"&lt;span&gt;&lt;b&gt;\"</span>+row.name&nbsp;+<span class=\"string\">\"&lt;/b&gt;&lt;/span&gt;\"</span>&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<span class=\"string\">\"&lt;span&gt;\"</span>+row.nickname&nbsp;+<span class=\"string\">\"&lt;/span&gt;\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.table_Tr_select();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//페이지&nbsp;글&nbsp;클릭시</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">});&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">추가버튼을 클릭 할경우</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구 등록 페이지로 이동합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">var&nbsp;add&nbsp;=&nbsp;bizMOB.Ui.createButton({&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button_text&nbsp;:&nbsp;<span class=\"string\">\"추가\"</span>,&nbsp;<span class=\"comment\">//&nbsp;버튼&nbsp;텍스트</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_name&nbsp;:&nbsp;<span class=\"string\">\"app/android/images/toolbar/tbb_btn_add.png\"</span>,&nbsp;<span class=\"comment\">//&nbsp;버튼&nbsp;이미지&nbsp;path</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listener&nbsp;:&nbsp;function()&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;TODO&nbsp;click&nbsp;event&nbsp;처리</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">/*&nbsp;새로운&nbsp;웹&nbsp;페이지를&nbsp;연다&nbsp;*/</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bizMOB.Web.open(<span class=\"string\">\"sqlite/html/sqlite_add.html\"</span>,&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;modal&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;페이지를&nbsp;modal&nbsp;를&nbsp;열것&nbsp;인지&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replace&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;현재&nbsp;페이지를&nbsp;새로운&nbsp;웹&nbsp;페이지로&nbsp;교체&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message&nbsp;:&nbsp;{}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;페이지에&nbsp;전달할&nbsp;데이터</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button.push(add);&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><span style=\"color: #555555; font-family: Tahoma;\">추가버튼은 toolbar에 구성되있습니다 .그렇기때문에 초기에 화면구성시</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">button.push에 포함을 시키시면됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">3. 친구 추가</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">&nbsp;</span></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"imageblock center\" style=\"color: #555555; font-family: Tahoma; text-align: center; clear: both;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/154F63334E2F64EA26\" width=\"480\" alt=\"\" filename=\"SC20110727-100225.jpg\" filemime=\"image/jpeg\" style=\"border-width: 0px; cursor: pointer; max-width: 100%; height: auto;\" /></div>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구목록페이지에서 추가 버튼을 클릭하면 이동합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">기본 틀구성은 html로 구성됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">내용을 모두 작성된 후에 toolbar의 추가버튼을 선택하여 내용이 등록됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">친구 목록 페이지의 추가버튼과는 기능이 다릅니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;add&nbsp;=&nbsp;bizMOB.Ui.createButton({&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button_text&nbsp;:&nbsp;<span class=\"string\">\"추가\"</span>,&nbsp;<span class=\"comment\">//&nbsp;버튼&nbsp;텍스트</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image_name&nbsp;:&nbsp;<span class=\"string\">\"app/android/images/toolbar/tbb_btn_add.png\"</span>,&nbsp;<span class=\"comment\">//&nbsp;버튼&nbsp;이미지&nbsp;path</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listener&nbsp;:&nbsp;function()&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;각&nbsp;input의&nbsp;내용&nbsp;갖고오기</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;name&nbsp;=&nbsp;$(<span class=\"string\">\'#name\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;nickname&nbsp;=&nbsp;$(<span class=\"string\">\'#nickname\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;birthday&nbsp;=&nbsp;$(<span class=\"string\">\'#birthday\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;facebook&nbsp;=&nbsp;$(<span class=\"string\">\'#facebook\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;mobile&nbsp;=&nbsp;$(<span class=\"string\">\'#mobile\'</span>).val();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sex&nbsp;=&nbsp;$(<span class=\"string\">\'select#sex&nbsp;option:selected\'</span>).val();&lt;br&gt;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&lt;span&nbsp;style=<span class=\"string\">\"FONT-FAMILY:&nbsp;굴림;&nbsp;WHITE-SPACE:&nbsp;normal\"</span>&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"Apple-style-span\"</span>&gt;&lt;pre&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"c-sharp\"</span>&nbsp;name=<span class=\"string\">\"code\"</span>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//성별을&nbsp;선택한&nbsp;값을&nbsp;가져온다.&lt;/pre&gt;&lt;/span&gt;</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;memo&nbsp;=&nbsp;$(<span class=\"string\">\'#memo\'</span>).val();&lt;br&gt;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&lt;span&nbsp;style=<span class=\"string\">\"FONT-FAMILY:&nbsp;굴림;&nbsp;WHITE-SPACE:&nbsp;normal\"</span>&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"Apple-style-span\"</span>&gt;&lt;pre&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"c-sharp\"</span>&nbsp;name=<span class=\"string\">\"code\"</span>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//이름&nbsp;값이&nbsp;없을&nbsp;경우&lt;/pre&gt;&lt;/span&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(name&nbsp;==\"\")&nbsp;{</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(<span class=\"string\">\"이름을&nbsp;입력해주세요\"</span>);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(<span class=\"string\">\'#name\'</span>).focus();&lt;br&gt;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&lt;span&nbsp;style=<span class=\"string\">\"FONT-FAMILY:&nbsp;굴림;&nbsp;WHITE-SPACE:&nbsp;normal\"</span>&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"Apple-style-span\"</span>&gt;&lt;pre&nbsp;<span class=\"keyword\">class</span>=<span class=\"string\">\"c-sharp\"</span>&nbsp;name=<span class=\"string\">\"code\"</span>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//해당&nbsp;위치로&nbsp;마우스&nbsp;커서&nbsp;이동&lt;/pre&gt;&lt;/span&gt;</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\">return</span>&nbsp;<span class=\"keyword\">false</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;TODO&nbsp;등록</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db.transaction(function(tx){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;query&nbsp;=&nbsp;<span class=\"string\">\"insert&nbsp;into&nbsp;friends_address&nbsp;(name&nbsp;,nickname&nbsp;,birthday&nbsp;,sex&nbsp;,facebook&nbsp;,mobile&nbsp;,memo)&nbsp;values(?,?,?,?,?,?,?)\"</span>;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;binding&nbsp;=&nbsp;<span class=\"keyword\">new</span>&nbsp;Array();&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(name);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(nickname);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(birthday);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(sex);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(facebook);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(mobile);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binding.push(memo);&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(query);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(binding.toString());&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//사파리&nbsp;콜솔에&nbsp;쿼리와&nbsp;바인딩되는&nbsp;값을&nbsp;기록</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tx.executeSql(query,binding,function(){&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(<span class=\"string\">\"등록되었습니다.\"</span>);&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">/*&nbsp;새로운&nbsp;웹&nbsp;페이지를&nbsp;연다&nbsp;*/</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bizMOB.Web.open(<span class=\"string\">\"sqlite/html/sqlite_select.html\"</span>,&nbsp;{&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;modal&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;페이지를&nbsp;modal&nbsp;를&nbsp;열것&nbsp;인지&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replace&nbsp;:&nbsp;<span class=\"keyword\">false</span>,&nbsp;<span class=\"comment\">//&nbsp;현재&nbsp;페이지를&nbsp;새로운&nbsp;웹&nbsp;페이지로&nbsp;교체&nbsp;여부</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message&nbsp;:&nbsp;{}&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"comment\">//&nbsp;페이지에&nbsp;전달할&nbsp;데이터</span>&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},function(error){&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(<span class=\"string\">\"Transaction&nbsp;error&nbsp;code:&nbsp;\"</span>+&nbsp;error.code&nbsp;+<span class=\"string\">\",&nbsp;message:&nbsp;\"</span>+error.message);&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},function(){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</li>\r\n      </ol>\r\n   </div>\r\n<p><span style=\"color: #555555; font-family: Tahoma;\">값이 없을 경우는 이름이 없을 경우에만 체크하도록하였습니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">수정 기능이 있기떄문입니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">&nbsp;추가 버튼을 클릭하여 값을 입력합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">binding값을 배열을 이용하여 반복적인 값을 입력하여 쿼리에 넣고 실행합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">4. 친구 상세 정보</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<div class=\"imageblock center\" style=\"color: #555555; font-family: Tahoma; text-align: center; clear: both;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/117094574E2F64B625\" width=\"480\" alt=\"\" filename=\"SC20110727-100314.jpg\" filemime=\"image/jpeg\" style=\"border-width: 0px; cursor: pointer; max-width: 100%; height: auto;\" /></div>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<p style=\"color: #555555; font-family: Tahoma;\">&nbsp;</p>\r\n<p><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">선택한 친구 정보의 값을 출력합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">연락처 별명 생일 메모</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">성별은 사진으로 구분합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">성별이 남자일 경우 남자사진으로 표시되며</span><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">여자일 경우 여자사진으로 표시됩니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">전화 결기는 모바일 환경에서 전화걸기 바로 작동합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">SMS는 모바일환경에서 문자보내기로 이동합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><span style=\"color: #555555; font-family: Tahoma;\">페이스 북의 경우는 알림창메세지로 주소만 표출합니다.</span><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /><br style=\"color: #555555; font-family: Tahoma;\" /></p>\r\n<div class=\"dp-highlighter\" style=\"color: #555555; font-family: Tahoma;\">\r\n   <div class=\"bar\">\r\n      <div class=\"tools\"><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">view plain</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">copy to clipboard</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">print</a><a href=\"https://bizmob.tistory.com/7#\" style=\"color: #000000; text-decoration-line: none;\" target=\"_blank\">?</a></div>\r\n      </div>\r\n   <ol start=\"1\" class=\"dp-c\">\r\n      <li class=\"alt\">requestData:function(json){&nbsp;&nbsp;</li>\r\n      <li class=\"\">&nbsp;&nbsp;&nbsp;&nbsp;db&nbsp;=&nbsp;bizMOB.SQLite.openDatabase();&nbsp;&nbsp;</li>\r\n      <li class=\"alt\">&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;=&nbsp;json.S_NO;&nbsp;&nbsp;</li>\r\n      <li ','https://bizmob.tistory.com/7','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:41:05',0,'2019-04-26 13:41:05','210.101.103.92','','','','','','','','','','','',''),(169,-169,'',169,0,0,'','','html1','[Android] 카메라로 찍은 사진 불러오기','<p><span style=\"color: #404040; font-family: 굴림;\">어플에서 버튼을 누르면&nbsp; 기본 카메라를 구동 시킨 후 찍은 사진을 어플로 가지고 오는 간단한 팁이다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">여러 응용 프로그램에 유용하게 사용될듯...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">우선 카메라 기능을 사용 하기 위해 AndroidManifest.xml 파일에 camera uses feature를 다음과 같이 추가한다..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; package=\"com.ista.photoFromCamera\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; android:versionCode=\"1\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; android:versionName=\"1.0\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;uses-feature android:name=\"android.hardware.camera\"&gt;&lt;/uses-feature&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;application android:icon=\"@drawable/icon\" android:label=\"@string/app_name\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">..................&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">다음으로 버튼과 이미지를 보여주기 위한 이미지 뷰가 있는&nbsp; 간단한 Layout 파일을 만든다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:orientation=\"vertical\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"fill_parent\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"fill_parent\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;TextView&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_width=\"fill_parent\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; android:layout_height=\"wrap_content\" android:text=\"Press the button, take a photo , and enjoy!\"/&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;Button android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\" android:id=\"@+id/btnButton\" android:text=\"Take Photo\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;/Button&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;ImageView android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\" android:id=\"@+id/imgView\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&lt;/ImageView&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;/LinearLayout&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">마지막으로 프로그램을 다음과 같이 작성 하면 된다..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public class photoFromCamera extends Activity {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; /** Called when the activity is first created. */&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">private static final int CAMERA_PIC_REQUEST = 1337;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; @Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; public void onCreate(Bundle savedInstanceState) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; Button btnPhoto ;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; super.onCreate(savedInstanceState);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; setContentView(R.layout.main);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; btnPhoto = (Button)findViewById(R.id.btnButton);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; btnPhoto.setOnClickListener( new Button.OnClickListener(){&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 버튼을 누르면 카메라를 구동 시킨다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(View v) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivityForResult(cameraIntent , CAMERA_PIC_REQUEST);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; );&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; protected void onActivityResult(int requestCode , int resultCode , Intent data )&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// Request Code 가 일치 하는지 확인&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if( requestCode == CAMERA_PIC_REQUEST )&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 카메라로 사진을 찍은 후 Add 버튼을 눌렀는지 확인 한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; if( data != null )&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Bitmap thumbnail = (Bitmap)data.getExtras().get(\"data\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; if( thumbnail != null )&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; // 가지고온 사진 데이터를 이미지 뷰에 보여 준다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; ImageView image = (ImageView)findViewById(R.id.imgView);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; image.setImageBitmap(thumbnail);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}</span></p>','http://blog.daum.net/bugking88/164','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:41:35',0,'2019-04-26 13:41:35','210.101.103.92','','','','','','','','','','','',''),(170,-170,'',170,0,0,'','','html1','[Android] 웹에 올려진 이미지 불러와 보여주기','<p><span style=\"color: #404040; font-family: 굴림;\">URL&nbsp; url = new URL(\"http://www.androidpub.com/files/attach/images/41913/pub_log_summer.png\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Bitmap bitmap = BitmapFactory.decodeStream(url.openStream());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">imageView.setImageBitmap(bitmap);</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:41:49',0,'2019-04-26 13:41:49','210.101.103.92','','','','','','','','','','','',''),(171,-171,'',171,0,0,'','','html1','[Mysql] 경도 위도를 이용한 기준 반경 내 업체 구하기 [PHP, MySQL 이용]','<p><span style=\"color: #404040; font-family: 굴림;\">이제 기준점 (127.0000000, 37.0000000)에서 DB에 저장된 지점의 거리를 계산하는 Query&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">SELECT rowid, withgo_dest_address, ( 6371 * acos( cos( radians(37) ) * cos( radians( withgo_dest_lat ) ) * cos( radians( withgo_dest_long ) - radians(127) ) + sin( radians(37) ) * sin( radians( withgo_dest_lat ) ) ) ) AS distance FROM main_withgo_table HAVING distance &lt; 500 ORDER BY distance LIMIT 0 , 5;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* &lt; 500 : 반경 km&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* LIMIT 0, 5 : 가까운 순서로 5개</span></p>','','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:42:05',0,'2019-04-26 13:42:05','210.101.103.92','','','','','','','','','','','',''),(172,-172,'',172,0,0,'','','html1','[Android] 자주사용되는 형변환','<p><span style=\"color: #404040; font-family: 굴림;\">int to String&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; String str = Integer.toString(i);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; String str = \"\" + i;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String to int&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; int i = Integer.parseInt(str);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; int i = Integer.valueOf(str).intValue();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Double to String&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; String str = Double.toString(d);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Long to String&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; String str = Long.toString(l);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Float to String&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; String str = Float.toString(f);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String to double&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; double d = Double.valueOf(str).doubleValue();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String to long&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; long l = Long.valueOf(str).longValue();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; long l = Long.parseLong(str);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String to float&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; float f = Float.valueOf(str).floatValue();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Integer to boolean&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; boolean b = (i != 0);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">boolean to Integer&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&gt; int i = (b)? 1 : 0;</span></p>','','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:42:18',0,'2019-04-26 13:42:18','210.101.103.92','','','','','','','','','','','',''),(173,-173,'',173,0,0,'','','html1','[Android] MapView / OnLongPrsss 팁','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">- OnLongPress()&nbsp;<br />&nbsp;&nbsp;<a href=\"http://spinell.net/20111881429\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40;\">http://spinell.net/20111881429</a>&nbsp;<br /><br />- MapView&nbsp;<br />&nbsp;&nbsp;<a href=\"http://dukci.blog.me/50090483452\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40;\">http://dukci.blog.me/50090483452</a>&nbsp;<br />&nbsp;&nbsp;<a href=\"http://ergate.tistory.com/143\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40;\">http://ergate.tistory.com/143</a></span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=11&amp;wr_id=31022\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=11&amp;wr_id=31022\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>\r\n<br />','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:42:33',0,'2019-04-26 13:42:33','210.101.103.92','','','','','','','','','','','',''),(174,-174,'',174,0,0,'','','html1','[Android] GPS/Network를 이용한 위치값 구하기','<p><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;* GPS/Network 이용 위/경도값 구하기&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">LocationManager lom;&nbsp; &nbsp; //위치정보를 얻기 위한 LocationManager 객체 선언&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String mylat;&nbsp; &nbsp; &nbsp; //내 현재 위도&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String mylong;&nbsp; //내 현재 경도&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String bestProvider_name;&nbsp; &nbsp; //현재 장치에서 위치값을 줄 수 있는 센서명&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">HashMap&lt;String, String&gt; hmlocation;	</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;* Critical 메소드를 통해 가장 최적의 센서를 추출한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;* 최적센서 자동추출(Gps / Network)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void getLocation() {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">lom = (LocationManager)act.getSystemService(act.LOCATION_SERVICE);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Criteria cr = new Criteria();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; cr.setAccuracy(Criteria.ACCURACY_FINE);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; cr.setAltitudeRequired(true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; cr.setPowerRequirement(Criteria.NO_REQUIREMENT);&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; bestProvider_name = lom.getBestProvider(cr, true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">lom.requestLocationUpdates(bestProvider_name, 1000, 0, lol );&nbsp; //5초주기&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;* LocationListener로 GPS센서값이 변할때마다 위도/경도값 가져오기&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">private LocationListener lol = new LocationListener() {	&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onStatusChanged(String provider, int status, Bundle extras) { }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onProviderEnabled(String provider) { }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onProviderDisabled(String provider) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Toast.makeText(act, \"현재 위치정보 사용이 불가능합니다.\\nGPS 또는 3G를 켜주세요\", Toast.LENGTH_SHORT).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onLocationChanged(Location location) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mylat = Double.toString(location.getLatitude());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mylong = Double.toString(location.getLongitude());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mylat = String.format(\"%.7f\", Double.valueOf(mylat));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mylong = String.format(\"%.7f\", Double.valueOf(mylong));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"mylocation\", bestProvider_name+\"::\"+mylat+\":::\"+mylong);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">};&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">protected void onPause() {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">super.onPause();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">lom.removeUpdates(lol);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:42:47',0,'2019-04-26 13:42:47','210.101.103.92','','','','','','','','','','','',''),(175,-175,'',175,0,0,'','','html1','[Android] 안드로이드 API를 이용하여 EditText password 모드 만들기','<p><span style=\"color: #404040; font-family: 굴림;\">EditText myEditText = (EditText) findViewById(R.id.test);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">myEditText.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">myEditText.setTransformationMethod(new PasswordTransformationMethod());</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:43:07',0,'2019-04-26 13:43:07','210.101.103.92','','','','','','','','','','','',''),(176,-176,'',176,0,0,'','','html1','[Android] SQLite 예제 - menu5_Mysetup.java','<p><span style=\"color: #404040; font-family: 굴림;\">menu5_MySetup.java&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public class menu5_MySetup extends Activity {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public String TAG = \"menu5_MySetup\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public String encoing = \"UTF-8\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">util cmsutil = new util();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Activity act = this;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent actIntent;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Activity actNext;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">EditText user_ID;&nbsp; //아이디 입력창&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">EditText user_HP;&nbsp; //폰번호 입력창&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">EditText user_Cacaotalk;&nbsp; //카카오톡id 입력창&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ImageView user_ImgView;&nbsp; //화면에 표시되는 이미지&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">menu5_MyDBManager SQLHelper;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">SQLiteDatabase db;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public String TABLE_NAME = menu5_MyDBManager.TABLE_NAME;&nbsp; //기존에 구성된 테이블명 가져옴&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public HashMap&lt;String, String&gt; hm = new HashMap&lt;String, String&gt; ();&nbsp; //웹에서 받아 정보를 기록할 객체 선언&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int num = 1;&nbsp; //고유 키 값&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int mode;&nbsp; //데이터 Insert 인지 Update 인지 구분용&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">private final static int return_getImage = 1;&nbsp; //이미지 선택을 위한 상수값&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public Bitmap selImage;&nbsp; &nbsp; //선택된 이미지 비트맵 데이터	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public String selImage_url;&nbsp; //선택된 이미지 절대경로&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/** Called when the activity is first created. */&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onCreate(Bundle savedInstanceState) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; super.onCreate(savedInstanceState);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; // TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; setContentView(R.layout.menu5_main);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; actIntent = this.getIntent();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; cmsutil.act = this;&nbsp; //유틸리티에 현재 액티비티 전달&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; user_ID = (EditText)act.findViewById(R.id.user_ID);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; user_HP = (EditText)act.findViewById(R.id.user_HP);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; user_HP.setText(cmsutil.getMyPhoneNumber(act));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; user_Cacaotalk = (EditText)act.findViewById(R.id.user_Cacaotalk);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; user_ImgView = (ImageView)act.findViewById(R.id.user_Image);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; SQLHelper = new menu5_MyDBManager(act);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; get_tableSelect();&nbsp; //기존 테이블에서 값 가져오기	&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; btnTurnOn();&nbsp; &nbsp; //버튼 이벤트 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void get_tableSelect() {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db = SQLHelper.getWritableDatabase();&nbsp; //일단 디비파일 및 테이블 작성&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Cursor result = db.query(TABLE_NAME, null, null, null, null, null, null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">result = db.rawQuery(\"select * from \" + TABLE_NAME, null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String user_IDval = null, user_HPval = null, user_Cacaotalkval = null, user_Imageval = null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String str = \"\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">while(result.moveToNext()) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">num = result.getInt(0);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_IDval = result.getString(1);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_HPval = result.getString(2);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_Cacaotalkval = result.getString(3);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_Imageval = result.getString(4);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">str = \"str : \" + num+ \"\\n\" + user_IDval + \"\\n\" + user_HPval + \"\\n\" + \"\\n\" + user_Cacaotalkval + \"\\n\" + user_Imageval;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(str.length() == 0) {&nbsp; //기존에 SQLite 데이터가 없으면 문구 출력&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mode = 0;&nbsp; //데이터 insert&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Toast.makeText(act, R.string.menu5_MySetup_noSelectValue, Toast.LENGTH_SHORT).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">mode = 1;&nbsp; //데이터 update&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_ID.setText(user_IDval);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 폰번호가 없으면 휴대폰에서 새로 읽어오고,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 그래도 없으면 폰번호 입력창 활성화...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(user_HPval == null) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_HPval = cmsutil.getMyPhoneNumber(act);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(user_HPval == null) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_HP.setEnabled(true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_HP.setText(user_HPval);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_Cacaotalk.setText(user_Cacaotalkval);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 저장된 이미지가 있을경우 절대경로를 이용해서 Bitmap으로 변환&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* inSampleSize를 통해서 1/6로 크기 변환&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(user_Imageval != null) {&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">BitmapFactory.Options options = new BitmapFactory.Options();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">options.inSampleSize = 6;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Bitmap orgI = BitmapFactory.decodeFile(user_Imageval, options);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_ImgView.setImageBitmap(orgI);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} //if&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 버튼 이벤트 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void btnTurnOn() {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 테이블에 데이터 입력&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">((Button)findViewById(R.id.user_OKBtn)).setOnClickListener(new View.OnClickListener( ) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(View v) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Insert_table();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">});&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 아니면 메인 액티비티로 돌아감&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">((Button)findViewById(R.id.user_CancelBtn)).setOnClickListener(new View.OnClickListener( ) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(View v) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">act.finish();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent intent = new Intent(act, mainHome.class);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivity(intent);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">});&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 사진 선택 입력용 버튼 이벤트&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">((Button)findViewById(R.id.user_ImageBtn)).setOnClickListener(new View.OnClickListener( ) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(View v) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">final String items[] = { \"갤러리에서 선택\", \"카메라로 촬영\" };&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//선택 메시지 창&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String url = null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 이미지 선택용 다이얼로그 띄우기&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">new AlertDialog.Builder(act).setIcon(R.drawable.menu_search).setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener( ) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(DialogInterface dialog, int item) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	Toast.makeText(getApplicationContext(), Integer.toString(item), Toast.LENGTH_LONG).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dialog.dismiss();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(item == 0) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 갤러리 호출&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Uri uri = Uri.parse(\"content://media/external/images/media\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent intent = new Intent(Intent.ACTION_VIEW, uri);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">intent.setAction(Intent.ACTION_GET_CONTENT);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">intent.setType(\"image/*\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivityForResult(intent, return_getImage);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else if(item == 1) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 카메라 호출&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivity(intent);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp; //onClick&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}).show();&nbsp; //AlertDialog&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp; //onClick&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">});&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 테이블에 데이터 추가&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void Insert_table() {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	getXMLDataList();&nbsp; //서버에서 뭔가 가져올 필요가 있을때...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String user_IDval = null, user_HPval = null, user_Cacaotalkval = null, user_Imageval = null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db = SQLHelper.getWritableDatabase();&nbsp; //일단 디비파일 및 테이블 작성&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ContentValues contVal = new ContentValues();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_IDval = cmsutil.getEditTextVal(act, R.id.user_ID);&nbsp; //아이디란 입력값 필드에 저장&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_HPval = cmsutil.getEditTextVal(act, R.id.user_HP);&nbsp; //휴대폰번호&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_Cacaotalkval = cmsutil.getEditTextVal(act, R.id.user_Cacaotalk);&nbsp; //이메일&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(selImage_url == null) {&nbsp; //선택된 사진이 없는 경우&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">selImage_url = null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">switch(mode) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">case 0:&nbsp; //데이터 insert&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.insert(TABLE_NAME, null, contVal);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String insert_sql = \"insert into \" + TABLE_NAME + \" values (\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; +&nbsp; \" \'\" + num + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; +&nbsp; \" \'\" + user_IDval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; +&nbsp; \" \'\" + user_HPval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; +&nbsp; \" \'\" + user_Cacaotalkval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; +&nbsp; \" \'\" + selImage_url + \"\');\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.execSQL(insert_sql);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Toast.makeText(act, R.string.menu5_MySetup_insertMsg, Toast.LENGTH_SHORT).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\", \"InsertDB:::\"+contVal.toString());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\", \"selImage_url:::\"+selImage_url);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">((Button)findViewById(R.id.user_OKBtn)).setEnabled(false);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">SQLHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">case 1:&nbsp; //데이터 update&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	db.update(TABLE_NAME, contVal, \"num = 1\", null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String update_sql = \"update \" + TABLE_NAME + \" set user_ID=\'\" + user_IDval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; + \" user_HP=\'\" + user_HPval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; + \" user_=\'\" + user_Cacaotalkval + \"\',\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; + \" user_Image=\'\" + selImage_url + \"\' where num=\'1\';\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.execSQL(update_sql);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Toast.makeText(act, R.string.menu5_MySetup_updateMsg, Toast.LENGTH_SHORT).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\",\"UpdateDB:::\"+update_sql);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\", \"selImage_url:::\"+selImage_url);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">SQLHelper.close();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* startActivityForResult()로 호출된 리턴된 주소값 표시&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 여기서는 사진 호출시 사용...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">protected void onActivityResult(int requestCode, int resultCode, Intent data) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">super.onActivityResult(requestCode, resultCode, data);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">switch(requestCode) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">case return_getImage :&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">try {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(data != null) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">selImage = Images.Media.getBitmap(getContentResolver(), data.getData());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 가져온 비트맵의 가로, 세로를 구한후 세로 200dp에 맞춰서 리사이즈&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int height = selImage.getHeight();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">int width = selImage.getWidth();&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">selImage = Bitmap.createScaledBitmap(selImage, (width*200)/height, 200, true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\", \"select:::\"+data.getData().toString()+\"\\n\"+selImage.toString())&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//이미지 절대경로(selImage_url) 획득&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Cursor c = getContentResolver().query(Uri.parse(data.getData().toString()), null, null, null, null);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">c.moveToNext();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">selImage_url = c.getString(c.getColumnIndex(MediaStore.MediaColumns.DATA));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(\"menu5DB\", data.getData().toString());&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 선택된 이미지 화면표시&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">user_ImgView.setImageBitmap(selImage);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} catch (FileNotFoundException e) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">e.printStackTrace();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} catch (IOException e) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">e.printStackTrace();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 혹시 서버에서 연결해서 뭔가를 가져와야 할것이 있을때 사용...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 지금은 일단 사용안함.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void getXMLDataList(String theUrl_tmp) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	if(!\"\".equals(rowid)) { } else return;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String theUrl = theUrl_tmp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(TAG, theUrl);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ArrayList&lt;NameValuePair&gt; httpParams = new ArrayList&lt;NameValuePair&gt; ();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	httpParams.add(new BasicNameValuePair(\"num\", num));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">cmsHTTP cmsHttp = new cmsHTTP();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">cmsHttp.act = act;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String tmpData = cmsHttp.sendPost(theUrl, httpParams);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(tmpData == null)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return;	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.i(TAG, tmpData);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">util cmsutil = new util();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">hm = cmsutil.xml2HashMap(tmpData, cmsHttp.encoding);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 요청한 데이터값이 없을 경우 안내물 출력후 이전페이지로 돌아감&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(cmsutil.str2int(hm.get(\"count\"), 0) &lt;= 0) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String tmp = Integer.toString(R.string.menu5_MySetup_Nomsg);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Toast.makeText(act.getBaseContext(), tmp, Toast.LENGTH_LONG).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">act.onBackPressed();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 취소키 이벤트 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public boolean onKeyDown(int keyCode, KeyEvent event) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if( keyCode == KeyEvent.KEYCODE_BACK) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">act.finish();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Intent intent = new Intent(act, mainHome.class);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivity(intent);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return super.onKeyDown(keyCode, event);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:43:22',0,'2019-04-26 13:43:22','210.101.103.92','','','','','','','','','','','',''),(177,-177,'',177,0,0,'','','html1','[Android] SQLite 예제 - Menu5_MyDBManaver.java','<p><span style=\"color: #404040; font-family: 굴림;\">public class menu5_MyDBManager extends SQLiteOpenHelper {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public static final String DATABASE_FILE = \"menu5_DB.db\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public static final String TABLE_NAME = \"menu5_Table\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public menu5_MyDBManager(Context context) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">super(context, DATABASE_FILE, null, 1);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	super(context, \"EngWord.db\", null, 1);&nbsp; // 마지막 인자는 버전임&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onCreate(SQLiteDatabase db) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String sql = \"create table \" + TABLE_NAME + \" (\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \"num integer primary key autoincrement\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \", user_ID varchar\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \", user_HP varchar\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \", user_Cacaotalk varchar\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \", user_Image varchar\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">+ \");\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.execSQL(sql);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String sql = \"drop table if exists \" + TABLE_NAME + \";\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">db.execSQL(sql);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//	db.execSQL(\"DROP TABLE IF EXISTS dic\");&nbsp; // 기존 테이블 삭제&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">onCreate(db);&nbsp; // 데이터베이스 다시 만듬&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:43:43',0,'2019-04-26 13:43:43','210.101.103.92','','','','','','','','','','','',''),(178,-178,'',178,0,0,'','','html1','[Android] EditText Focus 자동막기','<p><span style=\"color: #404040; font-family: 굴림;\">android:focusable=\"true\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">android:focusableInTouchMode=\"true\"</span></p>\r\n<p><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span></p>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">화면에서&nbsp;<strong style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\">EditText</strong>가 있을 경우 엑티비티가 생성되면서 자동으로 포커스가 가는 경우가 있습니다. 사실 경우가 있다기 보다는 무조건 포커스가 갑니다. 이것이 좋게 느껴지지는 않는군요. 자동으로 생기는 포커스를 제거하기 위해서는 다양한 방법을 사용할 수 있지만 다음의 방법이 가장 간단하지 않을까 생각합니다.</p>\r\n<div id=\"crayon-5cc28c8de2523016151753\" class=\"crayon-syntax crayon-theme-tomorrow crayon-font-monaco crayon-os-pc print-yes notranslate\" data-settings=\" minimize scroll-mouseover\" style=\"margin: 0px 0px 20px; padding: 0px; border-image: initial; font-size: 14px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 624.984px; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace; color: #444444; float: left; height: auto; border-width: 1px !important; border-style: solid !important; border-color: #999999 !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(255, 255, 255) !important;\">\r\n   <div class=\"crayon-plain-wrap\" style=\"border: 0px; vertical-align: baseline; background: 0px center; margin: 0px !important; padding: 0px !important; height: auto !important;\"><textarea wrap=\"soft\" class=\"crayon-plain print-no\" data-settings=\"dblclick\" readonly=\"\" style=\"border-width: 0px; border-style: initial; border-color: initial; border-radius: 0px; padding-top: 0px; padding-right: 5px; padding-left: 5px; font-size: 14px; overflow: hidden; vertical-align: top; width: 622.984px; margin: 0px; height: 360px; position: absolute; opacity: 0; box-shadow: none; white-space: pre; overflow-wrap: normal; resize: none; color: #000000; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; tab-size: 4; z-index: 0; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace !important;\"></textarea></div>\r\n   <div class=\"crayon-main\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; width: 622.984px; overflow: hidden; position: relative; z-index: 1;\">\r\n      <table class=\"crayon-table\" style=\"margin-left: 0px; font-size: 0.857143rem; vertical-align: baseline; color: #757575; line-height: 2; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px !important; border-width: initial !important; border-style: none !important; border-color: initial !important; border-spacing: 0px !important; width: auto !important; background: none !important; table-layout: auto !important;\">\r\n         <tbody style=\"margin: 0px; padding: 0px; border: 0px; font-size: 12px; vertical-align: baseline;\">\r\n            <tr class=\"crayon-row\" style=\"background: 0px center; margin: 0px !important; padding: 0px !important; border: none !important; vertical-align: top !important;\">\r\n               <td class=\"crayon-nums \" data-settings=\"show\" style=\"border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-style: initial; border-right-color: initial; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background: rgb(240, 240, 240) !important; color: #b5b5b5 !important;\">\r\n                  <div class=\"crayon-nums-content\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; white-space: nowrap;\">\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">1</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">2</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-3\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">3</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-4\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">4</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-5\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">5</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-6\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">6</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-7\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">7</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-8\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">8</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-9\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">9</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-10\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">10</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-11\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">11</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-12\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">12</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-13\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">13</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-14\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">14</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2523016151753-15\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">15</div>\r\n                     </div>\r\n                  </td>\r\n               <td class=\"crayon-code\" style=\"border-width: 0px; border-style: initial; border-color: initial; background: 0px center; width: 597px; margin: 0px !important; padding: 0px !important; vertical-align: top !important;\">\r\n                  <div class=\"crayon-pre\" style=\"margin: 0px; padding: 0px; vertical-align: baseline; color: #000000; white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important;\">\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-ta\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #fa9844 !important;\">&lt;?</span><span class=\"crayon-e\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">xml </span><span class=\"crayon-i\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">version</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"1.0\"</span><span class=\"crayon-h\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-i\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">encoding</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"utf-8\"</span><span class=\"crayon-ta\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #fa9844 !important;\">?&gt;</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">&lt;LinearLayout</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-3\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">xmlns<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">android</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"<a class=\"vglnk\" href=\"http://schemas.android.com/apk/res/android\" rel=\"nofollow\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; outline: none; color: #9f9f9f; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\" target=\"_blank\"><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">http</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">://</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">schemas</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">.</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">android</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">.</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">com</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">/</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">apk</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">/</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">res</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">/</span><span style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">android</span></a>\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-4\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">orientation</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"vertical\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-5\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusable</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-6\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusableInTouchMode</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-7\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_width</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"fill_parent\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-8\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_height</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"fill_parent\"</span><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">&gt;</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-9\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">&nbsp;</div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-10\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">&lt;EditText</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-11\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">id</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"@+id/editText\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-12\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_width</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"fill_parent\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-13\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_height</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"wrap_content\"</span><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">/&gt;</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-14\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">&nbsp;</div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2523016151753-15\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">&lt;/LinearLayout&gt;</span></div>\r\n                     </div>\r\n                  </td>\r\n               </tr>\r\n            </tbody>\r\n         </table>\r\n      </div>\r\n   </div>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">위에서 볼 수 있듯이 가장 바깥에 있는&nbsp;<strong style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\">LinearLayout</strong>에 다음의 두개의 옵션을 추가하는것만으로&nbsp;<strong style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\">EditText</strong>에 포커스가 자동으로 가는것을 막을 수 있습니다.</p>\r\n<div id=\"crayon-5cc28c8de2533580948130\" class=\"crayon-syntax crayon-theme-tomorrow crayon-font-monaco crayon-os-pc print-yes notranslate\" data-settings=\" minimize scroll-mouseover\" style=\"margin: 0px 0px 20px; padding: 0px; border-image: initial; font-size: 14px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 624.984px; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace; color: #444444; float: left; height: auto; border-width: 1px !important; border-style: solid !important; border-color: #999999 !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(255, 255, 255) !important;\">\r\n   <div class=\"crayon-plain-wrap\" style=\"border: 0px; vertical-align: baseline; background: 0px center; margin: 0px !important; padding: 0px !important; height: auto !important;\"><textarea wrap=\"soft\" class=\"crayon-plain print-no\" data-settings=\"dblclick\" readonly=\"\" style=\"border-width: 0px; border-style: initial; border-color: initial; border-radius: 0px; padding-top: 0px; padding-right: 5px; padding-left: 5px; font-size: 14px; overflow: hidden; vertical-align: top; width: 622.984px; margin: 0px; height: 48px; position: absolute; opacity: 0; box-shadow: none; white-space: pre; overflow-wrap: normal; resize: none; color: #000000; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; tab-size: 4; z-index: 0; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace !important;\"></textarea></div>\r\n   <div class=\"crayon-main\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; width: 622.984px; overflow: hidden; position: relative; z-index: 1;\">\r\n      <table class=\"crayon-table\" style=\"margin-left: 0px; font-size: 0.857143rem; vertical-align: baseline; color: #757575; line-height: 2; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px !important; border-width: initial !important; border-style: none !important; border-color: initial !important; border-spacing: 0px !important; width: auto !important; background: none !important; table-layout: auto !important;\">\r\n         <tbody style=\"margin: 0px; padding: 0px; border: 0px; font-size: 12px; vertical-align: baseline;\">\r\n            <tr class=\"crayon-row\" style=\"background: 0px center; margin: 0px !important; padding: 0px !important; border: none !important; vertical-align: top !important;\">\r\n               <td class=\"crayon-nums \" data-settings=\"show\" style=\"border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-style: initial; border-right-color: initial; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background: rgb(240, 240, 240) !important; color: #b5b5b5 !important;\">\r\n                  <div class=\"crayon-nums-content\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; white-space: nowrap;\">\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2533580948130-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">1</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de2533580948130-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">2</div>\r\n                     </div>\r\n                  </td>\r\n               <td class=\"crayon-code\" style=\"border-width: 0px; border-style: initial; border-color: initial; background: 0px center; width: 604px; margin: 0px !important; padding: 0px !important; vertical-align: top !important;\">\r\n                  <div class=\"crayon-pre\" style=\"margin: 0px; padding: 0px; vertical-align: baseline; color: #000000; white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important;\">\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2533580948130-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusable</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de2533580948130-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusableInTouchMode</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     </div>\r\n                  </td>\r\n               </tr>\r\n            </tbody>\r\n         </table>\r\n      </div>\r\n   </div>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">위의 옵션은 가장 바깥쪽 엘리먼트인 LinearLayout이 우선적으로 포커스를 받아버림으로써 EditText로 포커스가 가는것을 막는 설정입니다. 원래 LinearLayout은 포커스를 받는 대상이 아니지만 포커스를 받게함과 동시에 LinearLayout은 특성상 포커스를 받아도 티가 나지 않기 때문에 별 문제 없이 사용할 수 있습니다.</p>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">만약에 위와 같은 구조로 화면이 구성되지 않아 위의 방법을 구현하기 힘들경우 눈에 보이지 않는 LinearLayout을 하나 추가해 주시면 됩니다.</p>\r\n<div id=\"crayon-5cc28c8de253a258663686\" class=\"crayon-syntax crayon-theme-tomorrow crayon-font-monaco crayon-os-pc print-yes notranslate\" data-settings=\" minimize scroll-mouseover\" style=\"margin: 0px 0px 20px; padding: 0px; border-image: initial; font-size: 14px; vertical-align: baseline; box-sizing: border-box; text-size-adjust: none; width: 624.984px; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace; color: #444444; float: left; height: auto; border-width: 1px !important; border-style: solid !important; border-color: #999999 !important; overflow: hidden !important; position: relative !important; direction: ltr !important; text-shadow: none !important; background: rgb(255, 255, 255) !important;\">\r\n   <div class=\"crayon-plain-wrap\" style=\"border: 0px; vertical-align: baseline; background: 0px center; margin: 0px !important; padding: 0px !important; height: auto !important;\"><textarea wrap=\"soft\" class=\"crayon-plain print-no\" data-settings=\"dblclick\" readonly=\"\" style=\"border-width: 0px; border-style: initial; border-color: initial; border-radius: 0px; padding-top: 0px; padding-right: 5px; padding-left: 5px; font-size: 14px; overflow: hidden; vertical-align: top; width: 622.984px; margin: 0px; height: 144px; position: absolute; opacity: 0; box-shadow: none; white-space: pre; overflow-wrap: normal; resize: none; color: #000000; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; tab-size: 4; z-index: 0; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace !important;\"></textarea></div>\r\n   <div class=\"crayon-main\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; width: 622.984px; overflow: hidden; position: relative; z-index: 1;\">\r\n      <table class=\"crayon-table\" style=\"margin-left: 0px; font-size: 0.857143rem; vertical-align: baseline; color: #757575; line-height: 2; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px !important; border-width: initial !important; border-style: none !important; border-color: initial !important; border-spacing: 0px !important; width: auto !important; background: none !important; table-layout: auto !important;\">\r\n         <tbody style=\"margin: 0px; padding: 0px; border: 0px; font-size: 12px; vertical-align: baseline;\">\r\n            <tr class=\"crayon-row\" style=\"background: 0px center; margin: 0px !important; padding: 0px !important; border: none !important; vertical-align: top !important;\">\r\n               <td class=\"crayon-nums \" data-settings=\"show\" style=\"border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-style: initial; border-right-color: initial; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background: rgb(240, 240, 240) !important; color: #b5b5b5 !important;\">\r\n                  <div class=\"crayon-nums-content\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background: 0px center; white-space: nowrap;\">\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">1</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">2</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-3\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">3</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-4\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">4</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-5\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">5</div>\r\n                     <div class=\"crayon-num\" data-line=\"crayon-5cc28c8de253a258663686-6\" style=\"margin: 0px; padding: 0px 5px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; background: 0px center; text-align: center; height: inherit; line-height: inherit !important; font-weight: inherit !important;\">6</div>\r\n                     </div>\r\n                  </td>\r\n               <td class=\"crayon-code\" style=\"border-width: 0px; border-style: initial; border-color: initial; background: 0px center; width: 604px; margin: 0px !important; padding: 0px !important; vertical-align: top !important;\">\r\n                  <div class=\"crayon-pre\" style=\"margin: 0px; padding: 0px; vertical-align: baseline; color: #000000; white-space: pre; overflow: visible; tab-size: 4; border: none !important; background: none !important;\">\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-1\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">&lt;LinearLayout</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-2\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">id</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"@+id/linearLayout_focus\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-3\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusable</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-4\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">focusableInTouchMode</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"true\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-5\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_width</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"0px\"</span></div>\r\n                     <div class=\"crayon-line\" id=\"crayon-5cc28c8de253a258663686-6\" style=\"margin: 0px; padding: 0px 5px; border: 0px; vertical-align: baseline; font-family: inherit; background: 0px center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">android<span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">:</span><span class=\"crayon-e \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #e3ae3a !important;\">layout_height</span><span class=\"crayon-o\" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #48a9ae !important;\">=</span><span class=\"crayon-s \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #839a31 !important;\">\"0px\"</span><span class=\"crayon-r \" style=\"margin: 0px; padding: 0px; border: 0px; font-size: inherit !important; vertical-align: baseline; font-family: inherit; height: inherit; line-height: inherit !important; font-weight: inherit !important; color: #6687b7 !important;\">/&gt;</span></div>\r\n                     </div>\r\n                  </td>\r\n               </tr>\r\n            </tbody>\r\n         </table>\r\n      </div>\r\n   </div>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">예전에는 엑티비티가 뜨는 순간부터 오른쪽의 모습을 가지던것이 왼쪽과 같이 자동으로 포커스가 가는것이 사라졌습니다.<br /><img class=\"align aligncenter\" alt=\"사용자 삽입 이미지\" src=\"http://theeye.pe.kr/wp-content/uploads/1/1260771945.png\" width=\"250\" style=\"margin: 0.857143rem auto; padding: 0px; border: 0px; vertical-align: baseline; display: block; max-width: 100%; height: auto; border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 4px; clear: both;\" /></p>\r\n<div style=\"margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff; text-align: center;\">[좌 : 자동포커스 제거 후 / 우 : 자동포커스 제거 전]</div>\r\n<div style=\"margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff; text-align: center;\">&nbsp;</div>\r\n<p>&nbsp;</p>\r\n<p style=\"margin-bottom: 1.71429rem; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; line-height: 1.71429; color: #444444; font-family: &quot;Open Sans&quot;, Helvetica, Arial, sans-serif; background-color: #ffffff;\">참고:&nbsp;<a href=\"http://stackoverflow.com/questions/1555109/stop-edittext-from-gaining-focus-at-activity-startup\" style=\"margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; outline: none; color: #9f9f9f;\" target=\"_blank\">http://stackoverflow.com/questions/1555109/stop-edittext-from-gaining-focus-at-activity-startup</a></p>','http://theeye.pe.kr/archives/1423','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:44:12',0,'2019-04-26 13:44:12','210.101.103.92','','','','','','','','','','','',''),(179,-179,'',179,0,0,'','','html1','[php] php 썸네일 이미지 만들기','<p><span style=\"color: #404040; font-family: 굴림;\">&lt;?php&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//이미지 사이즈를 구해서 100픽셀을 기준으로 퍼센트를 구한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 100 픽셀은 썸네일 가로이미지가 되고&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// 세로는 원본비율에 맞게 구한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$gi_joon = \"100\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$imagehw = GetImageSize(\"test.jpg\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$imagewidth = $imagehw[0];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$imageheight = $imagehw[1];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$new_height = $imageheight * $gi_joon / $imagewidth ;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$new_height=ceil($new_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$new_width = $gi_joon;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$src = ImageCreateFromJPEG(\"test.jpg\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$thumb = ImageCreate($new_width,$new_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$thumb = imagecreatetruecolor($new_width,$new_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">imagecopyresampled($thumb,$src,0,0,0,0,$new_width,$new_height,imagesx($src),imagesy($src));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ImageJPEG($thumb,\"thumb/test.jpg\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ImageDestroy($thumb);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">===========================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위 소스를 응용...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;?&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $save_image_dir = \"./tmp_dir/\";&nbsp; //이미지저장경로&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; if($_FILES[\'community_img\'][\'name\'] == null) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; $msg = \"not upload file\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $tmp_img = explode(\".jpg\", $_FILES[\'community_img\'][\'name\']);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; srand((double)microtime()*1000000);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $randval = rand(1, 999999);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $img_name = $tmp_img.\"_\".date(\'Y-m-d_H_i_s\').$randval.\".jpg\";&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $dest = $save_image_dir.$img_name;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $org_img = imagecreatefromjpeg($_FILES[\'community_img\'][\'tmp_name\']);&nbsp; //원본 이미지&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $org_img_info = getImageSize($_FILES[\'community_img\'][\'tmp_name\']);&nbsp; &nbsp; //원본 이미지 크기값&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $org_img_width = $org_img_info[0];&nbsp; //원본 이미지 가로&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $org_img_height = $org_img_info[1];	//원본 이미지 세로&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; // 가로 크기 300으로 리사이즈, 세로는 가로 비율에 맞춰 리사이즈&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $dest_img_width = 300;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $dest_img_height = $org_img_height * (300/$org_img_width);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $dest_img_height = ceil($dest_img_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; $new_img = imagecreatetruecolor($dest_img_width, $dest_img_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; //imagecopyresampled($new_img, $org_img, 0, 0, 0, 0, $dest_img_width, $dest_img_height, $org_img_width, $org_img_height);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; imagecopyresampled($new_img, $org_img, 0, 0, 0, 0, $dest_img_width, $dest_img_height, imagesx($org_img), imagesy($org_img));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; if(imagejpeg($new_img, $dest)) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; imagedestroy($new_img);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; $msg = \"success!\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; } else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; $msg = \"fail~\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;html&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;body&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;center&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">result : &lt;? echo(\"$msg\"); ?&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;/center&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;/body&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;/html&gt;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:44:31',0,'2019-04-26 13:44:31','210.101.103.92','','','','','','','','','','','',''),(180,-180,'',180,0,0,'','','html1','[Android] Strings.xml 에 있는 메시지값 불러오기','<p><span style=\"color: #404040; font-family: 굴림;\">Toast 나 Dialog 등에서 Strings.xml에 정의된 문자열 불러오기&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">예제)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">dialog.setMessage(activity.getText(R.string.web_conn));&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">or&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">(String) act.getText(R.string.detail_write_reply_null_id);</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:44:42',0,'2019-04-26 13:44:42','210.101.103.92','','','','','','','','','','','',''),(181,-181,'',181,0,0,'','','html1','[Android] 이미지버튼에 자바api로 매핑','<p><span style=\"color: #404040; font-family: 굴림;\">write_menu4_OKBtn.setBackgroundDrawable(getResources().getDrawable(R.drawable.wait_ok_click_btn));</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:44:52',0,'2019-04-26 13:44:52','210.101.103.92','','','','','','','','','','','',''),(182,-182,'',182,0,0,'','','html1','[Android] Option menu 사용예제','<p><span style=\"color: #404040; font-family: 굴림;\">//========================================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 옵션메뉴 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public boolean onCreateOptionsMenu(Menu menu) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">MenuInflater inflater = getMenuInflater();&nbsp; //옵션메뉴를 액티비티에 추가&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">inflater.inflate(R.menu.option_menu, menu);&nbsp; //메뉴객체를 inflate()메소드로 화면에 표시&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 옵션메뉴 아이템을 선택했을때 실행할 프로세스를 작성&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 이미 Activity에 정의된 메소드 이므로 @Override형식으로 함&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public boolean onOptionsItemSelected(MenuItem item) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">boolean tmp = new optionMenu(this).initSelected(item);&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(tmp) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return tmp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return super.onOptionsItemSelected(item);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//========================================================================</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:45:02',0,'2019-04-26 13:45:02','210.101.103.92','','','','','','','','','','','',''),(183,-183,'',183,0,0,'','','html1','[Ubuntu] 우분투 vnc 설정','<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">우분투에서 vncserver를 사용하는 사람이 별로 없는지 관련 자료를 찾는게 쉽지 않다 ..</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">결국 하나 찾아서 성공한 것이 vnc4server 이다.&nbsp;</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">Step 1&nbsp; vncserver 를 위해서 2개의 패키지를 설치해야 한다.&nbsp;</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /></p>\r\n<div style=\"margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">- xinet&nbsp; (telnet 설치했다면 기본적으로 깔려있을것이다.)<br />- vnc4server<br /><br />** 시냅틱 패키지 관리자를 이용해서 설치할수 있다 다음과 같이 커맨드 창에서 설치도 가능하다&nbsp;<br />\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">sudo apt-get install vnc4server xinetd</div>\r\n   <br /></div>\r\n<p><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">Step&nbsp;</span><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">2</span><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">&nbsp; vnc4server 패스워드 설정&nbsp;</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /></p>\r\n<div style=\"margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">citylock@ubuntu910:~$ vnc4server&nbsp;<br /><br />You will require a password to access your desktops.<br /><span style=\"font-weight: bold; color: #e31600;\">Password:</span><br style=\"font-weight: bold; color: #e31600;\" /><span style=\"font-weight: bold; color: #e31600;\">Verify:</span><br style=\"font-weight: bold; color: #e31600;\" />New \'ubuntu910:1 (citylock)\' desktop is&nbsp;<span style=\"font-weight: bold; color: #e31600;\">ubuntu910:1</span><br /><br />Creating default startup script /home/citylock/.vnc/xstartup<br />Starting applications specified in /home/citylock/.vnc/xstartup<br />Log file is /home/citylock/.vnc/ubuntu910:1.log<br /><br />citylock@ubuntu910:~$&nbsp;<span style=\"font-weight: bold; color: #e31600;\">vnc4server -kill :1</span><br /></div>\r\n   <br />- vnc 클라이언트에서 접속할 패스워드 입력&nbsp;<br />- ubuntu910:1 에서&nbsp;<span style=\"font-weight: bold; color: #e31600;\">:1</span>&nbsp;은 vncserver의 display 번호이다. 연결시 필요한 번호라 기억해 줘야 한다.&nbsp;<br />-&nbsp;<span style=\"font-weight: bold; color: #e31600;\">vnc4server -kill :1&nbsp;</span>다음 설정을 위해서 vnc4server를 중지 시킨다.&nbsp;<br /><br />참고로 패스워드를 설정하면 ~/,vnc/ 에 아래과 같은 파일이 생성된다.&nbsp;<br />\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">citylock@ubuntu910:~/.vnc$ ls -al<br />합계 20<br />-rw-------&nbsp; 1 citylock citylock&nbsp;&nbsp;&nbsp; 8 2010-01-29 09:37 passwd&nbsp;&nbsp;<span style=\"font-weight: bold; color: #e31600;\">(패스워드)</span><br />-rw-r--r--&nbsp; 1 citylock citylock 1442 2010-01-29 09:42 ubuntu910:1.log<br />-rwxr-xr-x&nbsp; 1 citylock citylock&nbsp; 334 2010-01-29 09:39 xstartup&nbsp;<span style=\"font-weight: bold; color: #e31600;\">(vnc4server 설정파일)</span><br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>\r\n   <br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><br />Step&nbsp;3&nbsp; xstartup 설정 변경<br /></div>\r\n<div style=\"margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">(before)<br />\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">#!/bin/sh<br /># Uncomment the following two lines for normal desktop:<br />#unset SESSION_MANAGER<br />#exec /etc/X11/xinit/xinitrc<br />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br />xsetroot -solid grey<br />vncconfig -iconic &amp;<br />xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" &amp;<br />twm &amp;</div>\r\n   &nbsp;<br />(after)<br />\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">#!/bin/sh<br /># Uncomment the following two lines for normal desktop:<br /><font color=\"#e31600\"><strong>unset SESSION_MANAGER<br /></strong></font><font color=\"#e31600\"><strong>exec /etc/X11/xinit/xinitrc<br /></strong><br /></font><strong><font color=\"#e31600\">gnome-session &amp;</font></strong><br /><br style=\"color: #e31600;\" />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br /><span style=\"font-weight: bold;\">#xsetroot -solid grey</span><br style=\"font-weight: bold;\" /><span style=\"font-weight: bold;\">#vncconfig -iconic &amp;</span><br style=\"font-weight: bold;\" /><span style=\"font-weight: bold;\">#xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" &amp;</span><br style=\"font-weight: bold;\" /><span style=\"font-weight: bold;\">#twm &amp;</span></div>\r\n   <br /><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">Step&nbsp;4&nbsp; /etc/X11/xinit/xinitrc 파일의 권한 변경 (실행가능파일)<br /></div>\r\n<div style=\"margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">\r\n   <div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">sudo chmod 755 /etc/X11/xinit/xinitrc</div>\r\n   </div>\r\n<p><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">Step&nbsp;</span><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">5&nbsp; vnc4server 실행&nbsp;</span><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br /></span></p>\r\n<div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">citylock@ubuntu910:~$ vnc4server&nbsp;<br />New \'ubuntu910:1 (citylock)\' desktop is&nbsp;<font color=\"#e31600\"><strong>ubuntu910:1</strong></font><br />Starting applications specified in /home/citylock/.vnc/xstartup<br />Log file is /home/citylock/.vnc/ubuntu910:1.log<br /></div>\r\n<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br />Step 6 vnc 클라이언트 접속&nbsp;<br /></span></p>\r\n<div class=\"imageblock\" style=\"margin: 0px; padding: 0px; display: inline;\"><img src=\"https://img1.daumcdn.net/thumb/R720x0.q80/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile26.uf.tistory.com%2Fimage%2F16378D124B623BC7363A77\" class=\"img_thumb\" style=\"border: 0px none; vertical-align: top; display: inline; max-width: 100%; height: auto; margin: 0px auto 10px;\" /></div>\r\n<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br /><br /></span></p>\r\n<div class=\"imageblock\" style=\"margin: 0px; padding: 0px; display: inline;\"><img src=\"https://img1.daumcdn.net/thumb/R720x0.q80/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile23.uf.tistory.com%2Fimage%2F18378D124B623BC837AE34\" class=\"img_thumb\" style=\"border: 0px none; vertical-align: top; display: inline; max-width: 100%; height: auto; margin: 0px auto 10px;\" /></div>\r\n<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br /><br /><br />(참고)&nbsp;<br />- vnc4server 중지<br /></span></p>\r\n<div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">citylock@ubuntu910:~/.vnc$ vnc4server -kill :1<br />Killing Xvnc process ID 2591<br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>\r\n<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br />- vnc4server 실행확인 방법<br /></span></p>\r\n<div class=\"txc-textbox\" style=\"margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;\">citylock@ubuntu910:~/.vnc$ netstat -ntl<br />Active Internet connections (only servers)<br />Proto Recv-Q Send-Q Local Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Foreign Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><span style=\"font-weight: bold; color: #e31600;\">tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0.0.0.0:5901&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp;&nbsp;세션 번호에 따라서 5901 번부터 할당된다. )&nbsp;</span><br />tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0.0.0.0:6001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 127.0.0.1:631&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 :::6001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :::*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ::1:631&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :::*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>\r\n<p><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;\"><br /></span><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">에고 ..이거 때문에 반나절 고생했네요 ...&nbsp;</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">다른 분들은 저처럼 고생하지 말라고 포스팅 합니다.&nbsp;</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">자료 출처 : http://www.ehow.com/how_5089245_install-vnc-server-ubuntu.html</span><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /><span style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">아래는 실패했던 내용입니다.&nbsp;</span></p>','https://citylock.tistory.com/m/277','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:45:32',0,'2019-04-26 13:45:32','210.101.103.92','','','','','','','','','','','',''),(184,-184,'',184,0,0,'','','html1','[Android] 이미지의 Orientation를 체크해서 이미지 회전하기','<p><span style=\"color: #404040; font-family: 굴림;\">이미지의 Orientation 정보를 얻는 함수입니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-------------------------------------------------------------------------------------------------------------&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public synchronized static int GetExifOrientation(String filepath)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; int degree = 0;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; ExifInterface exif = null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; try&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; exif = new ExifInterface(filepath);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; catch (IOException e)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; Log.e(TAG, \"cannot read exif\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; if (exif != null)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; if (orientation != -1)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // We only recognize a subset of orientation tag values.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch(orientation)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case ExifInterface.ORIENTATION_ROTATE_90:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; degree = 90;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case ExifInterface.ORIENTATION_ROTATE_180:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; degree = 180;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case ExifInterface.ORIENTATION_ROTATE_270:&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; degree = 270;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; return degree;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이미지를 특정 각도로 회전하는 함수입니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-------------------------------------------------------------------------------------------------------------&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public synchronized static Bitmap GetRotatedBitmap(Bitmap bitmap, int degrees)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; if ( degrees != 0 &amp;&amp; bitmap != null )&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; Matrix m = new Matrix();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; m.setRotate(degrees, (float) bitmap.getWidth() / 2, (float) bitmap.getHeight() / 2 );&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; try&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bitmap b2 = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), m, true);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bitmap != b2)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitmap.recycle();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitmap = b2;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; catch (OutOfMemoryError ex)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // We have no memory to rotate. Return the original bitmap.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; return bitmap;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이미지를 불러오는 함수입니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-------------------------------------------------------------------------------------------------------------&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public synchronized static Bitmap SafeDecodeBitmapFile(String strFilePath)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">DEBUG.SHOW_DEBUG(TAG, \"[ImageDownloader] SafeDecodeBitmapFile : \" + strFilePath);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">try&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; File file = new File(strFilePath);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; if (file.exists() == false)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; DEBUG.SHOW_ERROR(TAG, \"[ImageDownloader] SafeDecodeBitmapFile : File does not exist !!\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; return null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; // Max image size&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; final int IMAGE_MAX_SIZE = GlobalConstants.getMaxImagePixelSize();	</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; BitmapFactory.Options bfo = new BitmapFactory.Options();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; bfo.inJustDecodeBounds = true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">BitmapFactory.decodeFile(strFilePath, bfo);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; if(bfo.outHeight * bfo.outWidth &gt;= IMAGE_MAX_SIZE * IMAGE_MAX_SIZE)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; bfo.inSampleSize = (int)Math.pow(2, (int)Math.round(Math.log(IMAGE_MAX_SIZE&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; / (double) Math.max(bfo.outHeight, bfo.outWidth)) / Math.log(0.5)));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; bfo.inJustDecodeBounds = false;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; bfo.inPurgeable = true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; bfo.inDither = true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; final Bitmap bitmap = BitmapFactory.decodeFile(strFilePath, bfo);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; int degree = GetExifOrientation(strFilePath);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; return GetRotatedBitmap(bitmap, degree);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">catch(OutOfMemoryError ex)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ex.printStackTrace();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return null;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:45:54',0,'2019-04-26 13:45:54','210.101.103.92','','','','','','','','','','','',''),(185,-185,'',185,0,0,'','','html1','[Android] 리스트뷰 클릭 색상변화','<div class=\"table_wrap\" style=\"margin: 0px; padding: 0px; overflow: auto; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">\r\n   <table class=\"MsoTableMediumGrid1Accent1\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border-spacing: 0px; word-break: normal; border-width: medium; border-style: none; border-color: initial;\">\r\n      <tbody>\r\n         <tr style=\"height: 23.25pt;\">\r\n            <td width=\"615\" style=\"margin: 0px; padding: 0cm 5.4pt; font-size: 14px; line-height: 1.5; border-width: 1pt; border-style: solid; border-color: #7ba0cd; background: rgb(211, 223, 238); width: 461.2pt; height: 23.25pt;\">\r\n               <p class=\"MsoNormal\" align=\"center\" style=\"margin: 0cm 0cm 0pt; padding: 0px; text-align: center;\"><b><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\"><span lang=\"EN-US\">android&nbsp;</span>특정 위치에 위젯 클릭시 색상 변환<span lang=\"EN-US\"><o:p></o:p></span></font></font></font></b></p>\r\n               </td>\r\n            </tr>\r\n         </tbody>\r\n      </table>\r\n   </div>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><span lang=\"EN-US\"><o:p><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">&nbsp;</font></o:p></span></p>\r\n<div class=\"table_wrap\" style=\"margin: 0px; padding: 0px; overflow: auto; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\">\r\n   <table class=\"MsoTableLightGridAccent1\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"border-spacing: 0px; word-break: normal; border-width: medium; border-style: none; border-color: initial;\">\r\n      <tbody>\r\n         <tr>\r\n            <td valign=\"top\" width=\"615\" style=\"margin: 0px; padding: 0cm 5.4pt; font-size: 14px; line-height: 1.5; border-width: 1pt 1pt 2.25pt; border-style: solid; border-color: #4f81bd; width: 461.2pt; background-color: transparent;\">\r\n               <p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px;\"><b><span style=\"font-size: 11pt;\"><font color=\"#000000\"><font face=\"맑은 고딕\">개발환경<span lang=\"EN-US\">&nbsp;: JDK 6.0, android API 2.2, window XP<o:p></o:p></span></font></font></span></b></p>\r\n               </td>\r\n            </tr>\r\n         </tbody>\r\n      </table>\r\n   </div>\r\n<p><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /></p>\r\n<div class=\"imageblock center\" style=\"margin: 0px; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; text-align: center; clear: both;\"><img src=\"https://img1.daumcdn.net/thumb/R720x0.q80/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile27.uf.tistory.com%2Fimage%2F163B271F4CF8695E19A7F4\" class=\"img_thumb\" style=\"border: 0px none; vertical-align: top; display: inline; max-width: 100%; height: auto; margin: 0px auto 10px;\" /></div>\r\n<p><br style=\"color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\" /></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">여러개의 데이타를 표현하고자 할때 행으로 된 리스트를 보여주게 된다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">안드로이드에서는<span lang=\"EN-US\">&nbsp;ArrayAdapter, ListView&nbsp;</span>를 상속받아 사용자정의 클래스를</font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">만들어 리스트 데이타를 표현하기도 하고<span lang=\"EN-US\">, LayoutInflater&nbsp;</span>객체로<span lang=\"EN-US\">&nbsp;addView</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">함수를 사용해 미리 정의된 행자체를 추가할수도 있다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">리스트를 만드는 방법은 다양하므로 자기가 편한 방법을 취사 선택하면<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">될것같다<span lang=\"EN-US\">.&nbsp;</span>여기에서는 위해서 언급한 두가지 경우에 따라 클릭시<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">색상 변환을 어떻게 처리할지 간단하게 다루도록 한다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><span lang=\"EN-US\"><o:p><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">&nbsp;</font></o:p></span></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">첫번째&nbsp;<span lang=\"EN-US\">ListView&nbsp;</span>를 상속받아 만들었다면 내장함수&nbsp;<span lang=\"EN-US\">setOnItemClickListener&nbsp;</span>를<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">셋팅해서 사용하면 된다<span lang=\"EN-US\">. setOnItemClickListener&nbsp;</span>에 인자로 들어가는<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\"><span lang=\"EN-US\">OnItemClickListener&nbsp;</span>클래스의&nbsp;<span lang=\"EN-US\">onItemClick&nbsp;</span>함수를 오버라이딩해서 그 내부에<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p><span style=\"font-size: 10pt; color: #303030; background-color: #ffffff; font-family: &quot;맑은 고딕&quot;;\"><font color=\"#000000\">색깔 변경 관련 소스를 집어넣는다<span lang=\"EN-US\">.</span></font></span></p>\r\n<pre class=\"brush:java hljs\" name=\"code\" style=\"margin-top: 0px; overflow: auto; color: #383a42; background: rgb(248, 248, 248); font-size: 14px; line-height: 27px; margin-bottom: 20px !important; padding: 13px 20px !important;\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">private</span><span class=\"hljs-class\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">class</span><span class=\"hljs-title\" style=\"color: #c18401;\">MyListView</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">extends</span><span class=\"hljs-title\" style=\"color: #c18401;\">ListView</span></span>{\r\n       <span class=\"hljs-keyword\" style=\"color: #a626a4;\">private</span> String[] mStrings = {<span class=\"hljs-string\" style=\"color: #50a14f;\">\"1번째\"</span>, <span class=\"hljs-string\" style=\"color: #50a14f;\">\"1번째\"</span>, <span class=\"hljs-string\" style=\"color: #50a14f;\">\"3번째\"</span>, <span class=\"hljs-string\" style=\"color: #50a14f;\">\"4번째\"</span>};\r\n       <span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-title\" style=\"color: #4078f2;\">MyListView</span><span class=\"hljs-params\">(Context context)</span></span>{\r\n           <span class=\"hljs-keyword\" style=\"color: #a626a4;\">super</span>(context);\r\n           listView();\r\n       }\r\n       <span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">void</span><span class=\"hljs-title\" style=\"color: #4078f2;\">listView</span><span class=\"hljs-params\">()</span></span>{\r\n           setAdapter(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> ArrayAdapter<string> (getContext(), android.R.layout.simple_list_item_1, mStrings));\r\n           setTextFilterEnabled(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">true</span>);\r\n           setOnItemClickListener(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> OnItemClickListener() {\r\n               <span class=\"hljs-meta\" style=\"color: #4078f2;\">@Override</span><span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">void</span><span class=\"hljs-title\" style=\"color: #4078f2;\">onItemClick</span><span class=\"hljs-params\">(AdapterView arg0, View arg1, <span class=\"hljs-keyword\" style=\"color: #a626a4;\">int</span> arg2, <span class=\"hljs-keyword\" style=\"color: #a626a4;\">long</span> arg3)</span></span>{\r\n                   arg1.setBackgroundColor(Color.RED);\r\n               }\r\n           });\r\n       }\r\n   }</string></pre>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">두번째는&nbsp;<span lang=\"EN-US\">ArrayAdapter&nbsp;</span>을 사용해서 색상을 변경하고자 할때이다<span lang=\"EN-US\">. ArrayAdapter&nbsp;</span>에서는</font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\"><span lang=\"EN-US\">getView&nbsp;</span>함수내부에 기능을 구현하게 되는데<span lang=\"EN-US\">&nbsp;getView&nbsp;</span>에서 넘어오는 데이타는<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">리스트뷰에서 한 행을 의미한다<span lang=\"EN-US\">.&nbsp;</span>한 행 전체의&nbsp;<span lang=\"EN-US\">View&nbsp;</span>가 넘어오는 것이다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">그래서 한행 전체를 변경하고 싶을때는 두번째 인자로 넘어온<span lang=\"EN-US\">&nbsp;convertView&nbsp;</span>를</font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">사용하면 되고 그 행에서 특정<span lang=\"EN-US\">&nbsp;View&nbsp;</span>의 상태를 변경하고자 할때는<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\"><span lang=\"EN-US\">TextView txtVicRank = (TextView) convertView.findViewById(R.id.vic_rank);&nbsp;</span>식으로<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">추출해서 사용하면 된다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">일단<span lang=\"EN-US\">&nbsp;View&nbsp;</span>객체가 있다면 클릭이벤트를 추가해야하는데 그 함수는&nbsp;<span lang=\"EN-US\">setOnTouchListener</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">이다<span lang=\"EN-US\">.&nbsp;</span>인자로<span lang=\"EN-US\">&nbsp;OnTouchListener&nbsp;</span>객체를 넘기게 되는데 내부에<span lang=\"EN-US\">&nbsp;onTouch&nbsp;</span>함수를 구현 하면</font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">된다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font face=\"맑은 고딕\" color=\"#000000\" size=\"2\">소스를 간략하게 설명하자면 중간에<span lang=\"EN-US\">&nbsp;setOnTouchListener&nbsp;</span>와 그 내부에<span lang=\"EN-US\">&nbsp;onTouch&nbsp;</span>가 있다</font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">인자로 넘어오는<span lang=\"EN-US\">&nbsp;MotionEvent&nbsp;</span>를 통해 어떤 이벤트가 실행되었는지 판단하고<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">그에 합당한 기능을 집어 넣으면 된다<span lang=\"EN-US\">.&nbsp;</span>소스에서는 클릭다운과 업일때 각각<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p><span style=\"font-size: 10pt; color: #303030; background-color: #ffffff; font-family: &quot;맑은 고딕&quot;;\"><font color=\"#000000\">색상을 달리하는 기능을 넣었다<span lang=\"EN-US\">.</span></font></span></p>\r\n<pre class=\"brush:java hljs aspectj\" name=\"code\" style=\"margin-top: 0px; overflow: auto; color: #383a42; background: rgb(248, 248, 248); font-size: 14px; line-height: 27px; margin-bottom: 20px !important; padding: 13px 20px !important;\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">private</span><span class=\"hljs-class\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">class</span><span class=\"hljs-title\" style=\"color: #c18401;\">GameAdapter</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">extends</span><span class=\"hljs-title\" style=\"color: #c18401;\">ArrayAdapter</span></span><jsonobject><span class=\"hljs-class\"></span>{\r\n    <span class=\"hljs-keyword\" style=\"color: #a626a4;\">private</span> ArrayList<jsonobject> items;\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-title\" style=\"color: #4078f2;\">GameAdapter</span><span class=\"hljs-params\">(Context context, <span class=\"hljs-keyword\" style=\"color: #a626a4;\">int</span> textViewResourceId, ArrayList</span></span><jsonobject><span class=\"hljs-function\"><span class=\"hljs-params\"> items)</span></span>{\r\n    	<span class=\"hljs-keyword\" style=\"color: #a626a4;\">super</span>(context, textViewResourceId, items);\r\n        <span class=\"hljs-keyword\" style=\"color: #a626a4;\">this</span>.items = items;\r\n    }\r\n    <span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">/* (non-Javadoc)\r\n     * @see android.widget.ArrayAdapter#getCount()\r\n     */</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">int</span><span class=\"hljs-title\" style=\"color: #4078f2;\">getCount</span><span class=\"hljs-params\">()</span></span>{\r\n        <span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">return</span> items.<span class=\"hljs-title\" style=\"color: #4078f2;\">size</span><span class=\"hljs-params\">()</span></span>;\r\n    }\r\n    <span class=\"hljs-meta\" style=\"color: #4078f2;\">@Override</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-function\">View <span class=\"hljs-title\" style=\"color: #4078f2;\">getView</span><span class=\"hljs-params\">(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">int</span> position, View convertView, ViewGroup parent)</span></span>{\r\n        View v = convertView;\r\n        <span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span> (v == <span class=\"hljs-keyword\" style=\"color: #a626a4;\">null</span>) {\r\n            LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n            v = vi.inflate(R.layout.rigrank_soccer_sub, <span class=\"hljs-keyword\" style=\"color: #a626a4;\">null</span>);\r\n        }\r\n        <span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">// 클릭했을때 표현 </span>\r\n        v.setOnTouchListener(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> OnTouchListener(){\r\n			<span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">boolean</span><span class=\"hljs-title\" style=\"color: #4078f2;\">onTouch</span><span class=\"hljs-params\">(View v, MotionEvent event)</span></span>{\r\n				<span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span>(event.getAction() == MotionEvent.ACTION_DOWN) {\r\n					v.setBackgroundColor(<span class=\"hljs-number\" style=\"color: #986801;\">0xB6492600</span>);\r\n				}<span class=\"hljs-keyword\" style=\"color: #a626a4;\">else</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span>(event.getAction() == MotionEvent.ACTION_UP) {\r\n					v.setBackgroundColor(<span class=\"hljs-number\" style=\"color: #986801;\">0x00000000</span>); <span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">// 원래대로 복귀</span>\r\n				}\r\n				<span class=\"hljs-keyword\" style=\"color: #a626a4;\">return</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">false</span>;\r\n			}\r\n		});\r\n        JSONObject p = items.get(position);\r\n        <span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span> (p != <span class=\"hljs-keyword\" style=\"color: #a626a4;\">null</span>) {\r\n        	TextView txtVicRank = (TextView) v.findViewById(R.id.vic_rank);\r\n           	txtVicRank.setText(<span class=\"hljs-string\" style=\"color: #50a14f;\">\"rank\"</span>);\r\n        }\r\n        <span class=\"hljs-keyword\" style=\"color: #a626a4;\">return</span> v;\r\n    }\r\n}</jsonobject></jsonobject></jsonobject></pre>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">세번째는&nbsp;<span lang=\"EN-US\">LinearLayout&nbsp;</span>를 통해서 리스트를 만드는 경우인데 리스트를 표현하는<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p><span style=\"font-size: 10pt; color: #303030; background-color: #ffffff; font-family: &quot;맑은 고딕&quot;;\"><font color=\"#000000\">방식이 틀릴뿐 클릭이벤트 처리부분은 두번째와 동일하다</font></span></p>\r\n<pre class=\"brush:java hljs cs\" name=\"code\" style=\"margin-top: 0px; overflow: auto; color: #383a42; background: rgb(248, 248, 248); font-size: 14px; line-height: 27px; margin-bottom: 20px !important; padding: 13px 20px !important;\">LinearLayout mList = (LinearLayout)mVi.inflate(R.layout.rigrank_soccer_sub, mGeneral, <span class=\"hljs-literal\" style=\"color: #0184bb;\">false</span>);\r\nJSONObject p = mReceiveData.getJSONObject(i);\r\n<span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span> (p != <span class=\"hljs-literal\" style=\"color: #0184bb;\">null</span>) {\r\n	<span class=\"hljs-keyword\" style=\"color: #a626a4;\">try</span> {\r\n    	TextView txtVicRank = (TextView) mList.findViewById(R.id.vic_rank);\r\n        TextView txtTeamName = (TextView) mList.findViewById(R.id.team_name);\r\n        String teamNo = p.getString(<span class=\"hljs-string\" style=\"color: #50a14f;\">\"TEAM_NO\"</span>);\r\n        txtTeamName.setId(Integer.parseInt(teamNo));\r\n        txtTeamName.setOnClickListener(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> OnClickListener() {\r\n			<span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">/** 상세화면으로 보낸다 */</span><span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">void</span><span class=\"hljs-title\" style=\"color: #4078f2;\">onClick</span>(<span class=\"hljs-params\">View v</span>) </span>{\r\n            	<span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">// 팀번호를 상세화면으로 보낸다</span>\r\n            	LogManager.d(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">this</span>.getClass().getName(), <span class=\"hljs-string\" style=\"color: #50a14f;\">\"Data Number : \"</span> + v.getId());\r\n            	Intent intent = <span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> Intent(mContext, TeamInfo.class);\r\n				intent.putExtra(<span class=\"hljs-string\" style=\"color: #50a14f;\">\"teamNo\"</span>, String.valueOf(v.getId()));\r\n				startActivity(intent);\r\n            }\r\n        });\r\n        <span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">// 클릭했을때 표현 </span>\r\n        txtTeamName.setOnTouchListener(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">new</span> OnTouchListener(){\r\n			<span class=\"hljs-function\"><span class=\"hljs-keyword\" style=\"color: #a626a4;\">public</span> boolean <span class=\"hljs-title\" style=\"color: #4078f2;\">onTouch</span>(<span class=\"hljs-params\">View v, MotionEvent <span class=\"hljs-keyword\" style=\"color: #a626a4;\">event</span></span>) </span>{\r\n				<span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span>(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">event</span>.getAction() == MotionEvent.ACTION_DOWN) {\r\n					v.setBackgroundColor(<span class=\"hljs-number\" style=\"color: #986801;\">0xB6492600</span>);\r\n				}<span class=\"hljs-keyword\" style=\"color: #a626a4;\">else</span><span class=\"hljs-keyword\" style=\"color: #a626a4;\">if</span>(<span class=\"hljs-keyword\" style=\"color: #a626a4;\">event</span>.getAction() == MotionEvent.ACTION_UP) {\r\n					v.setBackgroundColor(<span class=\"hljs-number\" style=\"color: #986801;\">0x00000000</span>); <span class=\"hljs-comment\" style=\"color: #a0a1a7; font-style: italic;\">// 원래대로 복귀</span>\r\n				}\r\n				<span class=\"hljs-keyword\" style=\"color: #a626a4;\">return</span><span class=\"hljs-literal\" style=\"color: #0184bb;\">false</span>;\r\n			}\r\n		});\r\n	} <span class=\"hljs-keyword\" style=\"color: #a626a4;\">catch</span> (JSONException e) {\r\n		e.printStackTrace();\r\n	}\r\n}\r\nmGeneral.addView(mList);</pre>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">상단에 있는 안드로이드 화면은 클릭시 색상이 변경되는 모습을 캡쳐한 것이다<span lang=\"EN-US\">.</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">그리고 세번째 소스로 구현한 것이다<span lang=\"EN-US\">. View&nbsp;</span>에 보면<span lang=\"EN-US\">&nbsp;setOn&nbsp;</span>으로 시작하는 함수가<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">여러개 있다<span lang=\"EN-US\">.&nbsp;</span>이벤트에 대한 구현인데&nbsp;<span lang=\"EN-US\">setOnFocusChangeListener(l),&nbsp;&nbsp;&nbsp;setOnKeyListener(l)</span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\"><span lang=\"EN-US\">setOnTouchListener(l)&nbsp;</span>등이있다<span lang=\"EN-US\">.&nbsp;</span>이름에서도 알수 있듯이 포커스가 갔을때 어떤 키를</font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">눌렸느냐 등인데 이 함수를 사용하면 위젯의 다양한 이벤트를 활용해서<span lang=\"EN-US\"></span></font></font></font></p>\r\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;\"><font size=\"2\"><font color=\"#000000\"><font face=\"맑은 고딕\">좀더 생동감 있는 어플을 구현할수 있지 않을까<span lang=\"EN-US\">?</span></font></font></font></p>','https://mainia.tistory.com/m/591','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:46:17',0,'2019-04-26 13:46:17','210.101.103.92','','','','','','','','','','','',''),(186,-186,'',186,0,0,'','','html1','[Android] 부분유료화','<p>...</p>','https://cafe.naver.com/ccjmaster.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=1820&','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:46:55',2,'2019-04-26 13:46:55','210.101.103.92','','','','','','','','','','','',''),(187,-187,'',187,0,0,'','','html1','[Android] 암시적 인텐트를 이용해 메일 보내기','<p><span style=\"color: #404040; font-family: 굴림;\">Intent i = new Intent(Intent.ACTION_SEND);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.setType(\"plain/text\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { \"받는사람메일\" });&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_SUBJECT, \"제목\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(\"메시지내용\"));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivity(i);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위 내용은 일반적은 메일 보내기 코드, 안드로이드에 깔려있는 다른 메일프로그램을 로딩한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Uri uri = Uri.fromFile(\"파일패스\");&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i = new Intent(Intent.ACTION_SEND);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.setType(\"message/rfc822\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_SUBJECT, \"제목\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(\"메시지내용\"));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">i.putExtra(android.content.Intent.EXTRA_STREAM, uri);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">startActivity(i);&nbsp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:47:24',0,'2019-04-26 13:47:24','210.101.103.92','','','','','','','','','','','',''),(188,-188,'',188,0,0,'','','html1','[Android] 색상 표현의 두 가지 방식','<p><span style=\"color: #404040; font-family: 굴림;\">//직접 색상지정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">convertView.setBackgroundColor(Color.parseColor(\"#eeeeee\"));&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">//res/values/color.xml 파일사용&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">convertView.setBackgroundResource(R.color.list_row_bg);</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:47:35',0,'2019-04-26 13:47:35','210.101.103.92','','','','','','','','','','','',''),(189,-189,'',189,0,0,'','','html1','[Android] 인앱 빌링 소개자료','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">인앱 빌링 소개자료</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31038\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31038\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      </tbody>\r\n   </table>','https://cafe.naver.com/einsware1.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=964&','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:47:58',0,'2019-04-26 13:47:58','210.101.103.92','','','','','','','','','','','',''),(190,-190,'',190,0,0,'','','html1','[Android] 뷰에서 롱클릭 이벤트 잡기','<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">일반적으로 button 이나, imageview 같은 control 들은 LongClick event 자동으로 들어 온다...</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">하지만 View 에서 사용자가 Long Click 을 했을 경우 어떻게 받을 것인가?</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">View 에 사용자가 touch 를 하면&nbsp;<b>onTouchEvent&nbsp;</b>함수를 통해서 알 수 있다.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">함수에서 final int action = ev.getAction() 을 통해 아래 action 에 따라 처리한다.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">MotionEvent.ACTION_DOWN,&nbsp;&nbsp;MotionEvent.ACTION_MOVE,&nbsp;&nbsp;MotionEvent.ACTION_UP,&nbsp;&nbsp;MotionEvent.ACTION_CANCEL</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">간단하게 말하자면 Long Click 을 위한 action 은 없기 때문에 아래와 같은 처리를 한다.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">ACTION_DOWN 을 받았을 때 handler 로 msg 를 날린다. 이 때&nbsp;sendEmptyMessageAtTime() 를 이용하면</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">message queue 에 쌓이고 이 msg 를 받았을 때 long click 에 대한 처리를 한다.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">물론 위 msg 는 이외의 다른 action 에서 removeMessages 를 해주어야 한다.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">좀 더 자세한 사항은 GestureDetector.java 를 참고하기 바란다. 여기 소스를 보면 double touch 에 대한 처리도 있다..</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">일단 long click 에 대한 소스를 짜봤다. 간단하다.&nbsp;</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">activity 하나 만들고 handler &nbsp;와 onTouchEvent(MotionEvent ev) 에 대한 처리만 있으면 된다..</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">무척 허접하니 위에서 언급한&nbsp;<b>GestureDetector.java</b>&nbsp;를 보는게 나을 것임.</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">--------- 소스 ------------</div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\"><br /></div>\r\n<div style=\"margin: 0px; padding: 0px; color: #3c362b; font-family: Arial, Helvetica, sans-serif; background-color: #fbf9f5;\">\r\n   <div style=\"margin: 0px; padding: 0px;\">public class LongKeyEventTest extends Activity {</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>private float mLastMotionX;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>private float mLastMotionY;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>private Handler mHandler;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"><b><font class=\"Apple-style-span\" color=\"#FF6600\"></font></b></span><b><font class=\"Apple-style-span\" color=\"#FF6600\">&nbsp;&nbsp; &nbsp; &nbsp;</font><font class=\"Apple-style-span\" color=\"#3366FF\">&nbsp;// ViewConfiguration 에서 Long Press 를 판단하는 time 을 가져 온다.</font></b></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"><b><font class=\"Apple-style-span\" color=\"#FF6600\"></font></b></span><b><font class=\"Apple-style-span\" color=\"#FF6600\">private static final int LONGPRESS_TIMEOUT = ViewConfiguration.getLongPressTimeout();</font></b></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"><b><font class=\"Apple-style-span\" color=\"#FF6600\"></font></b></span><b><font class=\"Apple-style-span\" color=\"#FF6600\">private static final int TAP_TIMEOUT = ViewConfiguration.getTapTimeout();</font></b></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;/** Called when the activity is first created. */</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;@Override</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;public void onCreate(Bundle savedInstanceState) {</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;super.onCreate(savedInstanceState);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;setContentView(R.layout.main);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;mHandler = new keyHandler();</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;private static final int SHOW_PRESS = 1;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;private static final int LONG_PRESS = 2;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;private static final int TAP = 3;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><br /></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;private class keyHandler extends Handler {</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><br /></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>public void handleMessage(Message msg){</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>switch(msg.what){</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case SHOW_PRESS:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"handleMessage get a SHOW_PRESS\");</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case LONG_PRESS:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"handleMessage get a LONG_PRESS\");</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><br /></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case TAP:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"handleMessage get a TAP\");</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>default:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;throw new RuntimeException(\"Unknown message \" + msg); //never</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;public boolean onTouchEvent(MotionEvent ev){</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>final int action = ev.getAction();</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>final float x = ev.getX();</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>final float y = ev.getY();</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>switch(action){</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case MotionEvent.ACTION_DOWN:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"ACTION_DOWN x: \"+x+\", y: \"+y);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"ACTION_DOWN : \"+TAP_TIMEOUT+\" : \"+LONGPRESS_TIMEOUT+\" : \"+ev.getDownTime());</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span><font class=\"Apple-style-span\" color=\"#3366FF\">mHandler.removeMessages(LONG_PRESS);</font></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"><font class=\"Apple-style-span\" color=\"#3366FF\"></font></span><font class=\"Apple-style-span\" color=\"#3366FF\">&nbsp;&nbsp; &nbsp;</font><span class=\"Apple-tab-span\" style=\"white-space: pre;\"><font class=\"Apple-style-span\" color=\"#3366FF\"></font></span><font class=\"Apple-style-span\" color=\"#3366FF\">mHandler.sendEmptyMessageAtTime(LONG_PRESS, ev.getDownTime()+ TAP_TIMEOUT + LONGPRESS_TIMEOUT);</font></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case MotionEvent.ACTION_MOVE:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"ACTION_MOVE x: \"+x+\", y: \"+y);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span><font class=\"Apple-style-span\" color=\"#3366FF\">mHandler.removeMessages(LONG_PRESS);</font></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case MotionEvent.ACTION_UP:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"ACTION_UP x: \"+x+\", y: \"+y);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span><font class=\"Apple-style-span\" color=\"#3366FF\">mHandler.removeMessages(LONG_PRESS);</font></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>case MotionEvent.ACTION_CANCEL:</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>Log.i(\"tktktk\", \"ACTION_CANCEL x: \"+x+\", y: \"+y);</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span><font class=\"Apple-style-span\" color=\"#3366FF\">mHandler.removeMessages(LONG_PRESS);</font></div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>break;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span>return true;</div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">&nbsp;&nbsp; &nbsp;}</div>\r\n   <div style=\"margin: 0px; padding: 0px;\"><br /></div>\r\n   <div style=\"margin: 0px; padding: 0px;\">}</div>\r\n   </div>','http://skyswim42.egloos.com/3628791','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:48:24',0,'2019-04-26 13:48:24','210.101.103.92','','','','','','','','','','','',''),(191,-191,'',191,0,0,'','','html1','[Android] 통화, 금액, 원 등을 표현할때 콤마가 붙도록 형변환 방법','<p><span style=\"color: #404040; font-family: 굴림;\">통화, 금액, 원 등을 표현할때 콤마가 붙도록 형변환 방법&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">DecimalFormat df = new DecimalFormat(\"###,###\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String bb = \"1234567\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Log.d(\"@@@@@@@@@@@@@@@@@@\", df.format(Double.parseDouble(bb)));&nbsp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:49:09',0,'2019-04-26 13:49:09','210.101.103.92','','','','','','','','','','','',''),(192,-192,'',192,0,0,'','','html1','[php] 날짜계산','<p><span style=\"color: #404040; font-family: 굴림;\">&lt;PHP문&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$time = time();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"-1 day\", $time)).\" 하루 전(어제)\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"-1 day\", $time)).\" 하루 전(어제)&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"now\", $time)).\" 현재&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"+1 day\", $time)).\" 하루 후(내일)&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"+1 week\", $time)).\" 일주일 후&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"-1 month\", $time)).\" 한달 전&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"+1 month\", $time)).\" 다음달&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"+6 month\", $time)).\" 6달후&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"+12 month\", $time)).\" 12달후&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"next Thursday\", $time)).\" 다음주 목요일&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"last Monday\", $time)).\" 지난 월요일&lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo date(\"Y-m-d\",strtotime(\"10 September 2000\", $time)).\" 2000년 9월 10일 &lt;br&gt;\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">echo strtotime(\"+5 minutes\"); \" 현재 시간보다 5분 후\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;쿼리문에 적용&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$query = \"SELECT (now() - interval \'1 month\')::timestamp\"; // 현재 부터 한 달 전 날&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$query = \"SELECT (now() + interval \'6 month\')::timestamp\"; // 현재 부터 6 달 후 날짜</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:49:31',0,'2019-04-26 13:49:31','210.101.103.92','','','','','','','','','','','',''),(193,-193,'',193,0,0,'','','html1','[Android] 구글맵키 배포용 버젼','<p><span style=\"color: #404040; font-family: 굴림;\">구글맵 키&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">0s7_opNnGFrFScFrZ70Cbuzt5xYwKnkFmYUQ0IA&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-xml&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;com.google.android.maps.MapView&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;android:layout_width=\"fill_parent\"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;android:layout_height=\"fill_parent\"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;android:apiKey=\"0s7_opNnGFrFScFrZ70Cbuzt5xYwKnkFmYUQ0IA\"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></p>','','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:49:47',1,'2019-04-26 13:49:47','210.101.103.92','','','','','','','','','','','',''),(194,-194,'',194,0,0,'','','html1','[Android] 구글맵 배포용 인증키 만들기','<p><span style=\"color: #404040; font-family: 굴림;\">디버그용 키&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위치 : C:\\Documents and Settings\\Administrator\\.android\\&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">명령 : keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">릴리즈용 키&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위치 : 인증서가 있는 위치&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">명령 : keytool -list -keystore 인증서이름 -storepass 인증서암호&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">키 생성 사이트 :&nbsp;</span><a href=\"http://code.google.com/android/maps-api-signup.html\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://code.google.com/android/maps-api-signup.html</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:49:58',0,'2019-04-26 13:49:58','210.101.103.92','','','','','','','','','','','',''),(195,-195,'',195,0,0,'','','html1','[Android] Pendingintent 에 Extra 데이터를 담아가야 한다면','<p><span style=\"color: #404040; font-family: 굴림;\">PendingIntent sender = PendingIntent.getBroadcast(NextAlarm.this,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Intent(NextAlarm.this, NewAlarm.class).putExtra(bundle),&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PendingIntent.FLAG_UPDATE_CURRENT);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">PedingIntent에 Extra 데이터를 담아서 가야 한다면 PedingIntent를 만들때 네번째 아큐먼트 값으로&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">PedingIntent.FLAG_UPDATE_CURRENT를 지정해 주면 된다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:50:07',0,'2019-04-26 13:50:07','210.101.103.92','','','','','','','','','','','',''),(196,-196,'',196,0,0,'','','html1','[Android] 슬립모드에서 화면 깨우고 메뉴 표시하기','<p><span style=\"color: #404040; font-family: 굴림;\">/*&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 화면이 슬립모드일경우에는, 잠금을 깨운다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |&nbsp; //화면이 잠겨있을 경우에,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |&nbsp; &nbsp; //키 잠금을 해제하고,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);&nbsp; &nbsp; &nbsp; &nbsp; //화면을 켠다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:50:16',0,'2019-04-26 13:50:16','210.101.103.92','','','','','','','','','','','',''),(197,-197,'',197,0,0,'','','html1','[Android] 네트워크 연결상태 확인하기','<p><span style=\"color: #404040; font-family: 굴림;\">public boolean isNetworkConnected(Context context) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">boolean isConnected = false;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ConnectivityManager manager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">NetworkInfo mobile = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);&nbsp; //3G&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">NetworkInfo wifi = manager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //wifi&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">NetworkInfo wimax = manager.getNetworkInfo(ConnectivityManager.TYPE_WIMAX);&nbsp; //LTE&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">boolean lte_4g = false;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(wimax != null) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">lte_4g = wimax.isConnected();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">if(mobile.isConnected() || wifi.isConnected() || lte_4g) {&nbsp; &nbsp; //3G, 4G 나 Wifi 연결&nbsp; 중이면&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">isConnected = true;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">} else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">isConnected = false;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">return isConnected;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">=====================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;//먼저 네트워크 연결상태를 확인한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; if(!isNetworkConnected(act)) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; new AlertDialog.Builder(act).setIcon(android.R.drawable.ic_dialog_alert)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; .setTitle((String)act.getText(R.string.network_disable))&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; .setMessage((String)act.getText(R.string.network_msg))&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; .setPositiveButton((String)act.getText(R.string.value_ok), new DialogInterface.OnClickListener( ) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">@Override&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">public void onClick(DialogInterface dialog, int which) {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">// TODO Auto-generated method stub&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">act.finish();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}).show();&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; } else {&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:50:26',0,'2019-04-26 13:50:26','210.101.103.92','','','','','','','','','','','',''),(198,-198,'',198,0,0,'','','html1','[php] php웹프로그래밍 가이드 소스','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">이승혁 저, php웹프로그래밍 가이드 소스</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31047\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31047\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>\r\n<br />','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:50:46',1,'2019-04-26 13:50:46','210.101.103.92','','','','','','','','','','','',''),(199,-199,'',199,0,0,'','','html1','[Ubuntu/Linux] 우분투 10.04 에서 듀얼모니터 한쪽만 회전하기','<p><span style=\"color: #404040; font-family: 굴림;\">1. nvidia setting 이용하여 듀얼모니터 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; -Configureation: Separate X screen&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; -Enable Xinerama&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. xorg.conf 저장 후 직접 수정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Section \"Screen\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Identifier&nbsp; &nbsp; \"Screen1\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Device&nbsp; &nbsp; &nbsp; &nbsp; \"Device1\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Monitor&nbsp; &nbsp; &nbsp; &nbsp; \"Monitor1\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; DefaultDepth&nbsp; &nbsp; 24&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Option&nbsp; &nbsp; &nbsp; &nbsp; \"rotate\" \"ccw\"&nbsp; &lt;--- 이부분&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; Option&nbsp; &nbsp; &nbsp; &nbsp; \"TwinView\" \"0\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; #Option&nbsp; &nbsp; &nbsp; &nbsp; \"metamodes\" \"CRT: nvidia-auto-select +0+0\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; SubSection&nbsp; &nbsp; \"Display\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; Depth&nbsp; &nbsp; &nbsp; 24&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; EndSubSection&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 참고로 Device 섹션에&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; Option \"randRRotation\" \"true\" 옵션을 주면 nvidia setting 메뉴에 회전이 생긴다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:51:02',1,'2019-04-26 13:51:02','210.101.103.92','','','','','','','','','','','',''),(200,-200,'',200,0,0,'','','html1','[Android] 안드로이드 언어설정 읽어오기','<p><span style=\"color: #404040; font-family: 굴림;\">Locale systemLocale = getResources().getConfiguration().locale;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String phoneLocale = systemLocale.getDisplayCountry();&nbsp; //대한민국&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String phoneCountry = systemLocale.getCountry();&nbsp; &nbsp; &nbsp; &nbsp; //KR&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String phoneLng = systemLocale.getLanguage();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ko</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:51:13',0,'2019-04-26 13:51:13','210.101.103.92','','','','','','','','','','','',''),(201,-201,'',201,0,0,'','','html1','[Android] Locale 국가코드','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">ENGLISH Locale constant for en.&nbsp;<br /><br />KOREA Locale constant for ko_KR.&nbsp;<br />KOREAN Locale constant for ko.&nbsp;<br /><br />CHINA Locale constant for zh_CN.&nbsp;<br />CHINESE Locale constant for zh.&nbsp;<br />FRANCE Locale constant for fr_FR.&nbsp;<br />FRENCH Locale constant for fr.&nbsp;<br />GERMAN Locale constant for de.&nbsp;<br />GERMANY Locale constant for de_DE.&nbsp;<br />ITALY Locale constant for it_IT.&nbsp;<br />ITALY Locale constant for it_IT.&nbsp;<br />JAPAN Locale constant for ja_JP.&nbsp;<br />JAPANESE Locale constant for ja.&nbsp;<br /></span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31050\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=10&amp;wr_id=31050\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>\r\n<br />','https://developer.android.com/reference/java/util/Locale.html','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:51:33',0,'2019-04-26 13:51:33','210.101.103.92','','','','','','','','','','','',''),(202,-202,'',202,0,0,'','','html1','[ETC] xml 파싱시 기호 변환','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">private function lineCheck(str)&nbsp;<br />&nbsp; {&nbsp;<br />&nbsp; str = str.split(\"\\r\\n\").join(\"\\r\");&nbsp;<br />&nbsp; str = str.split(\"&amp;quot;\").join(\"\\\"\");&nbsp;<br />&nbsp; str = str.split(\"&amp;apos;\").join(\"\'\");&nbsp;<br />&nbsp; str = str.split(\"&lt;\").join(\"&lt;\");&nbsp;<br />&nbsp; str = str.split(\"&gt;\").join(\"&gt;\");&nbsp;<br />&nbsp; str = str.split(\"&amp;amp;\").join(\"&amp;\");&nbsp;<br />&nbsp;&nbsp;<br />&nbsp; return str;&nbsp;<br />&nbsp; }&nbsp;&nbsp;<br /></span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31052\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31052\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:51:48',0,'2019-04-26 13:51:48','210.101.103.92','','','','','','','','','','','',''),(203,-203,'',203,0,0,'','','html1','[Android] ListView 스크롤 이동시 배경이 블랙이 되는 현상 해결방법','<p><span style=\"color: #404040; font-family: 굴림;\">ListView 속성에 아래 추가&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">android:cacheColorHint=\"#ffffffff\"&nbsp; &nbsp; //배경색 지정</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:52:03',0,'2019-04-26 13:52:03','210.101.103.92','','','','','','','','','','','',''),(204,-204,'',204,0,0,'','','html1','[Android] Adam / Inmobi / Admob 예제','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">if(\"ko\".equals(locale)) {&nbsp;<br />&nbsp; &nbsp; AdConfig.setClientId(\"--------\");&nbsp;<br />&nbsp; &nbsp; adView.setRequestInterval(12);&nbsp;<br />&nbsp; &nbsp; adView.setAdListener(this);&nbsp;<br />&nbsp; &nbsp; adView.setVisibility(View.VISIBLE);&nbsp;<br />&nbsp;&nbsp;<br />//	&nbsp; mIMAdView.setVisibility(View.GONE);&nbsp;<br />&nbsp; &nbsp; admob.setVisibility(View.GONE);&nbsp;<br />&nbsp; &nbsp; } else {&nbsp;<br />&nbsp; &nbsp; /*&nbsp;<br />&nbsp; &nbsp; mAdRequest = new IMAdRequest();&nbsp;<br />&nbsp; &nbsp; mAdRequest.setTestMode(true);&nbsp;<br />&nbsp; &nbsp; mIMAdView.setIMAdRequest(mAdRequest);&nbsp;<br />&nbsp; &nbsp; mIMAdInterstitial = new IMAdInterstitial(act, \"--------\");&nbsp;<br />&nbsp; &nbsp; */&nbsp;<br />&nbsp; &nbsp; admobView = new AdView(act, AdSize.BANNER, MY_AD_UNIT_ID);&nbsp;<br />&nbsp; &nbsp; admob.addView(admobView);&nbsp;<br />&nbsp; &nbsp; admobView.loadAd(new AdRequest());&nbsp;<br />&nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp; adView.setVisibility(View.GONE);&nbsp;<br />&nbsp; &nbsp; }</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31054\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31054\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:52:15',0,'2019-04-26 13:52:15','210.101.103.92','','','','','','','','','','','',''),(205,-205,'',205,0,0,'','','html1','[JAVA] 자바 시리얼통신 환경 셋팅 방법','<p><a href=\"http://java.sun.com/products/javacomm/downloads/index.html\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://java.sun.com/products/javacomm/downloads/index.html</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">해당 OS별 API를 다운로드 한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">(Windows = javacomm20-win32.zip)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">압축해제 후,&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">comm.jar&nbsp; =&gt; \\jdk\\jre\\lib\\ext&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">javax.comm.properties =&gt; \\jdk\\jre\\lib&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \\jre\\lib&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">win32com.dll =&gt; \\jdk\\bin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \\jdk\\jre\\bin</span></p>','','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:52:49',1,'2019-04-26 13:52:49','210.101.103.92','','','','','','','','','','','',''),(206,-206,'',206,0,0,'','','html1','[Linux] Ubuntu with webcam stream for mjpeg and view / serial relay','<p><span style=\"color: #404040; font-family: 굴림;\">1. ubuntu 설치 (10.04LTS)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. apache2 + mysql + php + java(jre + jdk) 설치 : 이건 그냥 웹접속을 위한 조치&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* php 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/etc/apache2/mods-available/mime.conf&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">AddType application/x-httpd-php .php .html .htm&nbsp; &nbsp; //php확장자의 연동을 위한명시&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* cgi 방식의 웹브라우저 뷰어를 위해서는 cgi-bin 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$sudo a2enmod cgi&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">$gedit /etc/apache2/sites-enabled/ooo-default&nbsp; (ooo-default 파일을 편집)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">▶ /usr/lib/cgi-bin을 /var/www 로 변경&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">▶ 밑라인에 AddHandler cgi-script cgi pi 추가&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;ScriptAlias /cgi-bin/ /var/www/cgi-bin/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &lt;Directory \"/var/www/cgi-bin\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">3. webcam / webcam-server 설치 : apt 이용&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">4. webcam 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><a href=\"http://www.lug.or.kr/docs/LINUX/others/01-06-1.htm\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://www.lug.or.kr/docs/LINUX/others/01-06-1.htm</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;참조&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; (1) .webcamrc 파일 작성 : 중간에 norm, input 은 막는다(#)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; (2) 디렉토리 램 디스크 마운트 설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mke2fs /dev/ram0&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; mount /dev/ram0 /var/www/cam_images (이 디렉토리는 미리 생성함)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; (3) cgi-bin 디렉토리에 cgi 파일작성&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; 또는, 일반 자바스크립트 html파일 작성&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &lt;img src=\"cam_images/webcam.jpeg\" onload=\"this.src=\'cam_images/webcam.jpeg?random=\' + Math.random()\" width=\"320\" height=\"240\"&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 참고로 rc.local에 순서는&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; 1. 램디스크&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; 2. webcam (/.webcamrc가 위치)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; 3. 아파치&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; 순서로 실행되어야 한단다...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* 또하나 참고로 php 아파치2에서 파일설정은&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; /etc/apache2/mods-available/mime.conf에&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;AddType application/x-httpd-php .php .phtml .html .htm .appnurisoft&nbsp; 를 추가&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">=================================================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*relay 제어방법&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">1. 프로그램 컴파일&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; gcc -o serial serial.c -pthread&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. /etc/relay 생성 및 하위에 relay.txt / serial.ini&nbsp; 파일 생성 (777)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">3. rc.local 에 등록 : /user/bin/serial &amp;</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:53:14',2,'2019-04-26 13:53:14','210.101.103.92','','','','','','','','','','','',''),(207,-207,'',207,0,0,'','','html1','[Java] 문자열 자르기 split()','<p><span style=\"color: #404040; font-family: 굴림;\">String str = \"1:::2:::3:::4:::5\";&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">String[] data = str.split(\":::\");&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">for(int i=0; i&lt;data.length; i++)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">{&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; System.out.println(\"data[\"+i+\"] : \" + data[i];&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">결과&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">data[0] : 1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">data[1] : 2&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">data[2] : 3&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">data[3] : 4&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">data[4] : 5</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:53:28',0,'2019-04-26 13:53:28','210.101.103.92','','','','','','','','','','','',''),(208,-208,'',208,0,0,'','','html1','[ETC] Paypal 이용안내','<p>&nbsp;...</p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:53:59',1,'2019-04-26 13:53:59','210.101.103.92','','','','','','','','','','','',''),(209,-209,'',209,0,0,'','','html1','[Ubuntu] 고정ip 및 무선랜 설정하기','<p><span style=\"color: #404040; font-family: 굴림;\">$ sudo vi /etc/network/interfaces&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">auto eth1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">iface eth1 inet dhcp&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-essid&nbsp; cqLab&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-key&nbsp; &nbsp; {키}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-channel 1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-mode&nbsp; &nbsp; managed&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위와 같이 지정하거나 (Static Address 인 경우)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">auto eth1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">iface eth1 inet static&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; address 192.168.200.200&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; netmask 255.255.255.0&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &nbsp; &nbsp; &nbsp; gateway 192.168.200.254&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-essid&nbsp; cqLab&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-key&nbsp; &nbsp; {키}&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-channel 1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-mode&nbsp; &nbsp; managed&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">==================================================&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">auto lo&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">iface lo inet loopback&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">auto eth0&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">iface eth0 inet static&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">address 192.168.0.2&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">netmask 255.255.255.0&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">gateway 192.168.0.1&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">auto wlan0&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">iface wlan0 inet dhcp&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-essid ARnuriOffice&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">wireless-key 01071---</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:54:42',0,'2019-04-26 13:54:42','210.101.103.92','','','','','','','','','','','',''),(210,-210,'',210,0,0,'','','html1','[Ubuntu] vnc 설정하기','<span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\">http://superkkt.com/530<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />위 사이트를 참고하여 작성하였다.<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /></span><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">필자는 root 계정으로 설정하는 사용법을 기술한 것이다.</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">유저계정으로 설정하고 싶다면 아래의 과정에서 root를 유저 명으로 대체 하면 된다.</span><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\"><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />1. VNC Server 설치<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /></span>\r\n<div style=\"margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;\">$ su root<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /># apt-get install vnc4server</div>\r\n<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\"><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />2. vnc4server 실행<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /></span>\r\n<div style=\"margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;\"># vnc4server</div>\r\n<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">VNC4server를 처음 실행시 사용할 비밀번호를 입력하게 된다. 이후 /root/.vnc 디렉토리에 몇 개의 파일이 생성된다.</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\">3. 설정파일 수정</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">$ vi /root/.vnc/xstartup&nbsp;</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" />\r\n<div style=\"margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;\">#!/bin/sh<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /># Uncomment the following two lines for normal desktop:<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />unset SESSION_MANAGER<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />exec&nbsp;<font color=\"#e31600\" style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\">sh</font>&nbsp;/etc/X11/xinit/xinitrc<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />xsetroot -solid grey<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />vncconfig -iconic &amp;<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /><font color=\"#e31600\" style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\">export GTK_IM_MODULE=scim<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />gnome-session &amp;</font><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; background-color: transparent;\"></span></div>\r\n<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">위에 두 줄을 주석 제거하고, 두번째 줄에 sh(빨간색)를 반드시 추가해줘야 한다.</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">그리고 마지막 두줄은 한글을 사용하기 위해 필요한 구문이다.</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\">4. vncserver 재시작</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" />\r\n<div style=\"margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;\"># vnc4server -kill :1<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" /># vnc4server -geometry 1800x1024 :1</div>\r\n<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;\">5. VNC 클라이언트로 5901 포트로 접속</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">참고로 포트번호는 5900+세션번호이다. 위 예제에서는 1번 세션을 사용했기 때문에 5901이 할당된다.</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><b style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\">6. 리눅스에서 한글 설정<br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5;\" />&nbsp;</b><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">시스템 -&gt; 기본설정 -&gt; 키보드 입력방식 -&gt; 활성화 또는 비활성화 에있는 ....-&gt; 키코드 옆에있는 ... -&gt; 한영키 변환으로 사용할 키 -&gt; 닫기</span><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><br style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;\" /><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">출처:&nbsp;</span><a href=\"https://maxpaper86.tistory.com/38\" style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; text-decoration-line: none; background-color: #f3f3f3;\" target=\"_blank\">https://maxpaper86.tistory.com/38</a><span style=\"font-family: dotum, sans-serif; background-color: #f3f3f3;\">&nbsp;[종이형의 블로그]</span>','https://maxpaper86.tistory.com/38','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:55:04',0,'2019-04-26 13:55:04','210.101.103.92','','','','','','','','','','','',''),(211,-211,'',211,0,0,'','','html1','[Ubuntu] root로 자동로그인 하기','<p><span style=\"color: #404040; font-family: 굴림;\">### 10.04 LTS&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/etc/gdm/gdm.schemas 를 연다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">vi 로 열어도 되고 아니면 gedit 으로 열어서 조금만 내려보면..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;schema&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &lt;key&gt;daemon/AutomaticLoginEnable&lt;/key&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">부분을 찾을 수 있다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이부분 아래에&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;default&gt;true&lt;/default&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">로 변경하고&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">그 다음 부분에서&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;schema&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp; &lt;key&gt;daemon/AutomaticLogin&lt;/key&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">아래에&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&lt;default&gt;root&lt;/default&gt;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">로 변경하여 저장하고 재부팅 해보면 root 로 자동 로그인되는 것을 볼 수 있다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">### 11.10&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">/etc/lightdm/lightdm.conf 파일 수정 root 만 넣어주면 끝</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:55:19',0,'2019-04-26 13:55:19','210.101.103.92','','','','','','','','','','','',''),(212,-212,'',212,0,0,'','','html1','[Android] 아파치 클래스 사용 html 파싱','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">//* 아파치 클래스 사용&nbsp;<br />&nbsp;String DownloadHtml(String addr) {&nbsp;<br />&nbsp; HttpGet httpget = new HttpGet(addr);&nbsp;<br />&nbsp; DefaultHttpClient client = new DefaultHttpClient();&nbsp;<br />&nbsp; StringBuilder html = new StringBuilder();&nbsp;<br />&nbsp; try {&nbsp;<br />&nbsp; HttpResponse response = client.execute(httpget);&nbsp;<br />&nbsp; BufferedReader br = new BufferedReader(new&nbsp;<br />&nbsp; &nbsp; InputStreamReader(response.getEntity().getContent()));&nbsp;<br />&nbsp; for (;;) {&nbsp;<br />&nbsp; &nbsp; String line = br.readLine();&nbsp;<br />&nbsp; &nbsp; if (line == null) break;&nbsp;<br />&nbsp; &nbsp; html.append(line + \'\\n\');&nbsp;<br />&nbsp; }&nbsp;<br />&nbsp; br.close();&nbsp;<br />&nbsp; }&nbsp;<br />&nbsp; catch (Exception e) {;}&nbsp;<br />&nbsp; return html.toString();&nbsp;<br />&nbsp;}&nbsp;<br />&nbsp;//*/</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31063\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31063\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:55:31',0,'2019-04-26 13:55:31','210.101.103.92','','','','','','','','','','','',''),(213,-213,'',213,0,0,'','','html1','[Arduino] UNO R3 및 pro micro, pro mini 아날로그 포트정의','<p><span style=\"color: #404040; font-family: 굴림;\">* UNO R3 : 0(14pin) / 1(15pin)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* pro mini : 14(14pin) / 15(15pin)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">* pro micro : A0(14pin) / A1(15pin)</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:55:41',0,'2019-04-26 13:55:41','210.101.103.92','','','','','','','','','','','',''),(214,-214,'',214,0,0,'','','html1','[Arduino] Ehternet Sheild connect Arduino','<p><span style=\"color: #404040; font-family: 굴림;\">Arduino&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EhternetSheild&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pro mini&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">5V&nbsp; &nbsp; &nbsp; &nbsp; -----------&nbsp; 5V&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">GND&nbsp; &nbsp; -----------&nbsp; GND&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">10(SS)&nbsp; -----------&nbsp; 10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"\"&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">MISO(1)-----------&nbsp; 1&nbsp; //하단 중앙포트 ----- 12pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">SCK(3)&nbsp; -----------&nbsp; 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ----- 13pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">MOSI(4)-----------&nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ----- 11pin</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:55:52',0,'2019-04-26 13:55:52','210.101.103.92','','','','','','','','','','','',''),(215,-215,'',215,0,0,'','','html1','[ETC] Windows7 공인인증서 파일경로','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">C:\\Users\\geoworld\\AppData\\LocalLow\\NPKI</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31066\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31066\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:56:03',0,'2019-04-26 13:56:03','210.101.103.92','','','','','','','','','','','',''),(216,-216,'',216,0,0,'','','html1','[ETC] Encrypt 파일 복호 프로그램','<p><span style=\"color: #404040; font-family: 굴림;\">1.&nbsp; FileEncrypt 실행파일에 오른쪽 클릭 후 속성 클릭&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. 호환성 클릭 후 윈도xp 서비스팩 2로 설정후 확인 저장&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">3. FileEncrypt 한번 켰다 끔&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">4. 풀고싶은파일 오른쪽클릭후 일반 -&gt; 연결프로그램변경 -&gt;FileEncrypt 로 연결프로그램설정&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">5. 그럼 비번치는 창이 그동안 나왔던 븅신같은 창이 아닌 비번만 치는 한줄짜리 창이 나옴&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">6. 비번 치면 암호화를 해제하고 재미나게 뿅뿅!!&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">[출처] 윈도우7사용자를 위한 file+encrypt 비번풀기!!!!!|작성자 86monster</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:56:25',1,'2019-04-26 13:56:25','210.101.103.92','','','','','','','','','','','',''),(217,-217,'',217,0,0,'','','html1','[Eagle] Eagle CAD 3D 활용하기','<p><span style=\"color: #404040; font-family: 굴림;\">Eagle CAD에는 많은 ULP(User Language Program)이 존재한다. 일종의 C-like 프로그램으로 Eagle CAD의 데이터를 가지고 어떤 작업을 할 수 있게 해준다. 예를 들면 BOM를 뽑아주는 ULP 등...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Eagle 홈페이지에 사용자가 자신이 작업한 ULP를 올릴 수 도 있다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><a href=\"http://www.cadsoftusa.com/downloads/ulps?language=en\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://www.cadsoftusa.com/downloads/ulps?language=en</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">스위스의 Jerome Lamy 라는 엔지니어는&nbsp; Eagle CAD에서 작업한 PCB를 3D로 모델링해 주는 ULP를 만들었다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이것을 하기위해서는 다음과 같은 s/w가 필요하다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Eagle CAD : 당연히 이게 필요하고....&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Google Sketchup:&nbsp;</span><a href=\"http://sketchup.google.com/intl/en/download/\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://sketchup.google.com/intl/en/download/</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">ImageMagic:&nbsp;</span><a href=\"http://www.imagemagick.org/script/index.php\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://www.imagemagick.org/script/index.php</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;여기에서 Binary Releases에서 OS에 맞는 것을 설치&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">Eagleup ULP:&nbsp;</span><a href=\"https://sites.google.com/site/eagleupwarehouse/eagleUp4.3.zip?attredirects=0&amp;d=1\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">https://sites.google.com/site/eagleupwarehouse/eagleUp4.3.zip?attredirects=0&amp;d=1</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위 s/w를 다운로드하고 인스톨한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. Eagle ULP 폴더에 있는 eagleUp_export.ulp 파일을 Eagle이 설치된 폴더\\ulp\\ 에 copy한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. models 폴더를 통채로&nbsp; Eagle이 설치된 폴더\\ 아래에 copy한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. Sketchup Plugin 폴더에 있는 eagleUp_import.rb 파일을 Google Sketchup이 설치된 폴더\\Plugins\\ 에 copy한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. demo files에 있는 demo3.brd 파일을 Eagle CAD에서 연다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. 이 파일을 열면 copper가 깔려있지 않은데, Tools&gt;Ratsnest를 실행해서 copper를 깐다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. File &gt; Run... 을 실행하여 \"eagleUp_export.ulp\"를 선택한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. 처음 실행시에는 path를 설정을 하는데,&nbsp; \"set for Windows\" 또는 \"set for OS X\"를 한후 자신의 툴이 깔린 위치를 확인하고 틀리면 맞게 수정을 한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. 다음 나오는 창에서는 수정할 것이 없고, 그냥 OK 버튼을 누른다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. demo3d.sch 파일이 있는 폴더 아래 \"eagleUp\" 폴더가 생기고, 그 안에 여러 파일들이 생성이 되었는데, 이중 확장자가 \"eup\"인 파일이 Google SketchUp에서 필요한 파일이다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. Google SketchUp을 실행하고, \"Choose Template\"에서 \"Engineering -Meters\"를 선택을 한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-. Plugins &gt;&nbsp; Import eagleUp v4.3 을 선택하여 eup 파일을 오픈한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">실제 PCB상에 부품이 어떻게 배치가 되고 서로 간섭은 없는지 기구적으로 살펴볼때 유용할 것 같다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">하지만 사용된 부품의 모델이 존재해야 이것도 가능하다는...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">How to model 페이지 참고:&nbsp;</span><a href=\"http://eagleup.wordpress.com/how-to-model/\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://eagleup.wordpress.com/how-to-model/</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">부품의 모델들이 쌓이면 그 다음 부터는 수월할 듯...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">관련 정보:&nbsp;</span><a href=\"http://eagleup.wordpress.com/\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://eagleup.wordpress.com/</a></p>','https://liketheocean.tistory.com/204','http://dangerousprototypes.com/blog/2012/03/20/how-to-build-3d-models-from-eagle-files-wiki-page/',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:56:58',0,'2019-04-26 13:56:58','210.101.103.92','','','','','','','','','','','',''),(218,-218,'',218,0,0,'','','html1','[Eagle] Eagle CAD - Eagle3D 및 pov-ray 연동하기','<p><span style=\"color: #404040; font-family: 굴림;\">Eagle CAD로 만든 PCB Layout 파일로 3D 랜더링하여 보드 상태를 3D로 미리 확인 할 수 있는 방법이 있다. 잘 설명되어 있는 사이트는 아래와 같다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><a href=\"http://www.societyofrobots.com/electronics_Eagle3D_tutorial.shtml\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://www.societyofrobots.com/electronics_Eagle3D_tutorial.shtml</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">#준비물&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">1.Eagle 3d 설치 :&nbsp;</span><a href=\"http://developer.berlios.de/projects/eagle3d/\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://developer.berlios.de/projects/eagle3d/</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">여기서 eagle3d- img 파일이 어디에 쓰는 건지 헤깔렸는데 나중에 알고 보니 맞는 부품명이 없어서 3D로 표시가 안되는 부품을 이 이미지 파일에서 찾아서 부품명을 추가할때 사용한다. 여기서 부품명을 추가하는 작업은 좀 복잡해서 생략하기로 한다. 하는 방법은 위에 링크에 나와 있다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2.POV-Ray 설치 :&nbsp;</span><a href=\"http://www.povray.org/\" target=\"_new\" style=\"text-decoration-line: none; color: #3a4e40; font-family: 굴림;\">http://www.povray.org/</a><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">스크립트로 3D을 할 수 있는 엔진으로 Eagle 3d에서 만든 *.pov 파일을 3D 이미지로 보여준다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">위에 파일을 모두 설치했으면 Eagle CAD의 Board 화면에서 File &gt; Run 으로 eagle3d를 설치한 폴더(C:\\Program Files\\eagle3d\\ulp)에서&nbsp; 3d50.ulp 파일을 연다. 그러면 설정 창이 뜨는데 거기서 pov 파일 생성 경로를 설정하고 create POV-File 버튼을 누른다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">POV-Ray를 실행후 open 메뉴로 생성된 pov 파일을 연다. 그리고 이것이 중요한데 Tools &gt; Edit master POVRAY.INI 으로 ealge3d가 설치된 폴더의 povray 폴더를 라이브러리 경로에 추가하는 것이다. 그래야 제대로 렌더링이 된다. 제일 마지막 줄에 Library_Path=\"C:\\Program Files\\Eagle3D\\povray\" 를 추가하고 저장한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">참고로 Ini 메뉴를 실행하여 Section 항목에서No AA가 아닌 AA로 선택하면 렌더링 시간은 더 걸리지만 좀더 이미지가 선명하게 보인다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이제 Run 메뉴를 실행하면 IC의 Logo를 표시할지 소켓을 표시할지 등을 물어 보고 없는 부품은 표시되지 않는다는 메세지가 뜬후 OK를 누르면 랜더링된 이미지를 표시한다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">전에 만든 Breakout 보드는 Sparkfun 라이브러리를 사용해서 거의다 표시를 못하고 있다. 그러면 일일이 부품을 추가해 주거나 원래 Eagle CAD에서 제공하는 부품으로 변경하면 표시가능한데 귀찮아서 ^^;; 이렇게 하는 방법을 아는 것에서 마무리 할까 한다.</span></p>','http://www.societyofrobots.com/electronics_Eagle3D_tutorial.shtml','https://blog.naver.com/beodeulpiri/220232198183',1,1,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:57:22',0,'2019-04-26 13:57:22','210.101.103.92','','','','','','','','','','','',''),(219,-219,'',219,0,0,'','','html1','[ETC] A, W, V 의미','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">A : 전류의 세기, 즉 전선이나 도체에 흐르는 순시적 전류값&nbsp;<br />W : 전력&nbsp;<br />V : 전압&nbsp;<br /><br />ex 1) 100W 백열전등 하나를 키면, 100W / 220V = 0.45A 가 흐르게 된다.&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; ---&gt; V * A = W&nbsp;<br /><br />ex 2) 용량이란? 1000mAh 라고 적혀있는것은 전류 1000mA와 시간 1h의 곱이 되는것.&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; 즉, 1000mA라는 전류를 1시간 동안 사용할 수 있는 용량이란 의미===&gt;배터리.&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; 결국 용량 = 전류(A) * 시간</span></td>\r\n         </tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:57:34',0,'2019-04-26 13:57:34','210.101.103.92','','','','','','','','','','','',''),(220,-220,'',220,0,0,'','','html1','[Arduino] ACS712 전류센서 이용하기','<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">안녕하세요</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">개인적으로 계획했던 배터리 뱅크의 상태 표시기를 마무리 했습니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">LCD에 상온/습도 표시와 배터리의 전압/ 출력 전류를 표시해주는 간단한 내용입니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">AVR(아두이노)을 공부하는 차원에 만들어 보았고 작업 와중에 이것저것 넣고 싶은것들을</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">최적화? 하여 마무리 지었습니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">차후에 기판에 올릴때는 Atmega8에 업로드 시켜 구성할 예정입니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">다음엔 역시나 공부차원에서&nbsp;배터리뱅크에 들어갈 라이트의 PWM콘트롤러 쪽을 진행할까 합니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">관심있으신 분을 위해 작업 내용을 공개합니다.</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\"><img src=\"https://cafeptthumb-phinf.pstatic.net/20120722_114/atozgg_1342940912749DPzVF_JPEG/CAM00225.jpg?type=w740\" id=\"userImg3054293\" name=\"cafeuserimg\" style=\"border: none; width: 705px; height: 538px;\" /></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\"><img src=\"https://cafeptthumb-phinf.pstatic.net/20120722_124/atozgg_1342941918191m87y8_JPEG/%C8%B8%B7%CE%B5%B5.jpg?type=w740\" id=\"userImg9660157\" name=\"cafeuserimg\" style=\"border: none; width: 740px; height: 545px;\" /></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">아두이노 코드</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">#include &lt;DHT.h&gt; //온습도 센서(DHT11) 라이브러리</p>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">#include &lt;LiquidCrystal.h&gt; //LCD 라이브러리</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">LiquidCrystal lcd(12, 11, 5, 4, 3, 2);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">int aled = 13; //저전압 경고등 핀번호</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">#define DHTPIN 7 // 온습도센서 핀번호</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">#define DHTTYPE DHT11</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">DHT dht(DHTPIN, DHTTYPE);<br /><br />void setup() {</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">pinMode(aled, OUTPUT);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">dht.begin();</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.begin(16, 2);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">analogReference(DEFAULT);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">}<br /><br />void loop () {</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float tsens = dht.readTemperature(); //온도센서값</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float hsens = dht.readHumidity(); //습도센서값</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.setCursor(0,0);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"AIRS: \");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print((int)tsens); //온도값 출력</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.write(B11011111); //도 표시</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"C\");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"/ \");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print((int)hsens); //습도값 출력</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"%R\");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float vsens = analogRead(2); //아날로그 2번핀에서 볼트값 읽기</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float asens = analogRead(3); //아날로그 3번핀에서 전류값(ACS712 센서) 읽기</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float volt = (vsens * 0.004729); //전압값 보정</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">float amp = 0.0264*(asens-515); //전류값 계산 및 보정</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.setCursor(0,1);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"BATT: \");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(volt,1); //전압값 소수점 1자리 까지 표시</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"V/ \");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(amp,1); //전류값 소수점 1자리 까지 표시</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">lcd.print(\"A\");</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">if (volt &lt;= 2.8) { // 리튬 배터리 전압이 2.8V 이하일경우 13번핀 LED 점멸</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">digitalWrite(aled, HIGH);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">delay(500);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">digitalWrite(aled, LOW);</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">}</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">delay(1000); // 1초간 대기</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">}</div>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;3028545_9&quot;; color: #252525;\">&nbsp;</p>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">*상태 표시기용 주요 부품 구매비(VAT 포함)</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\"><img src=\"https://cafeptthumb-phinf.pstatic.net/20120722_268/atozgg_1342940949792F6O7d_JPEG/%BA%F1%BF%EB.jpg?type=w740\" id=\"userImg2554526\" name=\"cafeuserimg\" style=\"border: none; width: 364px; height: 151px;\" /></div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">&nbsp;</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">감사합니다.</div>\r\n<div align=\"left\" style=\"font-family: &quot;3028545_9&quot;; list-style: none; margin: 0px; padding: 0px; color: #252525;\">&nbsp;</div>','https://cafe.naver.com/powersos/15453','',1,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:57:59',0,'2019-04-26 13:57:59','210.101.103.92','','','','','','','','','','','',''),(221,-221,'',221,0,0,'','','html1','[ETC] Shunt 저항이란?','<p><span style=\"color: #404040; font-family: 굴림;\">높은 전류를 직접 측정하기가 어려운 경우 전압을 측정하여 이를 전류로 환산하기 위한 금속 저항을&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">션트라고 합니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">통상 100A가 흐를때 50mV ,또는 50A가 흐를때 50mV가 나오게 만드는데 필요에 따라서는 주문제작도&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">가능합니다. 즉 100A,50mV일 경우&nbsp; 양단의 전압을 측정하였을때 5mV가 나온다면 현재 도선에 흐르는&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">전류는 10A가 흐른다는 이야기가 되겠지요..&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">주로 동이나,구리 ,망간인 등을 이용하여 만듭니다. 가격은 몇천원에서 몇 만원까지 있습니다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:58:16',0,'2019-04-26 13:58:16','210.101.103.92','','','','','','','','','','','',''),(222,-222,'',222,0,0,'','','html1','[ETC] 스카이 시리우스폰 이클립스 연동','<p><span class=\"content\" style=\"color: #404040;\">2. ADB를 압축해제하면 그안에 있는 내용들을 android SDK가 설치된 경로내의 tools 폴더에 복사한다. 이때 설치가 실패할 수도 있으니 기존파일(tools폴더)을 백업해놓고 복사하는 것이 좋다.&nbsp;<br />붙이고나서 재부팅을 해주어야 한다. 안그러면 제대로 설치가 안되는 경우가 많다.&nbsp;<br />&nbsp;&nbsp;<br />3. 안드로이드 단말기를 데이터 케이블로 PC와 연결한다. USB드라이버를 설치할 때 처음에 경로를 android SDK가 설치된 경로내의 tools 폴더로 지정해 놓는다. 다 설치과 되면 그외 잡다한 것들을 설치하는 창이 뜨는데&nbsp; 계속해서 \'네\', \'다음\'을 눌러 모두 설치한다. (대략4개정도)&nbsp;<br />&nbsp;&nbsp;<br />4. 이클립스를 실행하여 DDMS 탭을 클릭해보면 아래와 같은 그림이 나와야 정상이다.&nbsp;<br />[출처] [Android] \'시리우스(스카이 IM-A600S)\' 폰 PC에 연결하기|작성자 노티</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31073\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=9&amp;wr_id=31073\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></p>','','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:58:38',1,'2019-04-26 13:58:38','210.101.103.92','','','','','','','','','','','',''),(223,-223,'',223,0,0,'','','html1','[Windows] 윈도우7 모든권한 얻기 레지스트리','<p><span style=\"color: #404040; font-family: 굴림;\">관리자 계정에 모든 권한 부여하기 레지스트리&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">윈도우 7과 비스타에서 특정 파일이나 폴더에 편집권한을 부여하기 위한 레지스트리입니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">원래는 마우스 우클릭한 다음 속성 - 보안 - 고급 들어가서 소유권도 부여하고 편집권한도 부여해야 하는데 Takeown 이라는 명령어로 소유권을 가져올 수 있고 Icacls 라는 명령어로 모든 권한을 가져올 수 있습니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">그런데 이걸 직접 타이핑 하기엔 파일 이름이 길면 좀 귀찮아 질 수 있기 때문에 아래 레지스트리를 병합해주시면 마우스 우클릭 메뉴에 뜨게 됩니다.</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">파일 or 폴더에 모두 적용 가능하고 폴더에 적용하면 하위폴더까지 전부 권한 부여가 됩니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">원래는 영어로 되어있는데, 스누피님이 한글로 변경했습니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">이렇게 권한을 부여하는 것은 주로 보호된 시스템 파일을 수정할 때 필요합니다</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:59:03',2,'2019-04-26 13:59:03','210.101.103.92','','','','','','','','','','','',''),(224,-224,'',224,0,0,'','','html1','[ETC] WCS1500 사용링크','<p><span style=\"color: #404040; font-family: 굴림;\">링크의 데이터시트를 보면&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">11mV / A&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">1A당 11mV가 변합니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">0.5V 정도가 변하려면&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">0.5V / 0.011V = 45.454545454545454545454545454545&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">45A 정도를 흘려주면 방향에 따라서 3V가 되든지 2V가 됩니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">45A*220V =&nbsp; 9900W = 약 10KW&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">500W짜리 열가마 20개를 동작시켜야합니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">(가정집은 차단기 떨어집니다.)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">무엇을 측정 하려고 200A 센서를 선택했나요?&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">측정 하려는 부하의 전류에 맞춰서 용량이 작은 센서를 다시 구입하세요&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">1/2Vdd (5v경우 2.5v 가 전류값 0 상태이네요.)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">출력이 0V 이면 -200A, 5V이면 +200A 입니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">스케일이 원체 커서 어지간한 전류로는 꿈쩍도 안할듯~&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">구멍 안에 선이 다 들어갈지 모르겠는데 한 100회정도 감으면 1/100이 되므로~&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2A정도이면 주위에 쉬운 부하들 접속 가능할 겁니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">그리고 출력은 교류신호가 그대로 나오므로 정류해서 adc로 입력해야 합니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">따라서 교류부하라면 일반 ct 사용하는게 나을겁니다.</span></p>','https://cafe.naver.com/carroty/173742','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:59:29',0,'2019-04-26 13:59:29','210.101.103.92','','','','','','','','','','','',''),(225,-225,'',225,0,0,'','','html1','[ETC] Power monitor(Energy monitor) 관련 각종링크들...','<p><span style=\"color: #404040; font-family: 굴림;\">1. Energino: an Arduino-based energy consumption monitoring shield&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">http://www.instructables.com/id/Energino-an-Arduino-based-energy-consumption-moni/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><img name=\"target_resize_image[]\" tmp_width=\"0\" tmp_height=\"0\" src=\"http://www.instructables.com/files/deriv/FWZ/K6Y8/H4ZN5515/FWZK6Y8H4ZN5515.LARGE.jpg\" width=\"400\" height=\"300\" style=\"color: #404040; font-family: 굴림; cursor: pointer;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. How to build an Arduino energy monitor - measuring mains voltage and current&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">http://www.mindkits.co.nz/_blog/MindKits_News_and_Blog/post/Arduino_Energy_Monitor/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">http://openenergymonitor.org/emon/node/58&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><img name=\"target_resize_image[]\" tmp_width=\"0\" tmp_height=\"0\" src=\"http://openenergymonitor.org/emon/sites/default/files/currentvoltage_bb.jpg\" width=\"400\" height=\"500\" style=\"color: #404040; font-family: 굴림; cursor: pointer;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">3. ACS712 Low Current Seosor with Arduino&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">http://blog.mobileapes.com/2011/01/acs712-low-current-sensor-breakout-test.html&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><img name=\"target_resize_image[]\" tmp_width=\"0\" tmp_height=\"0\" src=\"http://4.bp.blogspot.com/_9C3HteY9Xr4/TTDISTQqLII/AAAAAAAAAVA/GOGW9NoiOcI/s320/ACS712LowCurrentSensorBreakoutMotor.png\" style=\"color: #404040; font-family: 굴림; cursor: pointer;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">4. Measuring current: use a current shunt monitor&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">https://www.zipfelmaus.com/blog/measuring-current-current-shunt-monitor/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><img name=\"target_resize_image[]\" tmp_width=\"0\" tmp_height=\"0\" src=\"http://d2lg1iac45z1vf.cloudfront.net/wp-content/uploads/2012/08/current_shunt_monitor.jpg\" width=\"400\" height=\"300\" style=\"color: #404040; font-family: 굴림; cursor: pointer;\" /><span style=\"color: #404040; font-family: 굴림;\">&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">5. DIY Amp Hour Meter - Arduino&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">http://www.instructables.com/id/DIY-Amp-Hour-Meter-Arduino/&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><img name=\"target_resize_image[]\" tmp_width=\"0\" tmp_height=\"0\" src=\"http://www.instructables.com/files/deriv/FVC/Y1Y7/H1YOHHOI/FVCY1Y7H1YOHHOI.LARGE.jpg\" width=\"400\" height=\"300\" style=\"color: #404040; font-family: 굴림; cursor: pointer;\" /></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 13:59:51',1,'2019-04-26 13:59:51','210.101.103.92','','','','','','','','','','','',''),(226,-226,'',226,0,0,'','','html1','[Arduino] 칩1개로 아두이노 만들기','<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"><font color=\"#000000\">모든 ATmega MCU는 외부에 클럭을 공급 받지 않고도 동작할 수 있도록 내부에</font></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"><font color=\"#000000\">RC를 이용한 오실레이터를 가지고 있다.</font></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"><font color=\"#000000\">내부 RC의 클럭을 사용할지, 외부에 크리스탈로 부터 클럭을 공급 받을 지는 Fuse Bit에서</font></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"><font color=\"#000000\">설정할 수 있다. 사실 새(NEW) ATmega는 모두 내부 RC 1MHz로 설정되어 있다.</font></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\">내부 RC를 이용한 클럭은 최대 8MHz이며 지금부터 칩1개로 아두이노를 만들어 보자</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"></span>&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"><a href=\"http://cafe.naver.com/robotpico?20120715115224\" target=\"_blank\" style=\"text-decoration-line: none;\"><font color=\"#ff0000\"><span style=\"font-size: 12pt;\"><strong>&lt;&lt; 상세한 내용이 있는 본인의 카페를 링크해 두었습니다&gt;</strong></span></font></a></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"></span>&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\">&lt;참고 : 아두이노 홈에 있는 방법대로 해보았으나 부트로더는 만들어 지지만</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 스케치를 만들어 컴파일하면 오류가 발생하여&nbsp; 저 나름대로 조금 수정하여</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 완벽하게 동작되도록 정리하였습니다.&gt;</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"></span>&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 12pt;\"><strong>1. 보드파일 만들기</strong></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 12pt;\"></span><span style=\"font-size: 11pt;\">- 첨부된 bb_boards.zip(arduino 홈의 파일을 맨 마지막 부분을 수정) 파일을 다운받아 풀어</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">..\\arduino-1.0\\hardware\\arduino 폴드의 boards.txt 파일의 맨 아래에 추가한다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">- 초보자이거나 작업이 성가시다면 첨부된 boards.txt 파일을 다운받아</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">..\\arduino-1.0\\hardware\\arduino 폴드의 boards.txt 에 덮어쓰기를 한다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">- 그러고 아두이노를 다시 실행하여 메뉴 Tools -&gt; Boards에서 8MHz 가 맨 아래 생성될 것이다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\"></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\"></span><img src=\"https://cafeptthumb-phinf.pstatic.net/20120717_293/robotstudy_13425027165437d3Mg_JPEG/a.JPG?type=w740\" id=\"userImg8398092\" name=\"cafeuserimg\" style=\"border: none; width: 345px; height: 415px;\" /></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\"></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 12pt;\"><strong></strong></span>&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 12pt;\"><strong>2. Arduino as ISP 회로 제작하기</strong></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 12pt;\"></span><span style=\"font-size: 12pt;\"></span><span style=\"font-size: 11pt;\">- 부트로더를 만들기 위해 아래 그림과 같이 매우 간단한 회로를 만든다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><img src=\"https://cafeptthumb-phinf.pstatic.net/20120715_75/robotstudy_1342322028108t3Y5V_JPEG/one_Chip_bo.jpg?type=w740\" id=\"userImg343031\" name=\"cafeuserimg\" style=\"border: none; width: 324px; height: 289px;\" />&nbsp;<img src=\"https://cafeptthumb-phinf.pstatic.net/20120715_32/robotstudy_1342320655131PDI7w_PNG/SimpleBreadboardAVR.png?type=w740\" id=\"userImg4403185\" name=\"cafeuserimg\" style=\"border: none; width: 242px; height: 387px;\" /></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">그림 K-아두이노일 경우 그림 아두이노일 경우&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 그림 아두이노일 경우</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\"><strong><span style=\"font-size: 11pt;\"></span></strong></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><span style=\"font-size: 11pt;\"></span>&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\"><strong><span style=\"font-size: 12pt;\">3. 1개 칩으로 만든 아두이노 확인해 보기</span></strong></span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">- 회로는 아래와 같이 D7,D8에 LED를 연결하여 간단한 스케치를 만들어</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">동작하는지 확인해보자. 첨부된 스케치 파일을 사용한다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">USB-Serial 변환기를 극성에 주의하며 연결하고 업로-로드한다,</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">업-로드가 잘 안될 경우에는 1번핀(Reset)과 VCC 사이에 10K 저항을</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">연결하고 업-로드하면 된다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">&nbsp;&nbsp;&nbsp; 충전지는 1.2V x 4 = 4.8V 입니다.&nbsp;&nbsp; 건전지를 사용하면 6V가 되어 동작하지</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\"><span style=\"font-size: 11pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 않을 수 있습니다.</span></p>\r\n<p style=\"list-style: none; padding: 0px; font-size: inherit; font-family: inherit;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\">&nbsp;</p>\r\n<p style=\"list-style: none; padding: 0px; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; color: #222222;\"><img src=\"https://cafeptthumb-phinf.pstatic.net/20120906_199/robotstudy_1346923898681i272Q_JPEG/1.jpg?type=w740\" id=\"userImg4298991\" name=\"cafeuserimg\" style=\"border: none; width: 473px; height: 427px;\" /></p>\r\n<p><span style=\"color: #222222; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; font-size: 11pt;\"></span><span style=\"color: #222222; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;맑은 고딕&quot;, &quot;Malgun Gothic&quot;, 돋움, dotum, sans-serif; font-size: 11pt;\"></span>\r\n   <p>&nbsp;</p>\r\n   </p>\r\n<div class=\"autosourcing-stub\" style=\"font-family: inherit; font-size: inherit; list-style: none; margin: 0px; padding: 0px; position: absolute; opacity: 0;\">\r\n   <p style=\"list-style: none; margin: 20px 0px 30px; padding: 0px; font-size: 12px; font-family: dotum;\"><strong style=\"padding: 0px 7px 0px 0px;\">[출처]</strong><span>&nbsp;</span><a href=\"https://cafe.naver.com/arduinostory/9381\" target=\"_blank\" style=\"text-decoration: none;\">칩 1개로 아두이노 만들기 (부트로더만들기) (아두이노 스토리)</a><span>&nbsp;</span><span style=\"padding: 0px 7px 0px 5px;\">|</span><strong style=\"padding: 0px 7px 0px 0px;\">작성자</strong><span>&nbsp;</span><a href=\"https://cafe.naver.com/arduinostory.cafe?iframe_url=/CafeMemberNetworkView.nhn%3Fm=view%26memberid=robotstudy\" target=\"_blank\" style=\"text-decoration: none;\">robotstudy</a></p>\r\n   </div>','https://cafe.naver.com/arduinostory/9381?social=1','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:15:05',1,'2019-04-26 14:15:05','210.101.103.92','','','','','','','','','','','',''),(227,-227,'',227,0,0,'','','html1','[Arduino] 아두이노 부트로더 심기(아두이노 만들기)','<p>...</p>','https://cafe.naver.com/robotpico/343','',0,0,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:15:33',1,'2019-04-26 14:15:33','210.101.103.92','','','','','','','','','','','',''),(228,-228,'',228,0,0,'','','html1','[Arduino] 브레드보드 위에 아두이노 만들기- Arduino Breadboard DIY','<h3 class=\"post-title entry-title\" itemprop=\"name\" style=\"margin: 0px; color: #9e5205; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 20.8px; line-height: normal; font-family: Verdana, sans-serif; letter-spacing: -1px; background-color: #f6f6f6;\">브레드보드 위에 아두이노 만들기- Arduino Breadboard DIY</h3>\r\n<div class=\"post-header\" style=\"font-family: &quot;Trebuchet MS&quot;, Trebuchet, Verdana, sans-serif; font-size: 13px; background-color: #f6f6f6;\">\r\n   <div class=\"post-header-line-1\">&nbsp;</div>\r\n   </div>\r\n<div class=\"post-body entry-content\" id=\"post-body-7426812449180054630\" itemprop=\"description articleBody\" style=\"font-family: &quot;Trebuchet MS&quot;, Trebuchet, Verdana, sans-serif; font-size: 13px; background-color: #f6f6f6;\"><strong>브레드보드 위에 아두이노 만들기</strong>&nbsp;- Arduino Breadboard Do It Yourself<br /><br /><br />이 글은&nbsp;<a href=\"http://www.arduino.cc/en/Main/Standalone\" style=\"color: #de7008;\" target=\"_blank\">Building an Arduino on a Breadboard Overview</a>의 내용을 기초로, 의도에 맞게 수정하여 만든 것임을 밝혀둡니다.<br /><br />Originally created David A. Mellis<br />Updated from the&nbsp;<a class=\"urllink\" href=\"http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard\" rel=\"nofollow\" style=\"color: #de7008;\" target=\"_blank\">ITP version</a>&nbsp;by Carlyn Maw<br />Updated October 23, 2008 by Rory Nugent<br />Updated to Korean March 21, 2010 by Sokoon<br /><br />이 튜토리얼은 Atmel의 Atmega8/Atmega168/Atmega328 AVR 마이크로컨트롤러와 FTDI FT232 USB어댑터를 이용하여 브레드보드 위에 아두이노 만드는 방법을 보여줍니다.<br /><br /><br /><strong><span style=\"font-size: 16.9px;\">1. 부품들</span><br /></strong><br />다음과 같은 부품들이 필요합니다. 각 부품을 따로 구입할 수도 있고,&nbsp;<a href=\"http://www.plughouse.co.kr/\" style=\"color: #de7008;\" target=\"_blank\">Plughouse</a>의 \"<a href=\"http://www.plughouse.co.kr/shop/goods/Goods_view.php?G_code=20103003122207\" style=\"color: #de7008;\" target=\"_blank\">Arduino Breadboard DIY Kit</a>\"을 구입하시면 모든 부품들을 한번에 편하게 받아보실 수 있습니다.<br /><br /><a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YkxSCLtCI/AAAAAAAAAE4/EhPSJ6BuGlo/s1600-h/0.ELEMENTS_FULLSHOT.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451084828051747874\" src=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YkxSCLtCI/AAAAAAAAAE4/EhPSJ6BuGlo/s200/0.ELEMENTS_FULLSHOT.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 192px;\" /></a><br /><br /><br /><br /><a href=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6YkUwOqcgI/AAAAAAAAAEo/JXbfmKD0fAY/s1600-h/0.ELEMENTS_FULLSHOT.jpg\" style=\"color: #de7008;\" target=\"_blank\"></a><br /><br /><br /><br /><br /><br /><br /><strong></strong><br /><strong>1.1 아두이노를 만들기 위한 기본 부품들</strong><br />\r\n   <ul>\r\n      <li>브레드보드 1개</li>\r\n      <li>점퍼와이어 22 AWG (와이어를 벗겨낼 스트리퍼는 별도로 준비하셔야 합니다)</li>\r\n      <li>7805 볼티지 레귤레이터 1개</li>\r\n      <li>LED 2개</li>\r\n      <li>220 옴 저항 2개</li>\r\n      <li>10k 옴 저항 1개</li>\r\n      <li>10 uF 캐패시터 2개</li>\r\n      <li>22 pF 캐패시터 2개</li>\r\n      <li>16 MHz 클록 크리스털 1개</li>\r\n      <li>택트 스위치 1개<br /></li>\r\n      </ul>\r\n   <p><strong>1.2 USB to Serial 어댑터</strong></p>\r\n   <p>FTDI FT232 칩을 사용하여 USB포트를 통해 RS-232시리얼 통신을 가능하게 해줍니다.</p>\r\n   <p>Arduino에 프로그램을 업로딩할 때 꼭 필요하지만, 그냥 구동만 할 때는 없어도 됩니다.</p>\r\n   <p><a href=\"http://www.plughouse.co.kr/shop/goods/Goods_view.php?G_code=20080604521601\" style=\"color: #de7008;\" target=\"_blank\">USB Adapter</a>&nbsp;from Plughouse</p>\r\n   <br /><strong>1.3 Atmega 칩에 부트로더 굽기&nbsp;</strong><br /><br />아두이노를 만들기 위해서는 Atmega칩에 부트로더를 구워야 하는데, 초보자들에겐 좀 번거로운 과정입니다. 관심있는 분들은&nbsp;<a href=\"http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard#toc9\" style=\"color: #de7008;\" target=\"_blank\">여기</a>를 보시면 됩니다. 이 문서에서는 이미 부트로더가 심어져 있는 Arduino 칩을 사용하는 방법으로 설명할 것입니다.<br /><br />\r\n   <p><a href=\"http://www.plughouse.co.kr/shop/goods/Goods_view.php?G_code=20092310252136\" style=\"color: #de7008;\" target=\"_blank\">ATmega328 with Arduino Bootloader</a>&nbsp;from Plughouse</p>\r\n   <p>&nbsp;</p>\r\n   <p><strong><span style=\"font-size: 16.9px;\">2.  전원을 위한 회로 만들기&nbsp;</span></strong><br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YdYZxKN9I/AAAAAAAAACY/ygp8azK-TYA/s1600-h/1.POWER_WIRING.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451076704049706962\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YdYZxKN9I/AAAAAAAAACY/ygp8azK-TYA/s200/1.POWER_WIRING.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 139px;\" /></a><br /><br /><br /><br /><br /><br />양쪽 전원 레일 연결하기</p>\r\n   <p>&nbsp;</p>\r\n   <p>브레드보드의 양쪽 전원레일을 연결할 수 있도록, 아랫쪽에 점퍼와이어를 연결합니다.<br /><br /><br /><a href=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6YdY0kuMSI/AAAAAAAAACg/P87gWBpJM0c/s1600-h/2.POWER_LED.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451076711245295906\" src=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6YdY0kuMSI/AAAAAAAAACg/P87gWBpJM0c/s200/2.POWER_LED.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 110px;\" /></a><br /><br /><br /><br /><br />전원 LED<br /><br />브레드보드의 왼쪽 윗편에, LED와 220옴 저항을 연결합니다. 이것은 전원 LED인데, 브레드보드에 전원이 들어와있다는 것을 눈으로 확인할 수 있고, 또한 보드가 쇼트 났는지도 바로 알 수 있게 해주는 유용한 방법입니다.<br /><br /><br /><span style=\"font-size: 16.9px;\"><strong>3. Atmega8/168/328 연결하기</strong></span><br /><br /><a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YuT6xt_LI/AAAAAAAAAFA/hbrtLuHXUag/s1600-h/arduino_pinmap.png\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451095318708747442\" src=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YuT6xt_LI/AAAAAAAAAFA/hbrtLuHXUag/s200/arduino_pinmap.png\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 130px;\" /></a><br /><br /><br /><br /><br /><br />아두이노 핀 맵(Arduino Pin Map )<br /><br />위 표는 Atmega칩이 Arduino로 사용될 때, 각 핀들이 어떤 역할을 하게되는지를 알 수 있게해주는 중요한 자료입니다. 실제 아두이노 보드에서는 각 핀이 어떤 역할을 하고, 몇번 핀인지 기판에 인쇄되어 있어 그것을 보면 되지만, 지금과 같은 경우에는 핀을 연결할 때마다 위 핀맵을 참고하여 전선을 연결해야 할 것입니다. 물론 외우셔도 좋구요(^^;) Atmega8/168/328에 대해 더 자세한 정보를 알고싶으면 다음 데이터 시트를 살펴보세요.<br /><br />Atmega 168 (<a class=\"urllink\" href=\"http://www.atmel.com/dyn/resources/prod_documents/2545S.pdf\" rel=\"nofollow\" style=\"color: #de7008;\" target=\"_blank\">short version</a>) (<a class=\"urllink\" href=\"http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf\" rel=\"nofollow\" style=\"color: #de7008;\" target=\"_blank\">long version</a>)<br />Atmega328 (<a class=\"urllink\" href=\"http://www.atmel.com/dyn/resources/prod_documents/8161S.pdf\" rel=\"nofollow\" style=\"color: #de7008;\" target=\"_blank\">short version</a>) (<a class=\"urllink\" href=\"http://www.atmel.com/dyn/resources/prod_documents/doc8161.pdf\" rel=\"nofollow\" style=\"color: #de7008;\" target=\"_blank\">long version</a>)<br /><br /><br /><a href=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6YdZdZgyQI/AAAAAAAAACo/39OPaRStdk4/s1600-h/3.MAINCHIP.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451076722204133634\" src=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6YdZdZgyQI/AAAAAAAAACo/39OPaRStdk4/s200/3.MAINCHIP.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 180px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />supporting 회로 추가하기<br /><br />Pin 7 - Vcc - Digital Supply Voltage<br />Pin 8 - GND<br />Pin 22 - GND<br />Pin 21 - AREF - Analog reference pin for ADC (VCC를 연결한다.)<br />Pin 20 - AVcc - ADC 컨버터를 위한 Suppply voltage. ADC가 사용되지 않을 때는 power에 연결하고, 사용될 때는 로우패쓰 필터를 통해 power에 연결합니다.<br />(로우패쓰 필터는 power소스에서 나오는 노이즈를 줄여주는 회로입니다. 여기서는 로우패쓰 필터는 사용하지 않습니다.)<br /><br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YdZmRZ1TI/AAAAAAAAACw/u2qIxhBwb9Y/s1600-h/4.RESET_BUTTON.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451076724586042674\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YdZmRZ1TI/AAAAAAAAACw/u2qIxhBwb9Y/s200/4.RESET_BUTTON.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 194px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />RESET 스위치 연결하기<br /><br />RESET핀에 10k옴 풀업 저항을 통해 +5V 에 연결합니다. 이것은 아두이노가 동작중에 스스로 리셋되는 것을 막아줍니다. 리셋 핀은 그라운드(GND)로 풀다운될 때 리셋됩니다.<br /><br />작은 tactile스위치(택트스위치, 택트 버튼 등으로도 불린다.)를 추가하여, 새 프로그램을 업로딩할 때나 또는 필요할 때 리셋을 할 수 있도록 합니다. 이 스위치를 짧게 한번 눌러주면, 필요할 때마다 리셋을 할 수 있습니다. 위 사진처럼 리셋 스위치를 아두이노 칩 위에 브레드보드 골짜기를 가로질러 꽂습니다. 그 다음 스위치의 왼쪽 아래다리를 Atmega칩의 리셋 핀에 점퍼와이어로 연결합니다. 스위치의 왼쪽 위 다리는 GND에 전선으로 연결합니다.<br /><br /><br /><a href=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd15izmuI/AAAAAAAAAC4/siz0zjMuoHk/s1600-h/5.CRYSTAL.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077210795645666\" src=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd15izmuI/AAAAAAAAAC4/siz0zjMuoHk/s200/5.CRYSTAL.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 199px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />캐패시터와 클록을 연결한다<br /><br />9번핀과 10번핀에 16MHz 외부 클럭(크리스털)을 연결합니다. 그리고 이 두 핀과 그라운드를 연결하는 22pF 캐패시터를 추가합니다.<br /><br /><br /><a href=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd2Xc1PoI/AAAAAAAAADA/iHOm-cKGIgg/s1600-h/6.PIN13_LED.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077218823650946\" src=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd2Xc1PoI/AAAAAAAAADA/iHOm-cKGIgg/s200/6.PIN13_LED.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 167px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />Arduino pin 13에 LED 연결하기<br /><br />지금 사용하고 있는 메인칩에는 blink_led 프로그램이 이미 심어져 있습니다(이 blink_led 프로그램은 아두이노 소프트웨어 example에서 찾아볼 수 있습니다). blink_led 프로그램은 아두이노의 13번핀을 깜빡이게 하는데, 기억해야 할 것은 아두이노의 13번 핀은 ATMEGA8/168/328 의 13번 핀이 아니라는 것입니다. 이 아두이노의 13번 핀은 Atmega칩에서는 실제로 19번 핀입니다. 전선을 올바로 꼽았는지 확인하기 위해서는&nbsp;<a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YuT6xt_LI/AAAAAAAAAFA/hbrtLuHXUag/s1600-h/arduino_pinmap.png\" style=\"color: #de7008;\" target=\"_blank\">핀 맵핑</a>을 참고하세요.<br /><br />마지막으로 LED를 연결합니다. 긴 다리쪽(cathod)는 붉은 전선에 연결하고, 짧은 다리쪽(anode)은 220옴 저항에 연결합니다. 이 저항의 다른 쪽은 ground에 연결됩니다.<br /><br />여기까지 아두이노 연결의 기본이 완성되었습니다.<br />다음에는 아두이노에 프로그램을 심거나, 전원을 공급하는 것을 다룰 것입니다.</p>\r\n   <p><br /><strong><span style=\"font-size: 16.9px;\">4. USB to Serial 보드 연결하기</span></strong><br /><br /><a href=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6Yd293WHDI/AAAAAAAAADI/yTx46OORKuY/s1600-h/7.USB_ADAPTOR.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077229135404082\" src=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6Yd293WHDI/AAAAAAAAADI/yTx46OORKuY/s200/7.USB_ADAPTOR.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 118px;\" /></a><br /><br /><br /><br /><br />USB 어댑터 연결하기<br /></p>\r\n   <br /><br />\r\n   <p>이제 USB to Serial 보드를 연결합니다. 앞으로 이것을 간단히 USB어댑터라고 부르기로 하지요.<br />이 USB 어댑터는 아두이노에 전원을 공급하는 용도로도 사용됩니다. USB케이블에 연결된 컴퓨터에서 전원을 공급 받는 것이지요. 더 중요한 것은 이 USB어댑터가 있어야 PC(또는 Mac)에서 짠 아두이노 프로그램을 아두이노 칩에 전송할 수 있다는 것입니다. 달리 말하면, 아두이노를 단지 실행만 할 경우에는 이 어댑터가 필요하지는 않다는 것입니다. 전원 공급할 방법만 있으면 말이죠. 외부 전원 공급은 뒷부분에서 다시 다룹니다.<br /><br />이 USB어댑터를 살펴보면 RX, TX, VCC, GND라고 쓰여있는 쪽에 기다란 핀 네개가 삐죽 나와있는 것이 보일 것입니다.<br /></p>\r\n   <br /><br />\r\n   <p><br /><a href=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd3pEsN6I/AAAAAAAAADQ/30yqPKnANiI/s1600-h/8.FULL_SHOT.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077240734103458\" src=\"http://3.bp.blogspot.com/_Wpyq29hAdJc/S6Yd3pEsN6I/AAAAAAAAADQ/30yqPKnANiI/s200/8.FULL_SHOT.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 92px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />현재까지의 브레드보드 연결 상태.<br /><br /><br /><a href=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6Yd4P3hQyI/AAAAAAAAADY/mIkCFmazgP8/s1600-h/9.RXTX_WIRING.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077251147842338\" src=\"http://2.bp.blogspot.com/_Wpyq29hAdJc/S6Yd4P3hQyI/AAAAAAAAADY/mIkCFmazgP8/s200/9.RXTX_WIRING.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 96px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />전원 공급 및 RX와 TX 연결하기<br /><br />먼저 USB어댑터로부터 전원을 연결합니다. VCC는 USB의 5V전원을 보드로 공급하는 핀입니다. 이 VCC를 브레드보드의 power(붉은선 쪽)에 연결하고, GND를 ground(파란선 쪽)에 연결합니다.<br /><br />이제 우리가 새로 만든 아두이노에 USB어댑터를 이용하여 말을 걸어줄(?) 차례입니다. Atmega칩의 RX(2번핀)을 USB어댑터의 RX와 연결합니다. 그리고 Atmega칩의 TX(3번 핀)을 USB어댑터의 TX에 연결합니다.<br />USB to Serial 보드에 따라 TX-RX, RX-TX이렇게 크로스로 연결해주어야 하는 경우도 있습니다. 원래 개념상으로는 이것이 맞는데, 우리가 쓰는 이 USB어댑터에는 \'Arduino의 RX를 여기에 연결하시오\'라는 의미로 핀이름 자체를 RX로 적어 놓았습니다. TX도 마찬가지이고요. 그러니 RX는 RX에, TX는 TX에 연결하면 됩니다.<br /><br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeSVD-6BI/AAAAAAAAADo/JOl7PelhiVk/s1600-h/11.BLINK_OFF.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077699218892818\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeSVD-6BI/AAAAAAAAADo/JOl7PelhiVk/s200/11.BLINK_OFF.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 114px; height: 200px;\" /></a><a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YeR1Mhu6I/AAAAAAAAADg/Dv_dq-ddJto/s1600-h/10.BLINK_ON.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077690664795042\" src=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YeR1Mhu6I/AAAAAAAAADg/Dv_dq-ddJto/s200/10.BLINK_ON.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 114px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />USB 케이블 연결하기<br /><br />USB어댑터에 USB케이블을 꼽고 컴퓨터에 꼽아준다면, 위와 같이 LED가 깜빡이는 장면을 볼 수 있습니다. 와우~<br /><br /><br /><strong><span style=\"font-size: 16.9px;\">5.  외부 전원을 위한 회로 만들기</span></strong><br /><br />만약 이전에 마이크로컨트롤러를 가지고 작업을 해본 적이 있다면 이미 주로 사용하는 외부 전원공급 연결 방법이 있을 것입니다. 그렇다면 그 방법으로 연결하면 됩니다.<br />다음에 오는 내용은 5V로 레귤레이트된 전원을 사용하는 방법입니다.<br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeS6D0EsI/AAAAAAAAADw/ttGrslP_WSk/s1600-h/12.7805_WIRING.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077709150294722\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeS6D0EsI/AAAAAAAAADw/ttGrslP_WSk/s200/12.7805_WIRING.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 172px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />오른쪽 상단의 전원선 연결<br /><br />볼티지 레귤레이터가 위치할 자리에 power선과 ground선을 연결한다.<br /><br /><br /><a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YeTA7w86I/AAAAAAAAAD4/r3hGYde_Fe0/s1600-h/13.7805_CAPACITOR.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077710995583906\" src=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S6YeTA7w86I/AAAAAAAAAD4/r3hGYde_Fe0/s200/13.7805_CAPACITOR.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 200px; height: 115px;\" /></a><br /><br /><br /><br /><br />7805와 디커플링 캐패시터 연결<br /><br />브레드보드에 7805 레귤레이터를 위 그림과 같이 꼽습니다. 이 레귤레이터는 TO-220 패키지 타입인데, 외부전원으로부터 오는 입력은 왼쪽 핀에 연결하고, ground는 가운데 핀에 연결하고, 5V출력은 오른쪽 핀에서 나갑니다(레귤레이터의 앞면을 바라보았을 경우).<br />그리고 오른쪽 레일의 power와 ground 사이에 10uF 캐패시터를 연결합니다. 마찬가지로 레귤레이터의 input과 ground사이에도 10uF 캐패시터를 연결합니다. 캐패시터 옆면의 은색 띠가 ground쪽 다리임을 나타냅니다.<br /><br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeTmjpkLI/AAAAAAAAAEA/cDEP0uoY9wk/s1600-h/14.EXTERN_POWER_DONE.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451077721094983858\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6YeTmjpkLI/AAAAAAAAAEA/cDEP0uoY9wk/s200/14.EXTERN_POWER_DONE.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 167px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />외부 전원 입력<br /><br />레귤레이터 왼쪽에 붉은 선과 검은 선이, 외부 전원이 연결될 부분입니다. 붉은 선이 POWER이고, 검은 선은 GROUND입니다. 이 전원은 7~16V 사이만 허용된다는 것을 명심하세요. 이보다 더 낮으면 레귤레이터에서 5V를 뽑아낼 수 없고, 더 높으면 레귤레이터가 망가질 수 있습니다. 9V 건전지나, 9V DC전원 또는 12V DC전원이 적당합니다.<br /><br /><a href=\"http://www.plughouse.co.kr/shop/goods/Goods_view.php?G_code=20093001251548\" style=\"color: #de7008;\" target=\"_blank\">12V Adapter for Arduino</a>&nbsp;from Plughouse<br /><br /><br /><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6Yepc6qpQI/AAAAAAAAAEI/gIZ45jiIANw/s1600-h/15.EXTERN_BLINK_ON.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451078096464291074\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6Yepc6qpQI/AAAAAAAAAEI/gIZ45jiIANw/s200/15.EXTERN_BLINK_ON.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 129px; height: 200px;\" /></a><a href=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6Yep0vceHI/AAAAAAAAAEQ/KJqB-81ES-M/s1600-h/16.EXTERN_BLINK_OFF.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5451078102859675762\" src=\"http://4.bp.blogspot.com/_Wpyq29hAdJc/S6Yep0vceHI/AAAAAAAAAEQ/KJqB-81ES-M/s200/16.EXTERN_BLINK_OFF.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 126px; height: 200px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /></p>\r\n   <p>&nbsp;</p>\r\n   <p>&nbsp;</p>\r\n   <p>&nbsp;</p>\r\n   <p>9V건전지를 사용하여, blink_led 예제를 실행하고 있습니다. 아두이노는 이렇게 컴퓨터와의 연결없이, 혼자서도 작동할 수 있습니다.<br /><br /><br /><br /><a href=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S69jPFCXFXI/AAAAAAAAAFI/o2na5VNzcOM/s1600/17.ALL_DONE.jpg\" style=\"color: #de7008;\" target=\"_blank\"><img alt=\"\" border=\"0\" id=\"BLOGGER_PHOTO_ID_5453686784470226290\" src=\"http://1.bp.blogspot.com/_Wpyq29hAdJc/S69jPFCXFXI/AAAAAAAAAFI/o2na5VNzcOM/s400/17.ALL_DONE.jpg\" style=\"border-width: 0px; float: left; margin: 0px 10px 10px 0px; width: 400px; height: 322px;\" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></p>\r\n   </div>','http://plughouseblog.blogspot.com/2010/03/arduino-breadboard-diy.html','https://sadiinteractionlab.tistory.com/entry/Arduino-DIY-%ED%95%98%EA%B8%B0',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:16:33',0,'2019-04-26 14:16:33','210.101.103.92','','','','','','','','','','','',''),(229,-229,'',229,0,0,'','','html1','[ETC] LM1117-3.3 사용 3.3V 정전압 뽑기','...','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:17:04',1,'2019-04-26 14:17:04','210.101.103.92','','','','','','','','','','','',''),(230,-230,'',230,0,0,'','','html1','[Arduino] Wiznet WizFI210 아두이노 연결 핀설정','<p><span style=\"color: #404040; font-family: 굴림;\">(질문3)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">아두이노의 3.3v OUT을 입력전원으로 하려고 하는데 32번이 VIN_3V3 이라고 되어잇는데 이곳에&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">연결하면 되는지요?&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">(질문2) 답변의 회로도를 참고 하시기 바랍니다.&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">(질문4)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">AP설정이 WPAPSK로 되어 있는데 이럴대는 myWifFi.associate(SSID, Key, WEP_SECURITY, true)&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">함수에서 WEB_SECURITY를 WPA_SECURITY로 바꾸면 될까요?&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">네, WPA_SECURITY로 사용하시면 됩니다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:17:51',1,'2019-04-26 14:17:51','210.101.103.92','','','','','','','','','','','',''),(231,-231,'',231,0,0,'','','html1','[ETC] FT232RL 시리얼 to USB보드 자작','<p>&nbsp;...</p>','http://web.suapapa.net:8080/wordpress/?p=105','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:18:25',2,'2019-04-26 14:18:25','210.101.103.92','','','','','','','','','','','',''),(232,-232,'',232,0,0,'','','html1','[Arduino] 아두이노 + MRF24WB0MA','<h3 class=\"post-title entry-title\" itemprop=\"name\" style=\"margin: 0px; position: relative; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 24px; line-height: normal; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; color: #ffffff; background-color: #000000;\">Connecting the MRF24WB0MA to the Arduino</h3>\r\n<div class=\"post-header\" style=\"line-height: 1.6; margin: 0px 0px 1em; color: #ffffff; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; background-color: #000000;\">\r\n   <div class=\"post-header-line-1\">&nbsp;</div>\r\n   </div>\r\n<div class=\"post-body entry-content\" id=\"post-body-578986898748490685\" itemprop=\"articleBody\" style=\"width: 776px; position: relative; line-height: 1.4; color: #ffffff; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; background-color: #000000;\">UPDATE 01-Mar-2016: Use Atmel\'s&nbsp;<a href=\"http://www.digikey.com/product-detail/en/atmel/ATWINC1500-MR210PA/ATWINC1500-MR210PA-ND/5015469\" target=\"_blank\" style=\"text-decoration-line: none; color: #444444;\">ATWINC1500</a>&nbsp;instead - Low power, WPA-Entreprise, better Stability!<br /><br />UPDATE 01/05/2013: They are calling all this \"Internet of Things\" now lol :D<br /><br /><br /><br />Power to the masses.<br /><br />\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://2.bp.blogspot.com/-eO67cLiFLpI/TptMMCOQ3oI/AAAAAAAAARQ/Le2QOnYwMEk/s1600/IMG_8128+%2528Medium%2529.JPG\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"266\" src=\"https://2.bp.blogspot.com/-eO67cLiFLpI/TptMMCOQ3oI/AAAAAAAAARQ/Le2QOnYwMEk/s400/IMG_8128+%2528Medium%2529.JPG\" width=\"400\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <br /><br />With the recent availability of&nbsp;<i>cheap&nbsp;</i>WiFi modules like<a href=\"http://uk.farnell.com/microchip/mrf24wb0ma-rm/module-rf-trx-2-4ghz-ieee-802-11/dp/1823142\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">&nbsp;Microchip\'s&nbsp;MRF24WB0MA</a>, I find it quite difficult to NOT use them in some way or another, given their essentially limitless potential in&nbsp;<i>remote&nbsp;</i>sensing/control applications.<br /><br />The word \"remote\" here retains its&nbsp;full meaning; you can basically turn on that lamp in your room from the other side of the&nbsp;<i>planet</i>, - or anywhere in the world for that matter - provided that you can get access to that thing we call the internet.<br /><br />\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://3.bp.blogspot.com/-i-pBo2icz1Q/TptMEXMcahI/AAAAAAAAARI/1NjmQ8cPN7g/s1600/IMG_8125+%2528Medium%2529.JPG\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"213\" src=\"https://3.bp.blogspot.com/-i-pBo2icz1Q/TptMEXMcahI/AAAAAAAAARI/1NjmQ8cPN7g/s320/IMG_8125+%2528Medium%2529.JPG\" width=\"320\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <br /><br />In this post, I will show you how to use the MRF24WB0MA on the Arduino platform.<br /><br />Things you will need:<br /><br />- MRF24WB0MA WiFi Module. (Available from Farnell&nbsp;<a href=\"http://uk.farnell.com/microchip/mrf24wb0ma-rm/module-rf-trx-2-4ghz-ieee-802-11/dp/1823142?Ntt=mrf24wb0ma\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">here</a>)<br />- 4x 4.7k Ohm Resistors<br />- 2x 1.0uF Capacitors.<br />- Some way of connecting these together. I used a perfboard and some wires.&nbsp;<br /><br />[Also, check out<a href=\"http://uk.farnell.com/arduino/\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">&nbsp;Farnell\'s Arduino page</a>&nbsp;for some interesting Arduino-related products. These guys are cool.]<br /><br />The schematics described below are based on the&nbsp;<a href=\"http://asynclabs.com/wiki/index.php?title=WiShield_1.0\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">WiShield 1.0</a>&nbsp;Arduino shield from AsyncLabs.<br /><br />First you will have to connect the module as described below to the Arduino shield. The resistors are all 4.7k and the two caps are 1.0uF each.&nbsp;<br /><br />\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://4.bp.blogspot.com/-G34XEMSsR6M/TptJRvsF9aI/AAAAAAAAARA/awgsSkyI-pM/s1600/mrf_arduino.png\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"297\" src=\"https://4.bp.blogspot.com/-G34XEMSsR6M/TptJRvsF9aI/AAAAAAAAARA/awgsSkyI-pM/s400/mrf_arduino.png\" width=\"400\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><br /></div>\r\n   <br /><b>Remember: Power is at 3.3v.&nbsp;</b><br /><br />The resulting circuit should be something similar to this:<br /><br />\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://1.bp.blogspot.com/-xdSHmkWFku0/TptMfsoQwRI/AAAAAAAAARY/DjZr1kRW6XQ/s1600/IMG_8129+%2528Medium%2529.JPG\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"266\" src=\"https://1.bp.blogspot.com/-xdSHmkWFku0/TptMfsoQwRI/AAAAAAAAARY/DjZr1kRW6XQ/s400/IMG_8129+%2528Medium%2529.JPG\" width=\"400\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <br /><br />Then you\'ll just hook this up to your Arduino. Your setup may look&nbsp;similar&nbsp;to this:<br /><br />\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://1.bp.blogspot.com/-9t96IGzYWwU/TptNDHPSD3I/AAAAAAAAARg/ymXUnxx5Alk/s1600/IMG_8131+%2528Medium%2529.JPG\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"266\" src=\"https://1.bp.blogspot.com/-9t96IGzYWwU/TptNDHPSD3I/AAAAAAAAARg/ymXUnxx5Alk/s400/IMG_8131+%2528Medium%2529.JPG\" width=\"400\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <br /><br />The task of connecting the WiFi module to the Arduino is way simpler than the above pictures might suggest. It\'s really only about connecting the SPI interface (5 wires) and Power + Reset (3 wires).<br /><br />The hardware setup described is basically equivalent to an Arduino board with a WiShield 1.0 stacked on it.<br /><br />Therefore, as you might have guessed, things get easier from now on - it\'s all software.<br /><br />On your computer:<br /><br /><span class=\"Apple-style-span\" style=\"background-color: white; font-family: sans-serif; line-height: 19px;\"></span><br />\r\n   <ol style=\"line-height: 1.5em; list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;\">\r\n      <li style=\"padding: 0px; margin: 0px 0px 0.1em;\">Download the WiShield library&nbsp;<a href=\"http://asynclabs.com/wiki/index.php?title=WiShield_library\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">here</a>. [now mirrored on my&nbsp;<a href=\"https://github.com/manis404/WiShield\" target=\"_blank\" style=\"text-decoration-line: none; color: #444444;\">github</a>]</li>\r\n      <li style=\"padding: 0px; margin: 0px 0px 0.1em;\">Put all the files/directories under&nbsp;<arduino dir=\"\" sketch=\"\">/libraries/WiShield/ directory.</arduino></li>\r\n      <li style=\"padding: 0px; margin: 0px 0px 0.1em;\">Restart the Arduino environment, so that the library files get built and the sketches become available.</li>\r\n      </ol>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">Done. At this stage you are ready to experiment with the examples included in the WiShield libraries.&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">I\'ll suggest you to start with the \"WiShield&gt;Webserver\" example.&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">This is a screencap of the page you should get when you type in the IP address of the module in your browser:</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"http://2.bp.blogspot.com/-dDw4Hg3eoVY/TptUbrOYEOI/AAAAAAAAARo/9PSv68bIrSY/s1600/1.jpg\" imageanchor=\"1\" style=\"text-decoration-line: none; color: #444444; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" height=\"311\" src=\"https://2.bp.blogspot.com/-dDw4Hg3eoVY/TptUbrOYEOI/AAAAAAAAARo/9PSv68bIrSY/s400/1.jpg\" width=\"400\" style=\"border: 1px solid transparent; position: relative; padding: 8px; background: rgb(34, 34, 34); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; border-radius: 0px;\" /></a></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">You\'ll have to hardcode the IP settings in the Arduino Sketch. The module does NOT support DHCP for automatic IP assignment in the examples. This implies that if you are using infrastructure mode, you will need to set your router to reserve the IP address you set in the Arduino Sketch.&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">If you are using adhoc mode, things get simpler. Just make sure you set your computer up for static IP addressing. To use adhoc mode: In the sketch, change the line containing&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><span class=\"Apple-style-span\" style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><b>unsigned char wireless_mode = WIRELESS_MODE_INFRA;</b></span></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">to&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><span class=\"Apple-style-span\" style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><b>unsigned char wireless_mode = WIRELESS_MODE_ADHOC;</b></span></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">I noticed that if you use WPA2 authentication, the module will take about 30seconds to authenticate. No need to panic if the LED (shown on the schematic) does not light up right away.&nbsp;</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">Also, make sure that you set up the security type properly:</span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n   <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\">\r\n         <pre></pre>\r\n         </div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\"><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><span style=\"color: #cc6600;\">unsigned</span>&nbsp;<span style=\"color: #cc6600;\">char</span>&nbsp;security_type = 0;<span class=\"Apple-tab-span\" style=\"white-space: pre;\"></span><span style=\"color: #7e7e7e;\">// 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2</span></span></div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\"><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\">&nbsp;</div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\"><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span><br />\r\n      <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\"><br /></span></div>\r\n      <span class=\"Apple-style-span\" style=\"line-height: 24px;\"></span>\r\n      <div><span class=\"Apple-style-span\" style=\"line-height: 24px;\">After you\'ve managed to correctly run the examples included in the libraries, check out<a href=\"http://asynclabs.com/forums/\" style=\"text-decoration-line: none; color: #444444;\" target=\"_blank\">&nbsp;AsyncLabs\' forums</a>&nbsp;for a variety of more interesting, real-life applications.&nbsp;</span></div>\r\n      </div>\r\n   </div>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:19:04',2,'2019-04-26 14:19:04','210.101.103.92','','','','','','','','','','','',''),(233,-233,'',233,0,0,'','','html1','[ETC] 전류에 따른 PCB 패턴폭','<p><a style=\"color: #3a4e40; font-family: 굴림;\"><img src=\"http://geoworld.cafe24.com/gnu3/data/file/Computer/2daa88fb_pcb_pattern.png\" width=\"563\" height=\"479\" border=\"0\" /></a></p>\r\n<p style=\"color: #222222; font-family: 굴림;\"><span class=\"content\" style=\"color: #404040;\">일반적으로 사용하는 양면 PCB 의 동박 두께는 1 OZ (35um) 이다. 만약 내층(4층이상) 을 사용한다면&nbsp;<br />내층의 동박 두께는 HOZ(18um) 로 위 표에 1/2 하면 될 것이다.</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:19:28',0,'2019-04-26 14:19:28','210.101.103.92','','','','','','','','','','','',''),(234,-234,'',234,0,0,'','','html1','[ETC] PCB 자료 정리','<table width=\"100%\" cellpadding=\"5\" style=\"font-family: 굴림;\">\r\n   <tbody>\r\n      <tr>\r\n         <td class=\"lh\" height=\"100\" style=\"color: #222222; line-height: 18px; word-break: break-all;\"><span class=\"content\" style=\"color: #404040;\">PCB 자료&nbsp;정리</span><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=8&amp;wr_id=31089\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a><a href=\"http://geoworld.cafe24.com/gnu3/?doc=bbs/gnuboard.php&amp;bo_table=Computer&amp;page=8&amp;wr_id=31089\" style=\"text-decoration-line: none; color: #3a4e40;\" target=\"_blank\"></a></td>\r\n         </tr>\r\n      <tr></tr>\r\n      </tbody>\r\n   </table>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:20:04',2,'2019-04-26 14:20:04','210.101.103.92','','','','','','','','','','','',''),(235,-235,'',235,0,0,'','','html1','[Eagle] Eagle 이글캐드 DRC설정 등','<p>...</p>','','',0,0,9,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:20:38',2,'2019-04-26 14:20:38','210.101.103.92','','','','','','','','','','','',''),(236,-236,'',236,0,0,'','','html1','[Eagle] Eagle 이글캐드 사용환경 저장 백업','<p>...</p>','','',0,0,7,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:22:47',2,'2019-04-26 14:22:47','210.101.103.92','','','','','','','','','','','',''),(237,-237,'',237,0,0,'','','html1','[ETC] Chrome Youtube download','<p><span style=\"color: #404040; font-family: 굴림;\">1. 부가기능을 \'다른 이름으로 링크 저장\'&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2. 크롬 \'확장 프로그램\' 관리 탭으로 진입&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">3. 다운받았던 부가기능 파일을 드래그 드롭하여 설치&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">4. 크롬 재시작</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:24:27',0,'2019-04-26 14:24:27','210.101.103.92','','','','','','','','','','','',''),(238,-238,'',238,0,0,'','','html1','[Arduino] Wizfi210 + Arduino Uno R3','<p><span style=\"color: #404040; font-family: 굴림;\">-GND : 1/18/31/48&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-3.3V : 32&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-27pin(MISO) ---&gt; 12pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-28pin(CLK) -----&gt; 13pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-29pin(CS) ------&gt; 4pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">-30pin(MOSI) ---&gt; 11pin&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">*TimeOne / Wizfi2x0 라이브러리 파일은 꼭 library 디렉토리에...&nbsp;</span><br style=\"color: #404040; font-family: 굴림;\" /><span style=\"color: #404040; font-family: 굴림;\">2013-3-15 업데이트 됨</span></p>','','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-04-26 14:35:51',2,'2019-04-26 14:35:51','210.101.103.92','','','','','','','','','','','',''),