Android: Share event from default Calendar to my app -


similar sharing images/audio , plain text, want see app when user shares event default calendar app.

i sure there mime type.

as see app in list shares images, similar see app when event shared.

 <intent-filter>             <action android:name="android.intent.action.send" />              <category android:name="android.intent.category.default" />              <data android:mimetype="image/*" />         </intent-filter>          <intent-filter>             <action android:name="android.intent.action.send" />              <category android:name="android.intent.category.default" />             <data android:mimetype="vnd.android.cursor.item/event" />         </intent-filter>          <intent-filter>             <action android:name="android.intent.action.send_multiple" />              <category android:name="android.intent.category.default" />              <data android:mimetype="image/*" />         </intent-filter> 

update,i able show app in event sharing intent using code below

   <intent-filter>                 <action android:name="android.intent.action.send"/>                 <action android:name="android.intent.action.send_multiple"/>                 <category android:name="android.intent.category.default"/>                 <data android:mimetype="*/*"/>             </intent-filter> 

so, working on similar lines thinking changing */*did trick still not done need sharing events not images/videos/audios/text etc.

just need mimetype can support types of events

perfect!!

i able fix this, posting answer here, can use solution in future

i able using text/x-vcalenda

<intent-filter>             <action android:name="android.intent.action.send" />             <action android:name="android.intent.action.send_multiple" />              <category android:name="android.intent.category.default" />             <data android:mimetype="text/x-vcalendar" />         </intent-filter> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -