How to pass parameters to other tabs (Android) [duplicate]
-
30-04-2021 - |
문제
Possible Duplicate:
Sharing data between tabs
In the main Tab, I have a button. After clicking it, it calls tabHost.setCurrentTab(1)
It then goes to another tab. But here, I want to pass the value of editText in Tab(0) to Tab(1). How to do it?
올바른 솔루션이 없습니다
다른 팁
Tab 0
getParent().getIntent().putExtra("key", "value");
Tab 1
String value = getParent().getIntent().getStringExtra("key");
제휴하지 않습니다 StackOverflow