<activity-alias>

syntax:
<activity-alias android:enabled=["true" | "false"]
                android:exported=["true" | "false"]
                android:icon="drawable resource"
                android:label="string resource"
                android:name="string"
                android:permission="string"
                android:targetActivity="string" >
    . . .
</activity-alias>
contained in:
<application>
can contain:
<intent-filter>
<meta-data>
description:
An alias for an activity, named by the targetActivity attribute. The target must be in the same application as the alias and it must be declared before the alias in the manifest.

The alias presents the target activity as a independent entity. It can have its own set of intent filters, and they, rather than the intent filters on the target activity itself, determine which intents can activate the target through the alias and how the system treats the alias. For example, the intent filters on the alias may specify the "android.intent.action.MAIN" and "android.intent.category.LAUNCHER" flags, causing it to be represented in the application launcher, even though none of the filters on the target activity itself set these flags.

With the exception of targetActivity, <activity-alias> attributes are a subset of <activity> attributes. For attributes in the subset, none of the values set for the target carry over to the alias. However, for attributes not in the subset, the values set for the target activity also apply to the alias.

targetActivity 애트리뷰트에 의해 지칭되는 액티비티에 대한 앨리어스alias 타겟은 앨리어스와 같은 애플리케이션 안에 있어야 하고 매니페스트 안의 앨리어스 이전에 선언되어야 한다.

앨리어스는 독립적인 엔티티로써 타겟 액티비티를 표시한다. 그것은 자기 자신의 인텐트 필터 셋을 가질 수 있고, 그리고 그 인텐트 필터들은, 타겟 액티비티 자제에 있는 인텐트 필터 보다는, 어떤 인텐트가 앨리어스를 통해 타겟을 활성화할 수 있는가와 시스템이 앨리어스를 어떻게 취급해야 하는가를 결정한다. 예를 들어 앨리어스에 대한 인텐트 필터는 그 앨리어스를 애플리케이션 런처에 표시하게 하는 “android.intent.action.MAIN” 과 “android.intent.category.LAUNCHER”를 지정할 수도 있다. 비록 이러한 플래그들이 타겟 액티비티의 필터에 없을 지라도.

targetActivity를 제외하고, <activity-alias> 애트리뷰트는 <activity> 애트리뷰트의 부분 집합이다. 부분 집합에 있는 애트리뷰트에 있어서는, 타겟에 대한 설정 값 중 어떤 것도 앨리어스에 전달되지 않는다. 하지만 부분 집합에 없는 애트리뷰트에 있어서는, 타겟 액티비티에 대한 설정 값은 앨리어스에도 또한 적용된다.

attributes:
android:enabled
Whether or not the target activity can be instantiated by the system through this alias "true" if it can be, and "false" if not. The default value is "true".

The <application> element has its own enabled attribute that applies to all application components, including activity aliases. The <application> and <activity-alias> attributes must both be "true" for the system to be able to instantiate the target activity through the alias. If either is "false", the alias does not work.

타겟 액티비티가 이 앨리어스를 시스템에 의해 인스턴스화 될 수 있는 지 여부 - 만약 그것이 될 수 있다면 “참true” 그리고 아니라면 “거짓false” 이다. 디폴트 값은 “참true”이다.

<application> 엘리먼트는 그것 자신의 enabled 애트리뷰트를 가지며, 그것은 액티비티 앨리어스를 포함하는 모든 애플리케이션 컴포넌트에게 적용된다. <application>과 <activity-alias> 애트리뷰트는 시스템이 앨리어스를 통해 타겟 액티비티를 인스턴스화 하는 것이 가능하도록 하기 위해 둘 다 “참true”이 되어야 한다. 만약 어느 쪽이든 “거짓false”이라면, 앨리어스는 동작하지 않는다.

android:exported
Whether or not components of other applications can launch the target activity through this alias "true" if they can, and "false" if not. If "false", the target activity can be launched through the alias only by components of the same application as the alias or applications with the same user ID.

