I am developing an application using parse.com. In my installation class, I want to save the userId object. I tried this code, but the type "currentuser.set" is undefined.
ParseInstallation currentInstall = ParseInstallation.getCurrentInstallation(); currentInstall.set("User",ParseUser.getCurrentUser()); currentInstall.saveInBackground();
how can i encode this?
If you want to set objects in an object ParseInstallation, you need to use "put" rather than "set".
ParseInstallation
And it ParseUser.getCurrentUser()returns the user object, not objectId.
ParseUser.getCurrentUser()
see the sdk sdk section in the relationship section
https://parse.com/docs/android_guide#objects-pointers
, . OID .
, , OID ".objectId"...
Source: https://habr.com/ru/post/1530566/More articles:GGally putPlot does not work in a loop - rHow to combine and check two text fields for swt dialog? - javaVim color scheme installed with Vundle without changing colors - vimZF2 routing ignores namespace - phpList of sites using lapply - rChef (server): What is the difference between client and user - chefJAVA HBase: how to use CellUtil.getRowByte (Cell, int) - javaPHP public function behaves like static - functionCocoaPods - ัััะฐะฝะพะฒะธัั ัะฑะพะน - rubyEntity Framework, preventing duplicate entries, simultaneous connections - c #All Articles