So, the problem is this: from one activation, switch to another, and transfer some data to the previous one. This code was the result:
public void onClick(View arg0) { // TODO Auto-generated method stub if (arg0 == button1) { int year = cal.getYear(); int month = cal.getMonth(); int day = cal.getDayOfMonth(); int hour = timer.getCurrentHour(); int minute = timer.getCurrentMinute(); boolean calenda = true; Intent z = new Intent(this, Newnote.class); z.putExtra("year", year); z.putExtra("month", month); z.putExtra("day", day); z.putExtra("hour", hour); z.putExtra("minute", minute); z.putExtra("calenda", calenda); super.finish(); } }
But the problem is that this data is not transmitted. As I understand it, I definitely need to open the activity so that all these parameters are transmitted to it. I would be glad, but then it turns out that the application is open 2 Activity.
Question: is it possible to somehow transfer the data without opening the activation or, like when opening the second activation, close the first?