gpt4 book ai didi

Android,开始一个新的 Activity 并传递一个变量

转载 作者:行者123 更新时间:2023-11-29 14:32:35 28 4
gpt4 key购买 nike

<分区>

我想开始一个新的 Activity ,并在其中传递一个变量。

到目前为止的代码:

if(mostLikelyThingHeard.toUpperCase().equals("PLAY ONE"))
{
startActivity(new Intent("com.shaz.new"));
//I want to send an int value `1` to the new activity.
}

这可以做到吗?

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