반응형
출처 : http://www.androidside.com/bbs/board.php?bo_table=B46&wr_id=5964

안드로이드 Manager 종류


Activity Manager

ActivityManager activityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);

Alarm Manager

AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);


Audio Manager 

AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);

Clipboard Manager 

ClipboardManager clipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);

Connectivity Manager

ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

Input Method Manager

InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);

Keyguard Manager

KeyguardManager keyguardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);


Layout Inflater Manager 

LayoutInflater layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);


Location Manager 

LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);


Notification Manager 

NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);


Power Manager 

PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);


Search Manage

SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);


Sensor Manager 

SensorManager sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);


Telephony Manager 

TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);


Vibrator

Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);


Wallpaper Service 

WallpaperService wallpaperService = (WallpaperService) getSystemService(Context.WALLPAPER_SERVICE);


Wi-Fi Manager 

WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);


Window Manager 

WindowManager windowManager = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
반응형

'Android' 카테고리의 다른 글

빌드한 환경에서 Android Emulator 실행  (0) 2011.02.09
Dalvik과 Standard JVM의 핵심적인 차이점  (0) 2011.01.22
voodoo 패치 로그  (0) 2010.12.19
Posted by Real_G