기본적으로 하나의 application의 activity들은 각기 하나의 affinity 를 갖습니다. 그러나 각각의 affinity들은 <activity> element의 taskAffinity속성으로 affinity set을 이룰수 있습니다.

서로 다른 Application의 Activity들이 동일한 affinity를 공유할 수 있으며 한 application의 Activity들이 서로 다른 affinity를 가질수 있습니다.

affinity는 Intent object에 FLAG_ACTIVITY_NEW_TASK로 Activity를 적재할 때와 Activity가 allowTaskReparenting 속성을 true로 set 하였을 때 시작됩니다.

FLAG_ACTIVITY_NEW_TASK 적용시

 기본적으로 Activity는 startActivyt()로 task안에 적재 됩니다.
 caller[호출한 Task]와 동일한 stack에 push 됩니다. 그러나 startActivyt()가
 FLAG_ACTIVITY_NEW_TASK 로 flag를 set하여 호출하면, 시스템은 새로운 Activity를
 담기위한 task를 찾습니다. 보통 새로운 task가 생성되지만, 동일한 affinity를 갖는 task가
 검색되면 그 task에 가서 달라 붙습니다.

allowTaskReparenting 적용시 
 특정 Activity가 allowTaskReparenting 속성이 "true"이면, 시작된 task에서 동일한
 affinity를 갖는 다른 task가 foreground로 올라올때 그 task로 activity가 이동될 수 있습니
 다.


 예를 들면, 특정도시의 날씨를 보여주는 Activity를 가지고 있는 travel application이 있다
 고 가정을 합니다. travel application에 동일한 affinity를 갖는 다른 activity가 있고
 repaarenting이 가능합니다. 이 상태에서 당신의 application의 activity가 travel
 application의 날씨 activity를 시작하면, 날씨 activity는 당신의 task에 적재되게 됩니다.
 그러나 이 때 travel application이 적재되게 되면 날씨 activity는 새로 시작된 travel
 application의 task에 재위치지정이 되고 화면에 표시되어 집니다.

 travel application : weather activity, ... -> allowTaskReparenting이 true이고 모두 동일 affinity를 갖습니다.
 your application : A, B, C, D Activity

 launch travel application -> (1)start Weather activity -> HOME -> launch your
 application -> start Activity -> (2)start Weather activity -> HOME -> (3)travel
 application -> display Weather activity

 (1) 시점에서 weather activity는 task1(travel app의 task)에 적재됩니다.
 (2) 시점에서 weather activity는 task2(your app의 task)에 적재 됩니다.
 (3) 시점에서 travel app이 다시 시작될때 task2에 있던 weather activity가 task1으로
      재지정 됩니다.

 하나의 패키지(*.apk)에 여러 application이 정의되어 있다면, app단위로 각기 다른
 affinity를 부여하는 것이 좋습니다.

위의 내용은 http://blog.naver.com/free2824?Redirect=Log&logNo=60067211415 에서 참조
하였습니다.

'안드로이드' 카테고리의 다른 글

화면 회전  (0) 2011.01.26
Task  (0) 2011.01.26
Activity & Task  (0) 2011.01.26
전화 걸기  (0) 2011.01.17
Telephony Manager  (0) 2011.01.17

