Your fragment is not guaranteed to be available as soon as you call ft.commit()
.
Try accessing your textSwitcher from the onCreateView()
method of your fragment, rather than directly from the activity.
Example:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View rootView = inflater.inflate(R.layout.fragment_display, container, false);
TextSwitcher textSwitcher = (TextSwitcher) rootView.findViewById(R.id.tswitch);
//Do stuff with textSwitcher
return rootView;
}