I am using Android Studio (Beta), and while using this java code in \'onCreateView()\', I get an error.
ListView listView = (ListView) findViewById(R.id.some
Assuming you have a static fragment inner class inside an activity: you're trying to call the activity's findViewById()
which you cannot in a static inner class that doesn't hold a reference to the parent.
In onCreateView()
you need to call it on the root view you just inflated, e.g.
ListView listView = (ListView) rootView.findViewById(R.id.someListView);