Activity정의 

 안드로이드에서는 사용자가 사용한 Activity들을 Task로 하여 그 정보를 유지합니다.
 관련된 Acvitity는 group으로 Stack에 저장합니다.
 root Activity는 task상의 첫번째 Activity이고 top Activity는 현재 화면에 보여지는 Activity
 입니다. Activity가 다른 Activity를 시작하면 그 새로운 Activity가 stack에 push되고 그
 Activity가 top Activity가 됩니다. 그리고 이전 Activity는 stack에 남아 있게 됩니다.
 이 상태에서 Back Key를 누르게 되면, 이전 Activity가 stack에서 pop되면서 화면에 보여
 지게 되어 resume이 됩니다.

 stack은 Activity의 Object(Instance)를 가지고 있습니다. 따라서 같은 Activity의 여러개 
 시작할 수 있습니다.
 stack내의 Activity는 stack이므로 재정렬되지 않고, 순서가 그대로 유지됩니다.
 단지 push, pop만을 이용하고 있습니다.
 
 Task는 Activity들의 stack입니다. 따라서 task내의 Activity에 어떤 값을 설정하는 방법은
 없습니다. 단지 root Activity만이 affinity(친밀도) set을 이용하여 read, set이 가능합니다.

 Task의 모든 Activity들은 하나의 집합으로 background 또는 foreground로 이동합니다.
 예를 들면, 현재 task가 4개의 Activity를 가진다고 가정을 했을때, HOME Key를 눌렀을때
 application launcher로 이동하게 됩니다. 이어서 새로운 application을 실행합니다.
 그러면 현재 task는 background로 가고 새로운 task의 root Activity가 표시됩니다.
 이어서 사용자가 다시 HOME으로 갔다가 이전 Application을 다시 선택한다면, 그 task
 가 다시 앞으로 나오게 됩니다. 이때 BACK Key를 누르면 root Activity가 표시되지 않고,
 task상의 이전 Activity가 표시되게 됩니다.

 Task와 Activity간의 결합과 동작에 대한 제어는 intent object의 flag 파라미터와 
 AndroidManifest의 <Activity> element의 몇가지 속성으로 제어가 가능합니다.

 Intent Object Flag
 1. FLAG-ACTIVITY_NEW_TASK
 2. FLAG_ACTIVITY_CLEAR_TOP
 3. FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
 4. FLAG_ACTIVITY_SINGLE_TOP

 Activity Element 
 1. taskAffinity
 2. launchMode
 3. allowTaskReparenting
 4. clearTaskOnLaunch
 5. allowRetainTaskState
 6. finishOnTaskLaunch
 
 위의 내용은 http://blog.naver.com/free2824?Redirect=Log&logNo=60067211415 에서
 참조 하였습니다.

'안드로이드' 카테고리의 다른 글

Task  (0) 2011.01.26
Affinityes and new Tasks  (0) 2011.01.26
전화 걸기  (0) 2011.01.17
Telephony Manager  (0) 2011.01.17
Telephony 란?  (0) 2011.01.17
보통 전화를 걸기위해서 Intent를 사용하여 전화를 겁니다.
Intent를 사용하여 전화를 걸거나 아니면 Dial 화면을 뛰울수 있는데, 이에 해당하는 Intent는
다음과 같습니다.
 Intent.DIAL_ACTION : Dial화면 뛰우기
 Intent.CALL_ACTION : 전화걸기

위에서는 두가지의 Intent를 소개하였고, 이를 사용하기 위한 예제는 다음과 같습니다.
 new Intent(Intent.DIAL_ACTION, Uri.parse("tel:"+전화번호));
 new Intent(Intent.CALL_ACTION, Uri.parse("tel:"+전화번호));

이제 소스에 위와 같은 내용을 넣었다면, AndroidManifest에 Permission을 넣어주어야 합니다. 사용하고자 하는 Permission을 넣어주면 해당동작을 할 수 있지만, 만약 넣어주지 않는다면, ANR이 발생하게 됩니다.

Permission의 종류는 다음과 같습니다.
 android.permission.READ_PHONE_STATE : 폰 상태 정보 읽기.
 android.permission.MODIFY_PHONE_STATE : 폰 상태 정보 수정.
 android.permission.CALL_PHONE : 사용자 확인 절차 없이 콜 초기화.
 android.permission.CALL_PRIVILEGED : 긴급 통화를 포함하여 모든 번호에 통화 가능.
 android.permission.PROCESS_OUTGOING_CALLS : 애플리케이션에서 콜 발신과
                                                            수정 관련 브로드 캐스트 수신.



'안드로이드' 카테고리의 다른 글

Affinityes and new Tasks  (0) 2011.01.26
Activity & Task  (0) 2011.01.26
Telephony Manager  (0) 2011.01.17
Telephony 란?  (0) 2011.01.17
서비스(Service)  (0) 2011.01.17
TelephonyManager를 통해서 현재 모뎀의 상태를 얻을 수 있습니다.

사용방법은 다음과 같습니다.
Androidmanifest.xml
<uses-permission 
android:name="android.permission.READ_PHONE_STATE">
</uses-permission> 

java File
단말기의 모뎀상태 조회
TelephonyManager tm = (TelephonyManager) 
                                                         getSystemService(TELEPHONY_SERVICE);

음성통화 상태 조회
CALL_STATE_IDLE, CALL_STATE_OFFHOOK, CALL_STATE_RINGING
        등의 값을 반환
