Computer/Android&iOS169 (안드로이드) Incorrect line ending: ... .에러 에러 내용 : Incorrect line ending: found carriage return (\r) without corresponding newline (\n) 증상 : xml 레이아웃 편집중에 갑자기 아무것도 이상한것이 없는데위와같은 메세지의 에러가 떴다.나의 경우는 LinearLayout에서 발생. 해결법 : Ctrl+Shift+F 참고 : http://stackoverflow.com/questions/14049508/incorrect-line-ending-found-carriage-return-r-without-corresponding-newline 2014. 2. 20. [ 안드로이드, Java ] 소수점 n째 자리까지 자르기 /** * 소수점 n째자리까지 자름. * 반올림이 아니라 버림이다. 주의하셍 * */ public String adjustMinority(String minority, int n){ // 소수점이 있다면 if(minority.contains(".")){ // .을 기준으로 쪼개서 String[] splitedMinority = minority.split("[.]"); // 소수점 이하 자리수가 n보다 큰지 작은지 재보자 //n보다 크다면 잘라내고, //n보다 작다면 n만큼 0을 채워넣어야겠지? if(splitedMinority[1].length() > n){ splitedMinority[1] = splitedMinority[1].substring(0, n); }else if(splitedMinority[.. 2014. 2. 4. [안드로이드] Back key 두번 눌러야 종료되게 만들기. BACK_TIMEOUT 은 밀리초단위로 2000이면 2초이다. 2초 이내에 BACK 키가 다시 눌릴경우 종료하는 코드.FLAG를 이용해서 2초이내에 눌렸는지 판단한다.//================================================== // Back key 두번 종료 private static final int MSG_TIMER_EXPIRED = 1; private static final int BACK_TIMEOUT= 2000; private boolean mIsBackKeyPressed= false; private long mCurrentTimeInMillis= 0; @Override public void onBackPressed() { if(mIsBackKeyPressed .. 2014. 2. 4. 안드로이드 마켓 927 오류 출처 : http://answers.informer.com/11982/what-error-receive-when-want-update-application-from-google?show=12222#a12222 증상 : 927 에러는 개발자가 앱을 업데이트 한 후, 유저가 업데이트 된 앱을 내려받을 때 종종 발생(여지껏 겪어본 바로는..) 원인 : 1. 사용자 네트워크 문제2. Google play store 서버 문제 해결법 : 1. 사용자가 와이파이등 통신 환경을 변경해서 재시도 해본다.2. 앱관리 -> Google play store 앱을 강제종료후 재시도 해본다.3. 앱관리 -> Google play store 앱에서 데이터 캐시를 모두 지운후 재시도 해본다.4. Google play store의 .. 2014. 1. 21. SIGABRT:: This generally means that..... 오류 원인 해결법 Couldn't register Lee.프로젝트이름 with the bootstrap server. Error: unknown error code.This generally means that another instance of this process was already running or is hung in the debugger.(gdb) 이런 오류가 나의 수명중 하루를 단축시켰다. 검색결과 이것은 xcode 자체 오류이거나, 여러 어플을 한개의 어플아이디로 테스트할때 생기는버그 간단하게는 에뮬레이터를 껏다 켜는 것으로 해결가능하며 안되면 xcode 재부팅, 안되면 컴퓨터 재부팅, 안되면 profile 전부 삭제후 재설치, 가장 심각할 경우 xcode재설치 하는것으로 오류를 해결할 수 있다. 2014. 1. 3. (아이폰) 아이폰은 tel:.. 소스로 전화걸때 *나 #이 들어가는 것을 막아놓았다. 가끔 앱을 작성하면서 전화걸때 *이나 #을 사용해야 하는 경우가 많다 예를들어, 착신전환이나, 내선번호연결등을 사용할때... #123123 *71 같은 번호로 전화를 걸어야 하는데 아이폰은 그게 안됨 IOS Developer Library를 보면https://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html#//apple_ref/doc/uid/TP40007893-SW1 Phone Links ............To prevent users from maliciously redirecting phone calls or changing the behavior of a phone.. 2014. 1. 3. 이전 1 ··· 24 25 26 27 28 29 다음