The default value depends on whether the alias contains intent filters. The absence of any filters means that the activity can be invoked through the alias only by specifying the exact name of the alias. This implies that the alias is intended only for application-internal use (since others would not know its name) so the default value is "false". On the other hand, the presence of at least one filter implies that the alias is intended for external use so the default value is "true".

다른 애플리케이션 컴포넌트들이 이 앨리어스를 통해 타겟 액티비티를 런치할 수 있는지 여부 ? 만약 그것들이 할 수 있으면 “참true”이고, 아니라면 “거짓false”. 만약 “거짓false”이라면, 타겟 액티비티는 앨리어스와 같은 애플리케이션 또는 같은 유저user ID를 가진 애플리케이션의 컴포넌트에 의해서만 앨리어스를 통해 런치될 수 있다.

디폴트 값은 앨리어스가 인텐트 필터를 포함하는 지 여부에 달려있다. 어떤 필터도 없다는 것은 액티비티가 앨리어스의 정확한 이름을 명시함으로써만 그 앨리어스를 통해 그 액티비티가 호출될 수 있다는 것을 의미한다. 이것은 앨리어스가 애플리케이션 내부 용도(다른 것들 것 그것의 이름을 알 지 못할 것이다)로만 의도되었다는 것을 의미하며 ? 그러므로 그 디폴트 값은 “거짓false”이다. 반면에 적어도 한 개의 필터가 존재한다는 것은 앨리어스가 외부 용도를 위해 의도되었다는 것을 의미한다 - 그러므로 그 디폴트 값은 “참true”이다.

android:icon
An icon for the target activity when presented to users through the alias. See the <activity> element's icon attribute for more information.
앨리어스를 통해 사용자에게 보여지는 타겟 액티비티에 대한 아이콘. 더 많은 정보를 위해서는 <activity> 엘리먼트의 icon 애트리뷰트를 보라.
android:label
A user-readable label for the alias when presented to users through the alias. See the the <activity> element's label attribute for more information.
앨리어스를 통해 사용자에게 보여지는 앨리어스에 대한 사용자가 읽을 수 있는 라벨. 더 많은 정보를 위해서는 <activity> 엘리먼트의 label 애트리뷰트를 보라.
android:name
A unique name for the alias. The name should resemble a fully qualified class name. But, unlike the name of the target activity, the alias name is arbitrary; it does not refer to an actual class.
앨리어스에 대한 고유한 이름. 이름은 전체 클래스 이름과 비슷해야 한다. 그러나 타겟 액티비티의 이름는 달리, 앨리어스 이름은 임의로 정할 수 있다; 그것은 실제 클래스 이름을 참조하지는 않는다.
android:permission
The name of a permission that clients must have to launch the target activity or get it to do something via the alias. If a caller of startActivity() or startActivityForResult() has not been granted the specified permission, the target activity will not be activated.

This attribute supplants any permission set for the target activity itself. If it is not set, a permission is not needed to activate the target through the alias.

For more information on permissions, see the Permissions section in the introduction.

클라이언트가 타겟 액티비티를 런치하기 위해, 또는 앨리어스를 통해 어떤 것을 하기 위해 얻어야만 하는 퍼미션의 이름. 만약 startActivity() 또는 startActivityForResult()의 호출자가 명시된 퍼미션을 부여받지 않았다면, 타겟 액티비티는 활성화되지 않을 것이다.

이 애트리뷰트는 타겟 액티비티 자체에 대한 임의의 퍼미션 집합set을 대체한다. 만약 그것이 설정되지 않는다면, 앨리어스를 통해 타겟을 활성화하기 위해 퍼미션이 필요하지는 않다.

퍼미션에 대한 더 많은 정보를 위해, 앞에 나왔던 퍼미션 섹션을 보라.

android:targetActivity
The name of the activity that can be activated through the alias. This name must match the name attribute of an <activity> element that precedes the alias in the manifest.
앨리어스를 통해 활성화될 수 있는 액티비티의 이름. 이 이름은 매니페스트의 앨리어스 앞에 나오는 <activity> 엘리먼트의 name 애트리뷰트와 일치해야 한다.
introduced in:
API Level 1
see also:
<activity>
↑ Go to top