로그인/로그아웃 처리 시 세션이 맞지 않는 문제로 인하여 초기화가 필요할 경우가 생김. CookieSyncManager cookieSyncManager = CookieSyncManager.createInstance(this);CookieManager cookieManager = CookieManager.getInstance();cookieManager.setAcceptCookie(true);cookieManager.removeSessionCookie();cookieSyncManager.sync(); //쿠키값 삭제 확인. Log.e("cc", "cookie " +CookieManager.getInstance().getCookie("도메인 URL")); 해당 코드를 실행 후 쿠키값을 찍어보면 null이 발..
이클립스 실행중 다음 상태에서 로딩이 멈추었다."eclipse loading org.eclipse.mylyn.tasks.ui" 해결 방법은 workspace 경로를 지정해 줄 때 기존 경로가 아닌 새로운 경로 지정을 선택하면 숨김 파일도 표시가 된다.다음경로를 따라가 파일을 지워주면 된다.workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi 맥일 경우 숨김파일 표시를 설정하기 위해서는 '터미널' 실행 후 defaults write com.apple.finder AppleShowAllFiles -bool true killall Finder
Eclipse에서 Svn 설정이후 다음과 같은 에러 발생.The project was not built due to Unable to load default SVN Client. Fix the problem, then try refreshing this project and building it since it may be inconsistent http://svnkit.com/download.php위 경로에서 원하는 스타일로 다운로드 하여도 되고,Eclipse > Help > Install New Software... > http://eclipse.svnkit.com/1.8.x 입력 후 설치해도 된다.
public ArrayList mixRandomNumber(int mixCnt) {ArrayList list = new ArrayList();ArrayList mixAry = new ArrayList();Random random = new Random();for(int i = 0; i < mixCnt; ++i) {list.add(i);} for(int i = list.size(); 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값 수정해 줄것.