android - Google Play Saved Games Snapshot not initialized -


i'm trying use google play saved games feature. cannot find way initialize sanpshot object.

snapshot snapshot = null; pendingresult<snapshots.commitsnapshotresult> result = writesnapshot(snapshot, senddata, null, "saving game using saved game api"); 

as snapshot snapshot = new snapshot() doesn't work, how should initialize object?


Comments