Il mio oggetto ContentValues ha chiavi di stringa e vorrei ottenere un risultato String [] con tutte le chiavi in esso contenute?Come ottenere le chiavi da ContentValues?
Come si esegue un iterazione di un oggetto ContentValues?
EDIT 1
Dopo aver ottenuto due risposte sono arrivato fino a questo, vedete problemi con esso?
ArrayList<String> ar = new ArrayList<String>();
ContentValues cv=data;
Set<Entry<String, Object>> s=cv.valueSet();
for (Entry<String, Object> entry : s) {
ar.add(entry.getKey());
}
String[] projection=new String[ar.size()];
ar.toArray(projection);
nulla salta fuori, non funziona? – RickNotFred
Si può popolare anche l'array direttamente dal Set, piuttosto che tramite ArrayList, ma a parte questo, sembra buono. –