AquaMail Forum

English - Android => How do I... => Topic started by: WinstonY on December 07, 2015, 11:08:40 pm

Title: Changing default app in "send to calendar"
Post by: WinstonY on December 07, 2015, 11:08:40 pm
Hi,

How do I change the default calendar app when using "send to calendar" function? I have Informant installed but it always defaults to opening Samsung S Planner. I cannot find where to clear defaults. Any help?

Thanks!

Winston
Title: Re: Changing default app in "send to calendar"
Post by: Kostya Vasilyev on December 08, 2015, 01:17:25 am
System settings -> apps (or apps management, is it?) -> find and tap into your currently default calendar app and there should be a "clear defaults" button.

After you've done this, next time Android should prompt you for which app to use.

http://www.cnet.com/how-to/how-to-clear-a-default-app-setting/
Title: Re: Changing default app in "send to calendar"
Post by: WinstonY on December 09, 2015, 03:29:14 am
Thanks so much for the reply. I tried doing that and the clear defaults button on the application manager are all greyed out for S Planner, Aquamail and Informant. It's not a big deal. More of wondering why its not resetting app defaults.

All the best!

Winston
Title: Re: Changing default app in "send to calendar"
Post by: Kostya Vasilyev on December 09, 2015, 02:54:51 pm
Maybe Informant doesn't handle the "intent" which is the mechanism for sending stuff between apps?

Please check with this app's developer. Here is what I use, it's all officially documented stuff:

      Intent intent = new Intent(Intent.ACTION_INSERT, CalendarContract.Events.CONTENT_URI);
      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);

      intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, ...);
      intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, ...);
      intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, ...);
      intent.putExtra(CalendarContract.Events.TITLE, subject);
      intent.putExtra(CalendarContract.Events.DESCRIPTION, description);

      try {
         context.startActivity(intent);
...


The most important bit is:

Intent intent = new Intent(Intent.ACTION_INSERT, CalendarContract.Events.CONTENT_URI);


... and Informant may not be wired to respond to this.
Title: Re: Changing default app in "send to calendar"
Post by: Kostya Vasilyev on December 09, 2015, 03:23:12 pm
I installed Informant, and "send to Calendar" in AquaMail gives me the choice of two other calendar apps installed on the device (Sony's built-in calendar and Google Calendar) -- but not Informant.

So yes, please contact the developer of Informant.