Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 关于粘性意图_Android_Android Intent_Android Service_Android Broadcast - Fatal编程技术网

Android 关于粘性意图

Android 关于粘性意图,android,android-intent,android-service,android-broadcast,Android,Android Intent,Android Service,Android Broadcast,我理解粘性意图的实现,但如果我最初在本表中有粘性意图: Intent intent = new Intent("some.custom.action"); intent.putExtra("A", true); intent.putExtra("B", true); intent.putExtra("C", true); sendStickyBroadcast(intent); 然后以以下形式提出了一个棘手的意图: Intent intent = new Intent("some.cust

我理解粘性意图的实现,但如果我最初在本表中有粘性意图:

 Intent intent = new Intent("some.custom.action");
intent.putExtra("A", true);
intent.putExtra("B", true);
intent.putExtra("C", true);
sendStickyBroadcast(intent);
然后以以下形式提出了一个棘手的意图:

 Intent intent = new Intent("some.custom.action");
 intent.putExtra("A", true);
 intent.putExtra("B", false);
 sendStickyBroadcast(intent);

“C”的键是否不再存在,或者它是否仍具有true的值?

对于任何感兴趣的人:

新的意图覆盖了先前的意图,导致额外的意图不再存在