How can I get the text in textswitcher which is previously set. Just like textview.getText(). I have tried the following code but didn't work.
TextSwitcher textSwitcher = (TextSwitcher)findViewById(...);
TextView currentlyShownTextView = (TextView) textSwitcher.getCurrentView();
String currentlyShownText = textSwitcher.getText().toString();