public ArrayList mixRandomNumber(int mixCnt) {ArrayList list = new ArrayList();ArrayList mixAry = new ArrayList();Random random = new Random();for(int i = 0; i 0; i--){int index = random.nextInt(i); int rNum = list.get(index); mixAry.add( rNum);list.remove(index); }list = null;Log.e("XXX","result"+mixAry.get(0)+"__"+mixAry.get(1)+"__"+mi..
http://www.bytefoundry.co.uk/blog/?p=140 알람 등록 및 삭제, 팝업까지 표출. activity를 투명하게 하고 싶다면. android:theme="@android:style/Theme.Translucent.NoTitleBar" 잠금 화면에서 알람이 울리지 않을 경우나 팝업이 뜨지않는다면http://aroundck.tistory.com/48 PendingIntent에 putExtra 로 값을 넘겼을 때 바뀌지 않는다면. PendingIntent alarmPI = PendingIntent.getBroadcast( this, i, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT); 마지막 Flag값 수정해 줄것.
android:gravity="center_horizontal|center_vertical" '|' 기호를 이용하여 속성을 중첩 시킬 수 있다. (공백이 있으면 안됨) center_horizontal 가로 방향 중앙정렬 center_vertical 세로 방향 중앙정렬 left 왼쪽 정렬 right 오른쪽 정렬 top 상단 정렬 bottom 하단 정렬 center 중앙정렬 fill 가로 세로로 가득 채움 fill_vertical 세로 방향으로 가득 채움 fill_horizontal 가로 방향으로 가득 채움 보다 자세한 내용은 래퍼런스 참조http://developer.android.com/reference/android/view/Gravity.html
MD5를 가져오기 위해서.1. 터미널 실행 (명령어 입력)2. cd .android3. keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android -v 4. https://code.google.com/apis/console/ 로그인 접속하여 "Services" tab에서 "Google Maps Android API v2" 항목 "on" 5. 키 생성 완료.
Type error: No resource identifier found for attribute 'layout_marginbottom' in package 'android'=> 오타로 인한 오류 layout_marginbottom -> layout_marginBottom 으로 수정 error: Error parsing XML: unbound prefix=>xml구조 오류 오타 있는지 잘 확인해 볼 것. The type GoogleMapActivity must implement the inherited abstract method MapActivity.isRouteDisplayed()=> 에러가 발생한 빨간 물결 표시가 되있는곳에 커서를 옴길경우 하단에 노란색 메시지가 표시되며, "Add unimplem..