반응형 전체 글313 Android Handler Delay leftTime 남은시간 구하기 Android handler 남은 시간 확인Android 내에서 대부분의 Delay 통신은 Handler 를 사용하여 구현하는 중에 현재 Delay에 대한 남은 시간을 알야아 하는 상황이 발생했다.아래와 같이 구현하면 남은 시간을 측정할 수 있다. 시작 시간 기록 long handlerStartTime = System.nanoTime(); handler.postDelayed(… 현재 소요 시간 추출 long elapsedTime = System.nanoTime()-startTime; 시작 시간으로부터 남은 시간 추출 long remainingTime = 6000 - elapsedTime; generated by haroopad Android 2016. 3. 3. Android Studio All Search 정의된 모든 것 검색하기 androidstudio_search.html Android Studio Search 정의된 모든 것 검색하기‘Ctrl + Alt + Shift + N’클래스, 변수, 스타일, 테마 등을 한번에 검색하기 위해서는 위 단축키를 입력한다. generated by haroopad Android/Android Studio 2016. 3. 3. Android Studio Style, Theme 확인하기 androidstudio_styletheme.html Android Studio Style Theme 확인하기‘Ctrl + Shift + I’Android Studio 에서 xml 파일 내의 정의된 Style 을 확인하고 싶을 때가 있다.확인하고 싶은 값에 커서를 위치시키고 Ctrl + Shift + I 를 누르면 정의된 Style 에 대한 정의가 간략하게 표시된다. generated by haroopad Android/Android Studio 2016. 3. 3. Android Invisible Button Action 투명 버튼 클릭 안드로이드에 화면 가장자리를 특정 패턴으로 클릭할 때 어떤 이벤트를 주고 싶었다.일반적으로 버튼에 Invisible 효과를 부여하면 버튼 클릭을 인식하지 못한다. 아래와 같이 처리하면 클릭 이벤트를 받을 수 있다. Button.setVisibility(view.VISIBLE); Button.setBackgroundColor(Color.TRANSPARENT); Android 2016. 2. 12. Mac Nodeclipse Cannot run program "node" Mac에서 이클립스에 node 플러그인을 설치하고 기본 node express project를 생성한 후 Run as 를 실행 했을 때 Cannot run program "node" no such directory... 등의 에러가 날 때가 있다. 이는 터미널 경로와 이클립스 실제 경로가 일치하지 않아 발생하는 문제이다. 이럴 경우 sudo vi /etc/launchd.conf 를 생성하여 setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 를 입력하고 mac을 재부팅 하면 정상적으로 실행된다. It appears in Mac OS X 10.8 (and possible earlier) GUI apps do not get the same path as th.. 카테고리 없음 2016. 2. 12. eclipse An error has occurred. See the log file .metadata/.log. In that case , delete plugin folder1. Close Eclipse.2. Delete: /YOUR PATH TO WORKSPACE/.metadata/.plugins/org.eclipse.core.resources3. Launch eclipse. IT 문제해결 2016. 2. 12. Mac 내 컴퓨터의 os bit 확인 (Check Mac os bit) 터미널 창을 열어서 다음과 같이 sysctl hw | grep 64bit 를 이용하여 확인할 수 있다.(oprn terminal and type sysctl hw | grep 64bit ) 위와 같이 명령어를 쳤을 때 1 이면 64bit, 0이면 32bit 이다. (if print '1' your mac is 64bit , if print '0' your mac is 32bit) 카테고리 없음 2016. 2. 12. Install JDK on Ubuntu 1. Install OpenJdk $ sudo apt-get install openjdk-7-jdk 2. Install Oracle java7 jdk $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-jdk7-installer 2-1. Install Oracle java7 jdk Manually $ cd ~ $ cd 다운로드/ $ Unzip Download JDK File $ tar zxvf jdk-7u7-linux-i586.tar.gz Normally locate java PATH is /use/lib $ sudo mkdir -p /usr/lib/jvm/jdk1.7.0 move.. 카테고리 없음 2016. 2. 12. Change Linux Host Name 1. Open hostname File1$ sudo vi /etc/hostname 2. Set host Name1ubuntu5 3. Open Setting Host File1$ sudo vi /etc/hosts 4. Write host Name1127.0.1.1 ubuntu5 5. Restart Ubuntu1$ sudo reboot 카테고리 없음 2016. 2. 12. Check Ubuntu CPU Info Total CPU Info1$ cat /proc/cpuinfo Count Logical Core1$ grep -c processor /proc/cpuinfo Count Physical CPU1$ grep "physical id" /proc/cpuinfo | sort -u | wc -l Count CPU's Physical Core1$ grep "cpu cores" /proc/cpuinfo | tail -1 카테고리 없음 2016. 2. 12. Check my Ubuntu is 32bit or 64bit Check my Ubuntu is 32bit or 64bit Open Terminal => dpkg -s libc6 | grep Arch Architecture: i386 -> 32bit Architecture: amd64 -> 64bit. You can install amd64 version on Intel 64bit support CPU . 카테고리 없음 2016. 2. 12. 이전 1 ··· 24 25 26 27 28 29 다음 반응형