목록전체 글 (1471)
오늘도 공부
[Android] 안드로이드 인디케이터 설정 - NotificationManager Android / Goal 2010/08/02 13:34 [출처] http://blog.naver.com/oh4zzang/40111693903 안드로이드에서 NotificationManager를 통해 인디케이터 바를 설정하거나 출력(notify)할 수 있다. 흔히들 인디케이터 바를 status 바라도 말하기도 한다. 우선 간단하게 getSystemService() 메소드를 통해 NotificationManager을 받아올수 있다. 이후 flags 값을 셋팅하고, setLatestEventInfo를 통해 noti 선택 시 실행될 Activity를 설정해 주면된다. private void showNotify() { Notif..
출처 : http://sje0114121.blog.me/150089240741 background에서 작업하기 예) 미디어 플레이어 : 꼭 Service로 만들어야 하는건 아니다. Activity로도 만들수있음. 장시간으로 하면서 user Interface가 거의 없는 것을 Service로 만드는 게 좋다. * intent filter 존재 : intent로 시작됨. Intent i = new Intent(명시적 or 암시적) startService(i); // 한 life cycle 돌게됨. - 객체는 singleton이라서 다른곳에서 startService()를 다시 호출해도 onCreate()는 되지않고 onStart()만 다시불린다. stopService(i); bindService(i); // ..
Class Overview MediaPlayer class can be used to control playback of audio/video files and streams. An example on how to use the methods in this class can be found in VideoView. Please see Audio and Video for additional help using MediaPlayer. Topics covered here are: State Diagram Valid and Invalid States Permissions State Diagram Playback control of audio/video files and streams is managed as a..
개발 Q&A에서 가끔 보던 질문이고 저 또한 질문 했던 내용 입니다. 이미지 버튼을 사용시 버튼을 클릭했을때와 땟을때의 처리를 해결 못해서 기본 안드로이드 버튼만 사용중이었습니다. 해결을 하려고 setBackgroundResource도 생각했었습니다만... setBackgroundResource를 사용했을경우에는 버튼을 클릭했을경우엔 이미지가 바뀌지만 땟을경우에 그이미지가 그대로 남아있어서 스레드를 돌릴까도 생각도 했었는데요... 몇주전까지만해도 구글링을 해서도 찾지 못했던 내용 이었는데 오늘 그 해답을 찾았습니다 ㅠ.ㅠ 다른 api내용 찾다가 우연히 발견하게 되었습니다. res/layout/main.xml res/drawable/playbutton_click.xml drawable의폴더에는 버튼이 눌러..
Service - 백그라운드 음악 실행 토요특강 / 안드로이드 2010/11/20 11:31 http://blog.naver.com/jeggange/90100530068 출처: Service 사용자와 상호작용 없이 내부적으로 실행되는 프로세스 - UI없이 오랫동안 살아있으면서 실행되는 코드들 - media player activity는 Context.startService()를 이용하여 백그라운드로 음악이 계속 재생되는 서비스 구동 - 서비스에 접근할 때, 서비스에 의해 나타난 인터페이스를 통해 서비스와 통신할 수 있다. 이미지 버튼과 음악 재생에 사용할 파일을 미리 준비해 둔다 미디어 파일은 /res/raw 폴더 생성 xml 버튼에 onClick 이벤트 달기 android:id="@+id/btnStop..
2010/08/04 16:11 출처 : http://blog.naver.com/romistudio/50093624442 http://blog.naver.com/romistudio/50093624442 질답 게시판에도 올려봤지만... 저만 이런 경우를 만난 것인지..아직도 알 수가 없네요. 에러 메시지는 Prepare failed status = 0x1 입니다. 인터넷을 검색해 봐도...뾰족한 답변이 없었습니다. 그러다...갑자기 하나 보인... 검색 결과물이 있었는데요.. http://www.anddev.org/viewtopic.php?p=16478 에서 ... 이런 글을 보게 되었습니다. you store your tempfile in the application cache directory and t..
출처 : http://cafe.naver.com/ccjmaster.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=133 ========================================================================================= 자바에서 처리하는 입력과 출력은 스트림(Stream)에 의존하다. 다시 말해 모든 형태의 입력과 출력은 1byte의 흐름으로 이루어져 있다는 이야기이다. 그런데 이러한 작업 처리를 텍스트 기반으로 한 형태로 바꿔 준다든지, 객체 기반으로 한 형태로 바꾸어 준다든지 하는 클래스가 있다. 우리는 먼저 1byte의 기본 입력과 출력 클래스 몇 가지를 공부하고 다음으로 각 형태로 변경시키는 클래스를 살..
http://blog.naver.com/kippee?Redirect=Log&logNo=130051790872
안드로이드_개발_팁 [출처] http://blog.naver.com/sobakr?Redirect=Log&logNo=60111552682 태그 설명 (android:sharedUserId) 하나의 프로세스에서 여러 애플리케이션 실행하기 (showDialog 사용중) is not valid is your activity running (링크) 안드로이드 샘플로 들어 있는 NodePad (DB 사용예등..) (링크) 안드로이드 스터디 Jni 발표 자료... [번역] 안드로이드 2.0 Service API 변화 AccountManager 관련 내용 Activity Launch Mode Activity가 화면에 보여질때 발생하는 이벤트 Activity내 배경을 투명하게 하기 Activity를 FullScreen으..
Hey everyone, Haven’t posted in a while – sorry school has been busy. Any who, this little code snippet/example will be on how to deal with the Intent.ACTION_SCREEN_OFF and the Intent.ACTION_SCREEN_ON, which will come in nifty if you’re making an application that might need to save state or respond to the user’s screen going to sleep/waking up, etc. First, unlike other broad casted intents, for ..
