본문 바로가기

TCP/IP 예제 (android) 출처: http://goo.gl/pQKG64 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601.. 더보기
화면 방향 설정 (android) 출처: http://goo.gl/xEDaWt AndroidMenifest.xml 에서 에 android:screenOrientation="portrait" 을 입력합니다. (가로모드의 경우 landscape입력 아래는 코드상에서.. 사용하는 방법this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);//세로this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSPACE);//가로 더보기
버튼 클릭 이벤트 (android) 출처: http://goo.gl/1rcMYj 123456View btn_viewcard=(Button)findViewById(R.id.root_btnviewcard);btn_viewcard.setOnClickListener(new Button.OnClickListener() {public void onClick(View v) { //Click }}); 더보기
퍼미션 정리 (android) 출처: http://goo.gl/LjDxyL 원문: http://javaexpert.tistory.com/329 //위치정보 확인함 //위치정보 확인함//wifi 연결을 확인함 //wifi 체인지를 확인함//네트웍이 연결된것을 확인할수 있게함//부팅완료를 확인할수있게함// 인터넷을 사용함// 외장메모리 사용//녹음이 가능하게 함 ACCESS_CHECKIN_PROPERTIES 체크인데이터베이스의_속성테이블로_액세스 ACCESS_COARSE_LOCATION 코스_로케이션_액세스_(Cell-ID/WiFi) ACCESS_FINE_LOCATION 파인로케이션_액세스(GPS) ACCESS_LOCATION_EXTRA_COMMANDS 로케이션_옵션_커맨드_액세스 ACCESS_MOCK_LOCATION 목_로케이션_프로바.. 더보기
intent 예시 (android) [code]// 웹페이지 띄우기 Uri uri = Uri.parse(“http://www.google.com“); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); // 구글맵 띄우기 Uri uri = Uri.parse(“geo:38.899533,-77.036476″); Intent it = new Intent(Intent.Action_VIEW,uri); startActivity(it); // 구글 길찾기 띄우기 Uri uri = Uri.parse(“http://maps.google.com/maps?f=d&saddr=출발지주소&daddr=도착지주소&hl=ko“); Intent it = new Intent(Intent.ACTION_VIE.. 더보기
자바의 기본적인 형변환 출처 : http://forum.falinux.com/zbxe/index.php?amp;mid=lecture_tip&mid=lecture_tip&page=83&document_srl=550084 int to String String str = Integer.toString(i); String str = "" + i; String to int int i = Integer.parseInt(str); int i = Integer.valueOf(str).intValue(); double to String String str = Double.toString(d); long to String String str = Long.toString(l); float to String String str = Float.toS.. 더보기