<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>
<application><intent-filter>
<meta-data>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 ""
and "android.intent.action.MAIN" flags, causing it to be
represented in the application launcher, even though none of the
filters on the target activity itself set these flags.
android.intent.category.LAUNCHER
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.
앨리어스는 독립적인 엔티티로써 타겟 액티비티를 표시한다. 그것은 자기 자신의 인텐트 필터 셋을 가질 수 있고, 그리고 그 인텐트 필터들은, 타겟 액티비티 자제에 있는 인텐트 필터 보다는, 어떤 인텐트가 앨리어스를 통해 타겟을 활성화할 수 있는가와 시스템이 앨리어스를 어떻게 취급해야 하는가를 결정한다. 예를 들어 앨리어스에 대한 인텐트 필터는 그 앨리어스를 애플리케이션 런처에 표시하게 하는 “android.intent.action.MAIN” 과 “android.intent.category.LAUNCHER”를 지정할 수도 있다. 비록 이러한 플래그들이 타겟 액티비티의 필터에 없을 지라도.
targetActivity를 제외하고, <activity-alias> 애트리뷰트는 <activity> 애트리뷰트의 부분 집합이다. 부분 집합에 있는 애트리뷰트에 있어서는, 타겟에 대한 설정 값 중 어떤 것도 앨리어스에 전달되지 않는다. 하지만 부분 집합에 없는 애트리뷰트에 있어서는, 타겟 액티비티에 대한 설정 값은 앨리어스에도 또한 적용된다.
android:enabledtrue" 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.
<application> 엘리먼트는 그것 자신의 enabled 애트리뷰트를 가지며, 그것은 액티비티 앨리어스를 포함하는 모든 애플리케이션 컴포넌트에게 적용된다. <application>과 <activity-alias> 애트리뷰트는 시스템이 앨리어스를 통해 타겟 액티비티를 인스턴스화 하는 것이 가능하도록 하기 위해 둘 다 “참true”이 되어야 한다. 만약 어느 쪽이든 “거짓false”이라면, 앨리어스는 동작하지 않는다.
android:exportedtrue" 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".
디폴트 값은 앨리어스가 인텐트 필터를 포함하는 지 여부에 달려있다. 어떤 필터도 없다는 것은 액티비티가 앨리어스의 정확한 이름을 명시함으로써만 그 앨리어스를 통해 그 액티비티가 호출될 수 있다는 것을 의미한다. 이것은 앨리어스가 애플리케이션 내부 용도(다른 것들 것 그것의 이름을 알 지 못할 것이다)로만 의도되었다는 것을 의미하며 ? 그러므로 그 디폴트 값은 “거짓false”이다. 반면에 적어도 한 개의 필터가 존재한다는 것은 앨리어스가 외부 용도를 위해 의도되었다는 것을 의미한다 - 그러므로 그 디폴트 값은 “참true”이다.
android:icon<activity> element's
icon attribute for more information.
android:label<activity> element's
label attribute for more information.
android:nameandroid:permissionstartActivity() 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.
이 애트리뷰트는 타겟 액티비티 자체에 대한 임의의 퍼미션 집합set을 대체한다. 만약 그것이 설정되지 않는다면, 앨리어스를 통해 타겟을 활성화하기 위해 퍼미션이 필요하지는 않다.
퍼미션에 대한 더 많은 정보를 위해, 앞에 나왔던 퍼미션 섹션을 보라.
android:targetActivityname attribute of an
<activity> element that precedes
the alias in the manifest.
<activity>