diff --git a/app/src/main/java/com/akdev/nofbeventscraper/MainActivity.java b/app/src/main/java/com/akdev/nofbeventscraper/MainActivity.java index c228f14..65c3c13 100644 --- a/app/src/main/java/com/akdev/nofbeventscraper/MainActivity.java +++ b/app/src/main/java/com/akdev/nofbeventscraper/MainActivity.java @@ -174,7 +174,10 @@ public class MainActivity extends AppCompatActivity { // prepend url in description String desc = event.url + "\n\n" + event.description; intent.putExtra(CalendarContract.Events.DESCRIPTION, desc); - startActivity(intent); + + if (intent.resolveActivity(getPackageManager()) != null) { + startActivity(intent); + } } });