5

나는 ShareActionProvider와 함께 응용 프로그램에서 ActionBarSherlock을 사용하고 있습니다. 나는 매우 유사한 방식으로 이미지를 공유하는 공유 의도를 사용하고있어 ActionBarSherlock example : 모든 것이 제대로 작동ShareActionProvider 목록에서 YourSelf 제거

Intent shareIntent = new Intent(); 
shareIntent.setAction(Intent.ACTION_SEND); 
shareIntent.putExtra(Intent.EXTRA_STREAM, uri); 
shareIntent.setType("image/*"); 

, 유일한 문제는 내 응용 프로그램도 공유 이미지 내용을 받아들이는 것입니다 ("이미지/*") , 그래서 그것은 애플 리케이션의 목록에 나타납니다. 이 주변에 어쨌든 있습니까?

편집 : 여기

는 내 의도 필터 :

<intent-filter> 
    <action android:name="android.intent.action.SEND"/> 
    <category android:name="android.intent.category.DEFAULT"/> 
    <data android:mimeType="image/*"/> 
</intent-filter> 
+0

의도 필터를 게시 할 수 있습니까? –

+0

@JaredBurrows 나는 그들을 게시했다. – selsine

답변

0

나는 당신이 원하는 것을 이해하고있는 경우, 기본적으로, 동적으로 활성화/비활성화 의도-필터를 사용하려면.

내가 알기로는 직접 원하는 것을 얻을 수는 없지만 PackageManager and setComponentEnabledSetting()을 통해 활동을 중지하는 것과 동일한 효과를 얻을 수 있습니다. 분명히, "수신자"활동을 사용 중지하면 앱에서 발생할 수 있습니다.