Log.d("PHONE", "getCallState :" + tm.getCallState());

데이터통신 상태 조회
DATA_DISCONNECTEDDATA_CONNECTINGDATA_CONNECTED
        DATA_SUSPENDED 등의 값을 반환
Log.d("PHONE", "getDataState :" + tm.getDataState());

단말기 ID 조회
GSM방식 IMEI 또는 CDMA방식의 MEID 값을 반환
Log.d("PHONE", "getDeviceId :" + tm.getDeviceId());

SW버전 조회
GSM방식의 IMEI/SV와 같은 SW버전을 반환
Log.d("PHONE", "getDeviceSoftwareVersion :" + 
                                                           tm.getDeviceSoftwareVersion());

전화번호 조회
GSM방식의 MSISDN과 같은 전화번호 반환
Log.d("PHONE", "getLine1Number :" + tm.getLine1Number());

국가코드 조회
현재 등록된 망 사업자의 MCC(Mobile Country Code)에 
        대한 ISO 국가코드 반환
   Log.d("PHONE", "getNETWORKCountryIso :" +
                                                             tm.getNetworkCountryIso());
Log.d("PHONE", "getSimCountryIso :" + tm.getSimCountryIso());

망 사업자코드 조회
현재 등록된 망 사업자의 MCC+MNC(Mobile Network Code) 반환
Log.d("PHONE", "getNetworkOperator :" + tm.getNetworkOperator());
Log.d("PHONE", "getSimOperator :" + tm.getSimOperator());

망 사업자명 조회
현재 등록된 망 사업자명 반환
Log.d("PHONE", "getNetworkOperatorName :" + 
                                                           tm.getNetworkOperatorName());
Log.d("PHONE", "getSimOperatorName :" + tm.getSimOperatorName());

망 시스템 방식 조회
현재 단말기에서 사용중인 망 시스템 방식을 반환
NETWORK_TYPE_UNKNOWN
GSM방식 :  NETWORK_TYPE_GPRS, NETWORK_TYPE_EDGE, 
                         NETWORK_TYPE_UMTS, NETWORK_TYPE_HSDPA
                         NETWORK_TYPE_HSUPA, NETWORK_TYPE_HSPA
CDMA방식 : NETWORK_TYPE_CDMA, NETWORK_TYPE_EVDO_0, 
                          NETWORK_TYPE_EVDO_A, NETWORK_TYPE_1xRTT
Log.d("PHONE", "getNetworkType :" + tm.getNetworkType());

단말기 종류 조회
단말기에서 지원하는 망의 종류를 반환
PHONE_TYPE_NONEPHONE_TYPE_GSMPHONE_TYPE_CDMA
        등의 값을 반환
Log.d("PHONE", "getPhoneType :" + tm.getPhoneType());

SIM카드 Serial Number 조회
Log.d("PHONE", "getSimSerialNumber :" + tm.getSimSerialNumber());

SIM카드 상태 조회
SIM_STATE_UNKNOWNSIM_STATE_ABSENT
        SIM_STATE_PIN_REQUIREDSIM_STATE_PUK_REQUIRED
SIM_STATE_NETWORK_LOCKEDSIM_STATE_READY 등의 값을 반환
Log.d("PHONE", "getSimState :" + tm.getSimState());

가입자 ID 조회
GSM방식의 IMSI와 같은 가입자 ID 반환
Log.d("PHONE", "getSubscriberId :" + tm.getSubscriberId()); 




'안드로이드' 카테고리의 다른 글

