2
내 활동 중 하나에 대한 매니페스트 파일에 인 텐트 필터가 정의되어 있습니다. 나는 다음과 같은 명령을 사용하여 ADB 쉘에서이 활동을 시작하려합니다 :활동 시작 중 오류가 발생했습니다.
시작 : 나는 다음과 같은 오류를 얻고있다
-W -a android.intent.action.VIEW
-d "example://gizmos" com.example.android
을 시작
$ ADB 쉘 오전 의도 { 행동 = android.intent.action.VIEW DAT = http://www.example.com/gizmos PKG = com.example.android}
오류 : 활동 의도 {행위 = android.intent.action.VIEW DAT = http://www.example.com/gizmos FLG =로 0x100를 해결할 수없는, 시작하지 00000 pkg = com.example.android}
도와주세요.
<activity
android:name="com.example.android.activity.ExampleActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="portrait" >
<intent-filter android:label="Search" >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "example://gizmos” -->
<data
android:host="gizmos"
android:scheme="example" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data
android:host="www.example.com"
android:pathPrefix="gizmos"
android:scheme="http" />
</intent-filter>
</activity>
내가 사용한 유사한 XML
여기 매니페스트 항목입니다. 그러나 같은 오류. –