I have a calendar app (Samsung default on Note 3 / Lollipop) which is invoked and properly inserts the contents of a downloaded .ics file when I open it. I'm trying to find the proper intent setAction and setType values to submit the file from within a custom app. An "almost there" solution seems to be ACTION_VIEW and text/calendar, respectively - the calendar app appears briefly, but no insertion is done. The code snippet is as follows:
intent.setDataAndType(Uri.fromFile(file), "text/calendar"); intent.setAction(Intent.ACTION_VIEW);
There are countless examples of using parsed data presented as extras with the type vnd.android.cursor.item/event, but I have yet to find an answer for this method. Does anyone know the intent make-up of the Samsung (or for that matter, Gmail) calendar?