Exception result graph
The reason for the red Pen is that the part we see is because there is no way to call the parent class.
The method of calling the parent class can be solved, for example, the
@Overridepublic void onactivitycreated (Bundle savedinstancestate) {arrayadapter<string> arrayadapter = new Arrayadapter<string> (Getactivity (), R.layout.activity_listfragment_item); Arrayadapter.add ("Java"); Arrayadapter.add ("JAVA1"); Arrayadapter.add ("java2"); Arrayadapter.add ("ios"); Arrayadapter.add ("C #"); Arrayadapter.add ("C + +"); Arrayadapter.add ("PHP"); System.out.println ("12______"); Setlistadapter (Arrayadapter); System.out.println ("12______");
At the beginning of the code is not called the downstream, the above Supernotcalledexception exception super.onactivitycreated (savedinstancestate);//Call the parent class method}
Android.app.SuperNotCalledException Error