본문 바로가기

분류 전체보기

[android] google analytics froyo 문제 Lollipop 버전에서 Google Analytics가 죽는 문제가 발생16797-16885/kr.co.tictocplus E/AndroidRuntime﹕ FATAL EXCEPTION: GAThread Process: PID: 16797 java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.google.android.gms.analytics.service.START (has extras) } at android.app.ContextImpl.validateServiceIntent(ContextImpl.java:1674) at android.app.ContextImpl.bindServiceCommon(Con.. 더보기
[facebook] note 1. API 3.8shareDialog는 session 정보를 가지지 않음. facebook의 포스트 쓰기 화면으로 이동함. 더보기
[android] google advertising id 이번에 google ads library가 google play service library와 합쳐지면서 추가적으로 Google Advertising Id의 사용이 권장되었다.때문에 gid를 사용하기 위해서는 안쓰던 google play service library를 추가해야한다.여기서 문제가 발생할 수 있는데. 바로 dex overflow이다.이걸 해결하기 위해 다음과 같은 방법이 제시 된다.- multiple dex- project.properties에 dex.force.jumbo=true- multidex support library 사용 참고 ☞ https://developer.android.com/tools/building/multidex.html- android studio dex increa.. 더보기
[MAT] mobile app tracking Mobile app tracking에서 event 추적을 하려면 signed key 여야함. 더보기
[android] dex index google play service 추가 시 dex index 초과 오류[2014-06-03 16:56:23 - Dex Loader] Unable to execute dex: Cannot merge new index 66570 into a non-jumbo instruction![2014-06-03 16:56:23 - TestApplication] Conversion to Dalvik format failed: Unable to execute dex: Cannot merge new index 66570 into a non-jumbo instruction! compile 시 dex table의 갯수가 2^16(65536)개 인데, 초과하면 dex loader에서 오류 발생. indexoverflow와 같은.. 더보기
[android] 한줄 팁 1. TextView 의 말줄임 위치 설정android:ellipsize="end"end / middle / start / none / marquee 2. 2.3 이하에서 dialog가 배경 테두리를 가질 경우 삭제dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); 3. bitmap recycle 시 유의사항 (14.06.13)bitmap을 recyle했다면 모든 참조를 끊어라.imageView 참조bitmap 전달인자 4. 서로다른 Notification은 서로다른 context를 써라.같은 context로 다른 Notification을 생성한다면 처음에 생성한 notificatio.. 더보기
[android] get resource id by String 내장된 resource를 가져오려면 약속된 key로 가져오게 된다. 가장 보편적으로 쓰는것이 파일이름이 image.jpg인 drawable에 대해 ImageView.setImageResource(R.drawable.image); 하지만 key를 모를경우, String으로 해당 resource를 찾아올 수 있다. private static Drawable getResource(String resName, Context context) throws NameNotFoundException { Context resContext = context.createPackageContext(context.getPackageName(), 0); Resources res = resContext.getResources(); .. 더보기
[android] ImageView Matrix android에서 사진을 회전시켜야 할 때가 있다.이때까지 내가 찾은 방법은 3가지 1. bitmap을 회전시킨다. (Bitmap)2. View를 회전시킨다. (Canavs)3. 카메라의 위치를 바꾼다. (Opengl) 여기서 1번에 대해서도 2가지 방법이 있다.1. bitmap을 회전시켜 bitmap을 재생성한다.2. bitmap을 회전시키지만 따로 저장하지 않는다. 여기서 판단의 기준이 되는건 역시나 메모리물론 요즘 OS가 좋아지고 힙 메모리도 좋아져서 왠만한 메모리 사용은 허용된다. 하지만 그렇다고 메모리를 막 쓸 수는 없다. 혹시나 모를 기근에 대비하자. 때문에 나는 처음에 bitmap을 재 생성해서 다루던 코드를 matrix로 view만 회전시키는 방법으로 바꿨다.이렇게 하면 적어도 bitmap.. 더보기
[android] [API] dropbox 1. About Dropbox APIEditDropbox Api에 대해2. androidManifest.xml Edithttps://www.dropbox.com/developers/sync/sdks/androi3. APIsEdita. sync. https://www.dropbox.com/developers/sync/docs/android b. core. https://www.dropbox.com/developers/core/docs c. datastore. https://www.dropbox.com/developers/datastore/tutorial/android core를 사용하면 됨4. app registerEdithttps://www.dropbox.com/developers/apps 5. star.. 더보기
java.lang.UnsupportedOperationException java.lang.UnsupportedOperationExceptionoccur : GLES20CANVAS.clipPath()reason : 기기가 하드웨어 가속을 지원하지 않음solution : ImageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); reference : 1. https://plus.google.com/+SewonAnn/posts/UMDdYQVgXbA2. http://stackoverflow.com/questions/7401319/use-hardwareacceleration-flag-with-canvas-clippath 더보기