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
Inside Activity class
static ListView listView; listView = (ListView) this.findViewById(R.id.someListView);
OR
to create inside fragmentClass(static)
static ListView listView; listView = (ListView) getActivity().findViewById(R.id.someListView);