When subclassing FirebaseListAdapter in FirebaseUI how can one get the obj key of the item clicked?
FirebaseListAdapter has the following method which gets itemId, but returns long. But I require the object key which is in the default string format.
public long getItemId(int i) {
return (long)this.mSnapshots.getItem(i).getKey().hashCode();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…