I have a home screen widget with several buttons. One of them should call up the dialogue (phone) of the calendar to create a new event. So, I registered the listener on 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 click this btn in my widget, it launches a calendar dialog to create a new event - this is normal. But, having filled in all the fields and clicking โFinishโ in the calendar, I would like to go back to my application (or to the main screen of my widget). Instead, I'm still in the calendar app. How to deal with this, or is it possible?
source share