title: How popule ListView with database items in Xamarin?
body: <p>I can't popule a ListView with database items. </p>
  
  <p>Function in sqlite for get table:</p>
  
  <pre><code>public Android.Database.ICursor getFornecedores()
          {
              Android.Database.ICursor temp = null;
              try
              {
                  sqlQuery = "SELECT * FROM Fornecedor;";
                  temp = sqlTemp.RawQuery(sqlQuery, null);
                  if (!(temp != null))
                      Console.WriteLine("Deu pau");
              }
              catch(SQLiteException e)
              {
                  Console.WriteLine("Erro = " + e.Message);
              }
              return temp;
          }
  </code></pre>
  
  <p>Function I try populate listView:</p>
  
  <pre><code>public void loadListView()
          {
              Android.Database.ICursor fornecedores;
              DataBaseHandler db = new DataBaseHandler();
              fornecedores = db.getFornecedores();
              SimpleCursorAdapter adapter;
  
              cadastroListView.Adapter = new SimpleCursorAdapter(this, Android.Resource.Layout.SimpleDropDownItem1Line, fornecedores,
                                          new string[] { "nome" }, new int[] { Android.Resource.Id.Text1 });
  
  
          }
  </code></pre>
  
  <p>Help me please!
  Thanks!</p>