In my Android app (which is being ported from iOS app) I have a button that says "Would you like to Subscribe to the Calendar". In iOS the following code confirms with the user and adds the shared calendar to the device.
subscribeButton = UIButton.FromType (UIButtonType.Custom);
subscribeButton.SetTitle ("Subscribe To The Team Calendar?", UIControlState.Normal);
subscribeButton.UserInteractionEnabled = true;
_tapSubscribe = new UITapGestureRecognizer();
_tapSubscribe.AddTarget(() => UIApplication.SharedApplication.OpenUrl(new NSUrl("http://<path to my calendar server>/teamcal.ics")));
_tapSubscribe.NumberOfTapsRequired = 1;
_tapSubscribe.DelaysTouchesBegan = false;
subscribeButton.AddGestureRecognizer(_tapSubscribe);
It works great and calendar is subscribed to.
How do I do the same thing in Android? I can fire up an intent and open the web page but it just downloads the .ics file.
Thanks for any help or direction!!
Cheers