본문 바로가기

example

[Android] AlarmManager를 이용한 Schedule 관리 우선, 미리 말씀을 드리겠습니다. 제가 테스트 해 본 결과, AlarmManager는 최소 5초 이상은 지정을 해야 합니다.구글 에서는 10초 이상을 권장 하더라구요.1초마다 지정을 할 경우는 5초마다 불러오게 됩니다. 그리고 도즈 모드에서는 적어도 10분 걸릴 수도 있다고 합니다. 그럼 만들어본 로직은 AlarmManager를 Repeat를 쓰지 않고 아래 형태로 호출하도록 하였습니다. private void startAlram(Context context, PendingIntent pendingIntent, int delay) { // AlarmManager 호출 AlarmManager manager = (AlarmManager) context.getSystemService(Context.ALARM_.. 더보기
[Android][스크랩] How To Make Material Design Navigation Drawer With Header View http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html One of the most evident changes when the material design came out and I got my hands on was the new Navigation Drawer, The Hamburger toggle icon animation seemed very beautiful, The Overlapping drawer on status bar also seemed nice effect and so we are going to learn how to make a Navigation Drawer in this tut.. 더보기
[ Android ] AIDL 파일 예제 android 소스를 보다가 aidl 파일이 보여서..무엇인고~ 하고 바로 구글 형님에게 물어보니~ 역시나 한 유능한 분께서 블로그도 써놓고 예제도 올려놓으셨다.http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110083320332&parentCategoryNo=18&viewDate=¤tPage=1&listtype=0 AIDL ( Android Interface Definition Langage ) 는 IPC의 한 역할로,서로 다른 프로세스 에서 Class를 공유하고자 할 때 사용한다고 정의 하고 싶다. 즉, 일반적으로 Activity에선 Service를 start하고 end의 역할이 끝이다.하지만, AIDL을 이용하면 Service와 bindi.. 더보기
[ Object-c ] 클래스 다루기 원래 안드로이드 개발자인 나.. 아마 프로그램 이해방식이 자바쪽으로 많이 되어 있을 것이다. 이해바람. 참고로 전.. 윈도우에서 공부중이란...^^;; @interface : 클래스를 선언 시켜주는 부분이다. @implementation : 선언 되어진 변수나 메소드를 가지고 실제 코드를 작성. 자바와 비슷하지만, 두 부류로 나누어져 있다는 게 큰 특징 같다. 한번 implemetation만 선언해도 되지 않을까 했는데.. 역시나 오류가 뜨는군..^^;; @interface 클래스 이름: 부모 클래스 { 변수 선언; } 메소드 선언; @end @implementaion 클래스 이름 실제 코드 @end 샘플 소스 #import // 클래스 형태를 잡아주는 선언 부분 @interface Fraction: N.. 더보기