Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有问题。在设备 SAMSUNG GT-P3110 中,当我调用屏幕搜索产品时,选择产品并返回使用:
Intent i = new Intent(); i.putExtra("productID", "1"); setResult(100,i); finish();
它总是在类调用者的 oncreate 方法中传递,清理所有成员类。在某些设备中,行为是正常的,它只通过一次。你能帮我吗?
我研究发现该设备具有限制打开活动数量的功能。取消选中该选项,它只传递一次方法 oncreate 。