0

I have developed an Android App which writes events to the device calendar. It is working well in Android versions below 6. But is not working in Android Marshmallow. There are no installation issues, no errors either in Android M. I have properly used targetSdkVersion as 23.

Thanks in advance.

Floern
  • 33,559
  • 24
  • 104
  • 119
  • So do you [request the permission at runtime](http://developer.android.com/training/permissions/requesting.html)? – ianhanniballake Jan 16 '16 at 07:23
  • @ianhanniballake I have set permissions to read & write calendar in the manifest file. As mentioned the App works for Android versions below 6 – user3278660 Jan 16 '16 at 18:39
  • That doesn't actually answer my question. Do you request the permission at runtime? – ianhanniballake Jan 16 '16 at 19:27
  • @ianhanniballake I am not requesting permissions at runtime. So, does that mean that Android 6 does not allow Calendar events to be written even though I have set permissions to read & write calendar in the manifest file. Thanks for your response. – user3278660 Jan 17 '16 at 06:20
  • That's what the link I included says. – ianhanniballake Jan 17 '16 at 06:23
  • @ianhanniballake Thank you so much – user3278660 Jan 17 '16 at 07:55
  • @ianhanniballake If I downgrade the targetSdkVersion to 22 will Android 6 allow Calendar writes without having to request the permission at runtime. – user3278660 Jan 17 '16 at 13:06
  • @ianhanniballake I could make the App Android M compatible by requesting the permission at run time. Thanks again – user3278660 Jan 23 '16 at 06:50
  • @ianhanniballake However, one of my user has reported that my app could not write to the Calendar. It should have worked even without the permission request at run time since that user is having a Nexus phone running Android 4.3 – user3278660 Jan 23 '16 at 06:55

0 Answers0