목록분류 전체보기 (373)
두근두근이야기
www.khronos.org
java.lang.ClassCastException: com.google.android.gms.maps.MapFragment cannot be cast to android.support.v4.app.Fragment at android.support.v4.app.Fragment.instantiate이와 같은 오류는 FragmentActivity는 v4보다 낮은 안드로이드 버전과 호환되기 때문이다.xml파일에서 fragment를 SupportMapFragment로 바꾸어준다. 이와 같이 변경
A FragmentActivity is a subclass of Activity that was built for the Android Support Package.The FragmentActivity class adds a couple new methods to ensure compatibility with older versions of Android, but other than that, there really isn't much of a difference between the two. Just make sure you change all calls to getLoaderManager() and getFragmentManager() togetSupportLoaderManager() and getS..
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 삼성갤럭시 시리즈(젤리빈) EditText를 사용했을 때 나오는 에러. 버그. inputBox.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); 추가하면 안나옴
이번 버전부터는 fragment 형태로 구글맵이 제공됩니다.이제 레이아웃에 구글맵을 추가해줍니다. 두가지의 경우를 생각해서 작성하시면됩니다. /////////////////////////////////////////////MapFragment를 쓰니 xml오류났음/////////////////////////////////////////////SupportMapFragment를 쓸것/////////////////////////////////////////////Project 우클릭 후/////////////////////////////////////////////AndroidTool에/////////////////////////////////////////////Add S..
오버라이딩 재정의 오버로딩중복정의
직접 만들어 보는건 의미가 없다.차라리 기존에 있는 것을 분석해라. ubifs, yaffs 와 같은 시스템 소스를 분석해라.
PWM이란 Pulse Width Modulation의 줄임말로 '펄스 폭 변조'라는 뜻이다. 위의 사진은 오실로스코프로 AVR의 PWM파형을 생성한 것이다. 펄스폭이 왼쪽은 넓고, 오른쪽은 좁은 것을 볼 수 있다. 이와 같이 펄스폭을 바꿔주는 것을 PWM이라고 한다. 펄스폭을 왜 바꿀까?다양한 전압을 내기 위해 만들어졌다. 예를들어 모터에 12볼트가 들어가게되면 10m/s의 속도가 나온다고 하자.전압은 일정하게 들어오기 때문에 속도 변조가 힘들기에이를 조정하기 위해 펄스폭 변조가 필요하게 되었다. 즉 모터가 중간 속도를 내려면 6V의 전압이 필요한데 이를 어떻게 할까?0V와 12V를 같은 비율로 하여(Duty ratio 50%) 빠른 속도로 바꾸어 준다. 모터 드라이버의 출력은 같은 비율을 유지하면서 0..
윈도우에서 ip보려고 ipconfig를 쳤는데수많은..microsoft 6to4 adapter 이게 나와서 당황했다. 알아보니, 윈도우에서 일종의 ipv6 버그이다. 삭제해줘도 무관하다.