I've been looking at the Android development tutorials and after looking through some code, I've noticed the following:
HeadlinesFragment mHeadlinesFragment; mHeadlinesFragment = (HeadlinesFragment) getSupportFragmentManager().findFragmentById( R.id.headlines); I am fairly new to Java so that may be the issue, but why is this explicit casting of (HeadlinesFragment) necessary? Is mHeadlinesFragment not already of type HeadlinesFragment?
Thanks!