Я отправляю данные из первого класса. java широковещательному приемнику с помощью диспетчера alaram, но данные о намерениях не отправляются полностью. Почему?
Intent intentsq = new Intent(this, alarammanage.class);
intentsq.setAction("BackgroundProcess");
Log.d("Hisdate", String.valueOf(hisdate));
intentsq.putStringArrayListExtra("hisdates",hisdate);
intentsq.putStringArrayListExtra("hismonths",hismonth);
intentsq.putStringArrayListExtra("hisyears",hisyear);
Log.d("sending to ","bavck");
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intentsq, 0);
AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, 0, 60000, pendingIntent);
firstclass. java
ArrayList<String> hisdate = new ArrayList<>();
ArrayList<String> hismonth = new ArrayList<>();
ArrayList<String> hisyear = new ArrayList<>();
@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();
hisdate= bundle.getStringArrayList("hisdates");
hismonth= bundle.getStringArrayList("hismonths");
hisyear= bundle.getStringArrayList("hisyears");
Log.d("hidate1", String.valueOf(hisdate));
Log.d("hidate2", String.valueOf(hismonth));
Log.d("hidate3", String.valueOf(hisyear));
alarammanage. java
D/Hisdate: [2, 2]
D/hidate1: [2]
D/hidate2: [8]
D/hidate3: [2020]