Is there a way to add events to device's calendar?

I found this link for IOS, how about android device?

I just need to add events to device’s calendar as soon as the user installs application.