private PendingResult<Snapshots.CommitSnapshotResult> writeSnapshot(Snapshot snapshot, byte[] data, Bitmap coverImage, String desc) {
https://developers.google.com/games/services/android/savedgames
The docs say that a snapshot link must be obtained before calling writeSnaphot. Since the snapshot is an interface, it cannot be created using the new one.
How to get a link to a snapshot?
Thanks!
PS I see that there is a way to get a link by opening an existing saved game by name, but the link that I would like to get is for a new snapshot in which there are currently no existing snapshots, so using the download function is probably not will be able to write a new picture.
source share