General 2G Network 3G Network Announced Status GSM 850 / 900 / 1800 / 1900 HSDPA 850 / 900 / 1900 / 2100 2012, February Coming sonn. Exp. release 2012, Q2 Body Dimensions Weight 134.4 x 69.9 x 8.9 mm 130g – Touch-sensitive controls Display Type Size Multitouch Protection Super IPS LCD2 capacitive touchscreen, […]
작성자: 텟짱
[Java] 데이터 타입 (Data Type)
자바에서 메모리를 생성하는 유일한 방법은 데이터 타입을 이용하는 것이다. 기본 데이터 타입 (Primitive Data Type) – byte(1) – char(2) – int(4) – long(8) – float(4) – double(8) – boolean(1) 데이터 타입의 목적 – 생성할 메모리의 크기(Size)를 지정하기 위한 목적으로 사용 […]
파이어폭스 부가기능
Adblock Plus – 광고 차단 기능 합니다. Download Statusbar – 다운로드 중인 파일, 다운로드 된 파일을 Statusbar에서 확인이 가능하고 바로 바로 실행이 가능합니다. DownThemAll – 예전 플레시겟과 비슷한 기능으로 빠른 다운로드, 이어받기 등을 쉽게 할 수 있습니다. Echofon – Twitter 클라이언트 입니다. Fasterfox Lite – 파이어폭스의 속도를 향상 시킵니다. FireGestures – 제스쳐로 파이어폭스 컨트롤, 탭 […]
[Android] 디바이스 회전시 변수값, 쓰레드 유지하기
안드로이드 디바이스는 0˚, 90˚, 270˚ 로 회전의 된다. 그리고 키보드를 열거나 닫을 때 역시 회전이 된다. 그런데 문제는 이때 액티비티가 onDestroy(), onCreate()를 수행하면서 액티비티가 가지고 있던 변수값과 쓰레드가 초기화되는 것이다. 이 초기화로 인하여 정상적으로 동작이 되는 경우도 있겠지만 오작동을 을으키는 경우가 생기기 때문에 이 값들을 유지 시킬 수 있도록 해주는 것이 필요하다. […]
[Android] 부팅 시점에 서비스 시작
폰을 키면 자동으로 서비스가 시작되도록 하기 위해서는 ”android.intent.action.BOOT_COMPLETED” 액션을 받을 브로드캐스트 리시버를 등록해서 처리하여 주면 된다. 출처 : http://androidgps.blogspot.com/2008/09/starting-android-service-at-boot-time.html 1. 브로드케스트 리시버
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | public class LocationLoggerServiceManager extends BroadcastReceiver { public static final String TAG = "LocationLoggerServiceManager"; @Override public void onReceive(Context context, Intent intent) { // just make sure we are getting the right intent (better safe than sorry) if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) { ComponentName comp = new ComponentName(context.getPackageName(), LocationLoggerService.class.getName()); ComponentName service = context.startService(new Intent().setComponent(comp)); if (null == service){ // something really wrong here Log.e(TAG, "Could not start service " + comp.toString()); } } else { Log.e(TAG, "Received unexpected intent " + intent.toString()); } } } |
2. 메니페스트 인텐트필터
1 |
3. user permission
1 |
