I've a home screen widget with few buttons. One of them should call (phone) calendar dialog to create new event. So i registered listener to my widget button:
Intent intent = new Intent(Intent.ACTION_INSERT);
intent.setData(CalendarContract.Events.CONTENT_URI);
PendingIntent pi = PendingIntent.getActivity(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);
updateViews.setOnClickPendingIntent(R.id.btnAdd, pi);
When I push this btn in my widget, it launches calendar dialog for creating new event - this is ok. But after filling all fields and pressing "Done" in calendar, I would like to return back to my app (or to home screen to my widget). Instead, I'm still inside calendar app. How to deal with this, or is it possible?