android - Cannot get objectId even inside saveInBackground()? -
i cannot retrieve created object's objectid, inside public void done
.
occasion.saveinbackground(new savecallback(){ @override string string = occasion.getobjectid(); })
and returns null
and crashes app nullpointerexception. why null? saved successfully. no object id, why? :(
use
occassion.saveinbackground(new savecallback() { @override public void done(parseexception e) { // todo auto-generated method stub if(e==null){ string string = occasion.getobjectid(); } } });
Comments
Post a Comment