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.
在我的第一个活动中,我有三个 edittext 和两个按钮。我给出了前两个edittext的值,然后单击第一个按钮并移动到第二个活动。并再次从该活动将值传递给第一个活动并将其保存在第三个编辑文本中。但不应清除在第一个和第二个编辑文本中输入的值。
一种方法是在您导航到其他活动之前将值存储在您的第一个活动中。阅读以下文章,保留值