如何添加 android 程序并显示在发送列表中?

我实现了一个应用程序,把照片更新到我自己的服务器上。
当实现下面的代码时,我想让程序能在发送列表中显示。如何实现?

Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");
share.putExtra(Intent.EXTRA_STREAM, Uri.parse(FilePath));
startActivity(Intent.createChooser(share, "Share Image"));

在AndroidManifest.xml配置文件中activity标签之间加入以下代码:

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