ListView Von SQLite in Android

Da ich das ganze Netz noch im Problem mit ListView From Sqlite gesucht habe. Nachdem ich so viel gesucht habe, probiere ich mein Projekt am Beispiel eines Android-Bienenstocks ausHier verlinken. In der Klasse Database Handler haben sie also die Funktion List getAllContacts () angegeben, um alle SQLite-Daten im List-Format abzurufen. Ich habe dies in meinem Projekt implementiert, indem ich die obige Funktion in ViewContact.class verwendet habe. DasPROBLEM Ich verstehe nicht, wie ich alle Daten in ListView mit dieser oder einer anderen Methode abrufen kann.

Siehe meinen Code (ViewContact.class):

public class ViewContact extends Activity {
DatabaseHandler helper = new DatabaseHandler(this);
String a;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.row);
    ListView listContent = (ListView)findViewById(R.id.listView1);
    }
public List<Contact> getAllContacts() {
    List<Contact> contactList = new ArrayList<Contact>();
    // Select All Query
    String selectQuery = "SELECT  * FROM contacts";
    SQLiteDatabase db = helper.getWritableDatabase();
    Cursor cursor = db.rawQuery(selectQuery, null);
    // looping through all rows and adding to list
    if (cursor.moveToFirst()) {
        do {
        Contact contact = new Contact();
        contact.setID(Integer.parseInt(cursor.getString(0)));
        contact.setName(cursor.getString(1));
        contact.setPhoneNumber(cursor.getString(2));
        // Adding contact to list
        contactList.add(contact);
    } while (cursor.moveToNext());
}// return contact list
return contactList;}}

BEARBEITEN:

Siehe Nach der Antwort von @GrIsHu lautet die Ausgabe:

Antworten auf die Frage(4)

Ihre Antwort auf die Frage