Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # Android Hello World ### 프로젝트 생성 ### appcompat_v7 하위버전에서 사용할수 있도록 옵션 메뉴등이 포함된 라이브러리이다. #### appcompat_v7 안 만들기 프로젝트 생성시에 Minimun Required SDK 에서 `API 19: Android 4.4 (KitKat)` 을 선택한다. 그리고 안드로이드 매니페스트 부분에서 `android:minSdkVersion="7"` 로 변경한다. ### USB_DEBUGGING #### Target 목록에 출력되지 않을 때 드라이버 다운로드 후 설치 [[http://www.pantechservice.co.kr/down/software/main.sky#resultArea|베가 넘버6 드라이버]] ### 버튼 이벤트 추가 <sxh xml; title:actrivity_main.xml 에 버튼 추가> <Button android:id="@+id/btnStart" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="시작" /> </sxh> <sxh java; title:MainActivity.java 에 이벤트 추가> Button btnStart = (Button)findViewById(R.id.btnStart); btnStart.setOnClickListener(new Button.OnClickListener(){ @Override public void onClick(View arg0) { // TODO Auto-generated method stub } }); </sxh> ### 현재 시각 ```java // 현재 시간을 msec으로 구한다. long now = System.currentTimeMillis(); // 현재 시간을 저장 한다. Date date = new Date(now); ``` ### 참고 * http://ggari.tistory.com/233 * http://wisegirl.tistory.com/82 open/android-hello-world.txt Last modified: 2024/10/05 06:15by 127.0.0.1