Witam,

Problem mam z przepisaniem wartości z bazy danych do tablicy dwuwymiarowej.

 
public String[][] getHistory() {
	SQLiteDatabase db = this.getReadableDatabase();
	Cursor cursor = db.query(TABLE, null, null, null, null, null, null);

	Log.v("<<<<<<<<<<<<<<<<<<<<<<", String.valueOf(cursor.getCount()));
	String[][] arrLocations = new String[cursor.getCount()][2];

	while (cursor.moveToNext()) {
		double lon = cursor.getDouble(2);
		double lat = cursor.getDouble(1);
		String name;
		if (cursor.getString(3) == null)
			name = "";
		else
			name = cursor.getString(3);

		Log.v("<<<<<<<<<<<<<<<<<<<<<<", name);
		Log.v("<<<<<<<<<<<<<<<<<<<<<<", Double.toString(lat));

		arrLocations[cursor.getPosition()][0] = name;
		arrLocations[cursor.getPosition()][1] = Double.toString(lat);
		arrLocations[cursor.getPosition()][2] = Double.toString(lon);
	}

	return arrLocations;
}

Cały czas dostaję FC, domyślam się że po pierwszej iteracji pętli, bo w logach pokazuje mi tylko jedną wartość.