gpt4 book ai didi

android - 具有自定义操作的 Intent

转载 作者:太空宇宙 更新时间:2023-11-03 13:03:00 25 4
gpt4 key购买 nike

有没有办法通过自定义操作构建 Intent ?我的意思是像 ACTION_CUSTOM

bundle_details.putString("query_details", searchIntent.getStringExtra(SearchManager.QUERY));
bundle_details.putString("type", SS);
listIntent.putExtras(bundle_details);
startActivity(listIntent);

最佳答案

可以通过以下方式完成:

public static final String CUSTOM_INTENT = "ACTION_SEARCH_CUSTOM";

Intent listIntent = new Intent(TestDetails.this, SimpleSearch.class);
listIntent.setAction(CUSTOM_INTENT);

关于android - 具有自定义操作的 Intent ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8321018/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com