목록전체 글 (1533)
오늘도 공부
안드로이드 디바이스의 경우 크게 3가지의 해상도 범주를 가지고 있는데, LDPI(저해상도), MDPI(중해상도), HDPI(고해상도)입니다. Density값은 LDPI가 120, MDPI가 160, HDPI가 240입니다. (각각 인치당 픽셀수를 이야기합니다.) 아래 표 (Table.1)를 참고하시면 결국 현재 디자인 하신 그림 파일의 기준은 HDPI를 기준으로 되어있는 것이고, LDPI를 위해서는 당연히 120/240 = 1/2, MDPI를 위해서는 당연히 160/240 = 3/4로 길이당 픽셀수가 감소하는 셈입니다. 모든 해상도를 지원하시려면 하나의 그림 파일을 HDPI, MDPI, LDPI에 맞춰서 3개로 만들어서 개발자에게 넘기시면 됩니다. Table 1. Screen sizes and densi..
출처 : http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange Application Resources >Handling Runtime Changes In this document Retaining an Object During a Configuration Change Handling the Configuration Change Yourself See also Providing Resources Accessing Resources Faster Screen Orientation Change Some device configurations can change during runtime (such as ..
http://blog.daum.net/hopefullife/98
Android... 멈추지 않는 변화 [Intro] SDK 1.5 R1 버전이 발표된지 꽤 오래전 일입니다만, 무슨 바람이 들었는지 몰라도 재빨리 바뀐 부분을 캐치했어야 하는데 그러지 못했습니다. 이제서야 부랴부랴 Android Development Tool도 뭔가 바뀌어 버린것을 알았고, SDK들도 뭔가 바뀌어 버린 것을 알았습니다. 이전에 만들어 두었던 프로젝트들도 1.5버전에 맞추어서 실행 하려던 찰나... 아차! 이게 뭡니까... AbsoluteLayout is deprecated 아... 이렇게 허망하게 없애 버리다니... 없애는게 이해가 안가는것은 아닙니다. 디바이스마다 화면이 다르니 절대 좌표로 박으면 호환성 유지가 안되는건... 뭐 충분히 생각 할 수 있는 부분입니다. 그냥 이번에 1.5버..
출처 : http://stackoverflow.com/questions/3693234/custom-imageview-with-drop-shadow Custom ImageView with drop shadow up vote3down votefavorite 6 Okay, I've been reading and searching around, and am now banging my head against the wall trying to figure this out. Here's what I have so far: package com.pockdroid.sandbox; import android.content.Context; import android.graphics.Canvas; import android...
http://stackoverflow.com/questions/3748568/how-can-i-launch-androids-email-activity-with-an-attachment-attached-in-the-emai http://stackoverflow.com/questions/2264622/android-multiple-email-attachment-using-intent-question http://blog.blackmoonit.com/2010/02/filebrowser-send-receive-intents.html public static void email(Context context, String emailTo, String emailCC, String subject, String emai..
출처 : http://sdw8001.tistory.com/5 리소스에서 bitmap을 읽어오고 화면에 출력한 후 touch를 이용해서 drag하는 예제 package com.jjihun.bitmaptest; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Rect; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.view.View;..
C2DM과 Notification 사용시 막히는 부분이 있어서 이렇게 질문 드립니다. 01.public class C2dm_BroadcastReceiver extends BroadcastReceiver { // -------- 1번 02. 03.NotificationManager mNotiManager; 04.public static String registration_id = null; 05.static String c2dm_name = ""; 06.static String c2dm_msg = ""; 07. 08. 09.public void onReceive(Context context, Intent intent) { 10. 11.mNotiManager = (NotificationManager)getS..
출처 : http://www.ibm.com/developerworks/opensource/library/x-android/index.html Working with XML on Android Build Java applications for mobile devices Michael Galpin, Software architect, eBay Michael Galpin is an architect at eBay. He is a frequent contributor to developerWorks and has also written for TheServerSide.com and the Java Developer's Journal, as well as his own blog. He has been progra..
출처 : http://www.cyworld.com/prizm0911/3284619 아래 xml파일을 res/values 에 생성. 1.-------------------------------------------------------------------------------------------- color.xml #959ca4 #646d79 #959ca4 #646d79 #686e77 #40474f #00000000 2.-------------------------------------------------------------------------------------------- 아래 xml파일을 res 에 해당 drawable 에 생성. 여기서는 위 1 번에서 설정된 색을 가져와서 셋팅하게됩니다...
