Question: My app’s device orientation is set to portrait, however when rotating the device into landscape mode, the app is keeping its portait mode but the keyboard is rotating into landscape mode...Something that is unexpected.

Why is that happening and how to prevent it?

Thanks
Jrejory

Answer: 
You can create the user pointer by using the objectid of the user

```
ParseUser user=new ParseUser();
user.setObjectId("RE1bvmzyPk");

ParseQuery<ParseObject> query = ParseQuery.getQuery("Routine");
query.whereEqualTo("user", user);
query.findInBackground(new FindCallback<ParseObject>() {
    @Override
    public void done(List<ParseObject> routines, ParseException e) {
        if (e==null){

        }

        else {
            //error
        }
    }
});

```
if you want routines that point back to ( were created by a User ) 

Add the pointer field to Routines:

"createdBy" type=pointer

And then query for it using the User Obj.

```
  ParseQuery<ParseObject> query = ParseQuery.getQuery("Routine");
    query.whereEqualTo("createdBy", $userObj);

```