title: Android - why is this telling me "Content view not yet created"?
body: <p>This is a populating a listview on a fragment from a database:</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container,
             Bundle savedInstanceState) {
  
              LinearLayout Layout5 = (LinearLayout) inflater.inflate(R.layout.tab_frag5_layout, container, false);
  
              Cursor allBands;
              MyDatabase db;
  
              Context ctx = (Context)TabFragment5.this.getActivity();
  
  
              db = new MyDatabase(ctx);
              allBands = db.getBands();
  
  
              ListAdapter adapter = new SimpleCursorAdapter (ctx, 
                      R.layout.listelement, 
                      allBands, 
                      new String[] {"BandName"},  
                      new int[] {R.id.text15});
  
              getListView().setAdapter(adapter);  
  
              return Layout5;
  
           }
  </code></pre>
  
  <p>Why is this giving me the  "Content view not yet created" On logcat? the program forces close when the fragment opens...</p>