Write a background service which extract various device information like current user, latitude, longitude, GPS Status and Internet Status. I am able to extract all these information and seen in Log. But when i tried to put all these information to the current user object on parse cloud using "put" command i am not able to do that. Please find below small code snippet for your reference. Please help me in resolving this issue. Thanks
ParseUser currUser = ParseUser.getCurrentUser();
Log.d(TAG, String.valueOf(isGPSEnabled));
Log.d(TAG, String.valueOf(latitude));
Log.d(TAG, String.valueOf(longitude));
String username = currUser.getUsername();
Log.d(TAG, username);
currUser.put("Latitude",String.valueOf(latitude));
currUser.put("Longitude",String.valueOf(longitude));
currUser.put("isGPSEnabled",String.valueOf(isGPSEnabled));
Solved. For future if someone face this issue please add below line.
currUser.saveInBackground();