Activity & Task  (0) 2011.01.26
전화 걸기  (0) 2011.01.17
Telephony 란?  (0) 2011.01.17
서비스(Service)  (0) 2011.01.17
브로드캐스팅 인텐트를 위한 메서드  (0) 2011.01.17
텔레포니(Telephony0는 전화망을 통한 전자적인 음성 통신을 나타내는 말을 뜻합니다.
보통 SDK에서 단말기의 모뎀에서 제공하는 전화기능에 관련된 내용은 android.telephony Package의 TelephonyManager Class에서 담당하고 있습니다.
보통 안드로이드에서는 GSM(Global System For Mobile Communications)네트워크를 사용하고 있으며, GSM 네트워크는 SIM 카드에 저장된 고유한 식별자로 인해서 각각의 통신망에서 해당 통신망 가입자를 구분할 수 있습니다.

SIM 카드에 저장된 고유한 식별자는 다음과 같습니다.
 ICCID(Integrated Circuit Card ID) : SIM 카드를 식별함.(혹은 SSN[Sim Serial Number])
 IMEI(International Mobile Equipment Identity) : 물리적인 장치를 식별함.
                                                                  (보통 배터리 아랫부분에 인쇄되어 있음.)
 IMSI(International Mobile Subscriber Identity) : 가입자들을 식별함.
 LAI(Location Area Identity) : 망 내에서 기기의 위치를 식별함.
 Ki(Authentication Key) : 망 내에서 SIM 카드 인증을 위해 128bit 키를 사용함.

여기에서 IMEI와 IMSI를 알아두실 필요가 있습니다.
보통 마켓에서 받은 App은 IMEI를 각각의 기기들을 구분을 하기 때문에 만약 IMEI가 존재하지 않는다면,[Mp3 같은 전화기능이 없는 기기] App이 실행이 안될수도 있습니다.
그리고 일반적으로 많이들 사용하기 때문에 정확하게는 아니더라도 어떤 역할을 하는지는 알아두실 필요가 있습니다.


'안드로이드' 카테고리의 다른 글

전화 걸기  (0) 2011.01.17
Telephony Manager  (0) 2011.01.17
서비스(Service)  (0) 2011.01.17
브로드캐스팅 인텐트를 위한 메서드  (0) 2011.01.17
Intent Action  (0) 2011.01.17
서비스의 이중목적
1. 백그라운드 작업 수행.
2. IPC(Inter-Process Communication)를 위한 원격 접속 가능한 오브젝트를 만들어 내는것.

백그라운드 작업
 - 전형적인 사용자 인터페이스 혹은 UI를 사용하지 않는 프로세스를 뜻함.

Service Class 형태
 public class "서비스 클래스 명" extends Service {
 @Override
 public void onCreate()  {
 }

 @Override
 public void onDestory()  {
 super.onDestory();
 }

 @Override
 public IBinder onBind(Intent intent)  {
 return null;
 }
}

IPC(Inter-Process Communication)
 - 서로 다른 프로세스들에 포함된 애플리케이션 컴포넌트 간의 커뮤니케이션은 IPC를 
   이용하여 가능합니다.
   IPC를 구현할때의 핵심은 AIDL(Android Interface Definition Language)입니다.

Remote procedure calls

Life Cycle



출처 및 참고
 : http://blog.naver.com/mirnae/100101468187

'안드로이드' 카테고리의 다른 글

Telephony Manager  (0) 2011.01.17
Telephony 란?  (0) 2011.01.17
브로드캐스팅 인텐트를 위한 메서드  (0) 2011.01.17
Intent Action  (0) 2011.01.17
명시적 인텐트(Explicit Intent)  (0) 2011.01.17
 메서드 : 내용
 sendBroadcast(Intent intent) : 인텐트를 브로드케스팅하기 위한 기본 형식.
 sendBroadcast(Intent intent, String receiverPermission) : 브로드캐스트 수신을 위해
        리시버들이 반드시 선언해야 하는 퍼미션 문자열과 같이 인텐트를 브로드 캐스팅 함.
 sendStickyBroadcast(Intent intent) : 브로드 케스팅된 뒤 일정 기간동안 수신자들이
        데이터를 검색할 수 있게 함. 이 기능을 사용하려면 반드시 'BROADCAST_STICKY'
        퍼미션을 사용하여 선언해야 함.
 sendOrderedBroadcast(Intent intent, String receiverPermission)
      : 인텐트를 브로드캐스팅하여 리시버들을 차례대로 호출함.
 sendOrderedBroadcast(Intent intent String receiverPermission, BroadcastReceiver
                                   resultReceiver, Handler scheduler, int initialCode,
                                   String initialData, Bundle initialExtras)
      : 인텐트를 브로드캐스팅한 후 브로드캐스팅 리시버에서 리턴 값을 얻을 수 있음.
        모든 리시버들은 브로드 캐스트 리시버 리턴 시에 데이터를 추가하여 보낼 수 있음.
        이 메서드를 사용할 때에는 리시버들은 순서대로 호출 됨.

브로드캐스트 인텐트는 Activity를 직접 호출하지는 않습니다.(필요에 따라서 이벤트가 수신된 후 브로드캐스트 리시버는 Activity를 호출할 수도 있습니다.)
그리고 인텐트를 브로드캐스팅 할 때 선택적으로 퍼미션을 설정할 수 있습니다.

인텐트 브로드 캐스트 리시버
 - 생성 방법
AndroidManifest.xml
<receiver android:name="리시버 클래스 명"
android:permission="Permission 명">
<intent-filter>
<action android:name="사용할 Action 명" />
<category android:name="패키지명" />
</intent-filter>
</receiver> 

Source
 public class "리시버 클래스 명" extends BroadcastReceiver {
     @Override
     public void onReceiver(Context context, Intent intent) {
         //브로드 캐스트를 받아서 처리할 내용 입력.
    }
}



'안드로이드' 카테고리의 다른 글

Telephony 란?  (0) 2011.01.17
서비스(Service)  (0) 2011.01.17
Intent Action  (0) 2011.01.17
명시적 인텐트(Explicit Intent)  (0) 2011.01.17
Intent  (0) 2011.01.17

Action

 

ACTION_AIRPLANE_MODE_CHANGED

Broadcast Action: The user has switched the phone into or out of Airplane Mode.

ACTION_ALL_APPS

Activity Action: List all available applications

Input: Nothing.

ACTION_ANSWER

Activity Action: Handle an incoming phone call.

ACTION_ATTACH_DATA

Used to indicate that some piece of data should be attached to some other place.

ACTION_BATTERY_CHANGED

Broadcast Action: This is a sticky broadcast containing the charging state, level, and other information about the battery.

ACTION_BATTERY_LOW

Broadcast Action: Indicates low battery condition on the device.

ACTION_BATTERY_OKAY

Broadcast Action: Indicates the battery is now okay after being low.

ACTION_BOOT_COMPLETED

Broadcast Action: This is broadcast once, after the system has finished booting.

ACTION_BUG_REPORT

Activity Action: Show activity for reporting a bug.

ACTION_CALL

Activity Action: Perform a call to someone specified by the data.

ACTION_CALL_BUTTON

Activity Action: The user pressed the "call" button to go to the dialer or other appropriate UI for placing a call.

ACTION_CAMERA_BUTTON

Broadcast Action: The "Camera Button" was pressed.

ACTION_CHOOSER

Activity Action: Display an activity chooser, allowing the user to pick what they want to before proceeding.

ACTION_CLOSE_SYSTEM_DIALOGS

Broadcast Action: This is broadcast when a user action should request a temporary system dialog to dismiss.

ACTION_CONFIGURATION_CHANGED

Broadcast Action: The current device Configuration (orientation, locale, etc) has changed.

ACTION_CREATE_SHORTCUT

Activity Action: Creates a shortcut.

ACTION_DATE_CHANGED

Broadcast Action: The date has changed.

ACTION_DEFAULT

A synonym for ACTION_VIEW, the "standard" action that is performed on a piece of data.

ACTION_DELETE

Activity Action: Delete the given data from its container.

ACTION_DEVICE_STORAGE_LOW

Broadcast Action: A sticky broadcast that indicates low memory condition on the device

This is a protected intent that can only be sent by the system.

ACTION_DEVICE_STORAGE_OK

Broadcast Action: Indicates low memory condition on the device no longer exists

This is a protected intent that can only be sent by the system.

ACTION_DIAL

Activity Action: Dial a number as specified by the data.

ACTION_DOCK_EVENT

Broadcast Action: A sticky broadcast for changes in the physical docking state of the device.

ACTION_EDIT

Activity Action: Provide explicit editable access to the given data.

ACTION_EXTERNAL_APPLICATIONS_AVAILABLE

Broadcast Action: Resources for a set of packages (which were previously unavailable) are currently available since the media on which they exist is available.

ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE

Broadcast Action: Resources for a set of packages are currently unavailable since the media on which they exist is unavailable.

ACTION_FACTORY_TEST

Activity Action: Main entry point for factory tests.

ACTION_GET_CONTENT

Activity Action: Allow the user to select a particular kind of data and return it.

ACTION_GTALK_SERVICE_CONNECTED

Broadcast Action: An GTalk connection has been established.

ACTION_GTALK_SERVICE_DISCONNECTED

Broadcast Action: An GTalk connection has been disconnected.

ACTION_HEADSET_PLUG

Broadcast Action: Wired Headset plugged in or unplugged.

ACTION_INPUT_METHOD_CHANGED

Broadcast Action: An input method has been changed.

ACTION_INSERT

Activity Action: Insert an empty item into the given container.

ACTION_INSERT_OR_EDIT

Activity Action: Pick an existing item, or insert a new item, and then edit it.

ACTION_LOCALE_CHANGED

Broadcast Action: The current device's locale has changed.

ACTION_MAIN

Activity Action: Start as a main entry point, does not expect to receive data.

ACTION_MANAGE_PACKAGE_STORAGE

Broadcast Action: Indicates low memory condition notification acknowledged by user and package management should be started.

ACTION_MEDIA_BAD_REMOVAL

Broadcast Action: External media was removed from SD card slot, but mount point was not unmounted.

ACTION_MEDIA_BUTTON

Broadcast Action: The "Media Button" was pressed.

ACTION_MEDIA_CHECKING

Broadcast Action: External media is present, and being disk-checked The path to the mount point for the checking media is contained in the Intent.mData field.

ACTION_MEDIA_EJECT

Broadcast Action: User has expressed the desire to remove the external storage media.

ACTION_MEDIA_MOUNTED

Broadcast Action: External media is present and mounted at its mount point.

ACTION_MEDIA_NOFS

Broadcast Action: External media is present, but is using an incompatible fs (or is blank) The path to the mount point for the checking media is contained in the Intent.mData field.

ACTION_MEDIA_REMOVED

Broadcast Action: External media has been removed.

ACTION_MEDIA_SCANNER_FINISHED

Broadcast Action: The media scanner has finished scanning a directory.

ACTION_MEDIA_SCANNER_SCAN_FILE

Broadcast Action: Request the media scanner to scan a file and add it to the media database.

ACTION_MEDIA_SCANNER_STARTED

Broadcast Action: The media scanner has started scanning a directory.

ACTION_MEDIA_SHARED

Broadcast Action: External media is unmounted because it is being shared via USB mass storage.

ACTION_MEDIA_UNMOUNTABLE

Broadcast Action: External media is present but cannot be mounted.

ACTION_MEDIA_UNMOUNTED

Broadcast Action: External media is present, but not mounted at its mount point.

ACTION_NEW_OUTGOING_CALL

Broadcast Action: An outgoing call is about to be placed.

ACTION_PACKAGE_ADDED

Broadcast Action: A new application package has been installed on the device.

ACTION_PACKAGE_CHANGED

Broadcast Action: An existing application package has been changed (e.g.

ACTION_PACKAGE_DATA_CLEARED

Broadcast Action: The user has cleared the data of a package.

ACTION_PACKAGE_INSTALL

Broadcast Action: Trigger the download and eventual installation of a package.

ACTION_PACKAGE_REMOVED

Broadcast Action: An existing application package has been removed from the device.

ACTION_PACKAGE_REPLACED

Broadcast Action: A new version of an application package has been installed, replacing an existing version that was previously installed.

ACTION_PACKAGE_RESTARTED

Broadcast Action: The user has restarted a package, and all of its processes have been killed.

ACTION_PICK

Activity Action: Pick an item from the data, returning what was selected.

ACTION_PICK_ACTIVITY

Activity Action: Pick an activity given an intent, returning the class selected.

ACTION_POWER_CONNECTED

Broadcast Action: External power has been connected to the device.

ACTION_POWER_DISCONNECTED

Broadcast Action: External power has been removed from the device.

ACTION_POWER_USAGE_SUMMARY

Activity Action: Show power usage information to the user.

ACTION_PROVIDER_CHANGED

Broadcast Action: Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in.

ACTION_REBOOT

Broadcast Action: Have the device reboot.

ACTION_RUN

Activity Action: Run the data, whatever that means.

ACTION_SCREEN_OFF

Broadcast Action: Sent after the screen turns off.

ACTION_SCREEN_ON

Broadcast Action: Sent after the screen turns on.

ACTION_SEARCH

Activity Action: Perform a search.

ACTION_SEARCH_LONG_PRESS

Activity Action: Start action associated with long pressing on the search key.

ACTION_SEND

Activity Action: Deliver some data to someone else.

ACTION_SENDTO

Activity Action: Send a message to someone specified by the data.

ACTION_SEND_MULTIPLE

Activity Action: Deliver multiple data to someone else.

ACTION_SET_WALLPAPER

Activity Action: Show settings for choosing wallpaper

Input: Nothing.

ACTION_SHUTDOWN

Broadcast Action: Device is shutting down.

ACTION_SYNC

Activity Action: Perform a data synchronization.

ACTION_SYSTEM_TUTORIAL

Activity Action: Start the platform-defined tutorial

Input: getStringExtra(SearchManager.QUERY) is the text to search for.

ACTION_TIMEZONE_CHANGED

Broadcast Action: The timezone has changed.

ACTION_TIME_CHANGED

Broadcast Action: The time was set.

ACTION_TIME_TICK

Broadcast Action: The current time has changed.

ACTION_UID_REMOVED

Broadcast Action: A user ID has been removed from the system.

ACTION_UMS_CONNECTED

Broadcast Action: The device has entered USB Mass Storage mode.

ACTION_UMS_DISCONNECTED

Broadcast Action: The device has exited USB Mass Storage mode.

ACTION_USER_PRESENT

Broadcast Action: Sent when the user is present after device wakes up (e.g when the keyguard is gone).

ACTION_VIEW

Activity Action: Display the data to the user.

ACTION_VOICE_COMMAND

Activity Action: Start Voice Command.

ACTION_WALLPAPER_CHANGED

Broadcast Action: The current system wallpaper has changed.

ACTION_WEB_SEARCH

Activity Action: Perform a web search.

 

'안드로이드' 카테고리의 다른 글

서비스(Service)  (0) 2011.01.17
브로드캐스팅 인텐트를 위한 메서드  (0) 2011.01.17
명시적 인텐트(Explicit Intent)  (0) 2011.01.17
Intent  (0) 2011.01.17
Android Manifest Element  (0) 2011.01.16
명시적 인텐트 호출이란?
 : 코드에서 직접 인텐트를 처리할 컴포넌트를 지정하는 방식으로, 리시버의 특정 클래스 
   혹은 컴포넌트 네임을 통해서 수행됩니다.

명시적 인텐트 호출 방식
 : Intent(Context ctx, Class cls)

장점 과 단점
 : 장점 - 편리함과 신속함을 제공.
   단점 - 결합 의존도가 높아지게 됨.

사용방법
 Intent intent = new Intent(this, Class);
 startActivity(intent);


'안드로이드' 카테고리의 다른 글

브로드캐스팅 인텐트를 위한 메서드  (0) 2011.01.17
Intent Action  (0) 2011.01.17
Intent  (0) 2011.01.17
Android Manifest Element  (0) 2011.01.16
애니메이션 기능  (0) 2011.01.16
인텐트란?
 : 액션, 카테고리, 데이터와 추가 엘리멘트로 구성되어 있습니다.
   액션과 카테고리는 단순히 문자열로 정의되어 있으며, 데이터는 URI 오브젝트 형태로
   정의됩니다.
   그리고 URI는 스키마, 권한, 추가 경로를 포함하고 있습니다.
  
인텐트 엘리먼트
 인텐트 엘리먼트 : 설명
 Extras : 추가 데이터를 번들 형태의 인텐트로 전달.
 Component : 인텐트, 옵션, 타입, 그리고 카테고리를 사용하기 위한 명시적 패키지와
                    클래스 지정.
 Type : 명시적인 MIME 타입 지정.
 Category : 인텐트에 대한 추가 메타 데이터.(ex : android.intent.category.LAUNCHER)
 Data : URI('content://contacts/1') 형태로 표현되는 작업을 위한 데이터.
 Action : 액션(Action)을 가리키는 공인된 문자열(ex : android.intent.action.MAIN)

인텐트의 종류
 - 1.묵시적 인텐트(Implicit Intent) 호출
   2. 명시적 인턴트(Explicit Intent) 호출

'안드로이드' 카테고리의 다른 글

Intent Action  (0) 2011.01.17
명시적 인텐트(Explicit Intent)  (0) 2011.01.17
Android Manifest Element  (0) 2011.01.16
애니메이션 기능  (0) 2011.01.16
안드로이드 해상도 단위 정리  (0) 2011.01.14

+ Recent posts