To elaborate on what DonManfred is saying.
No android app can control the GPS settings due to google security reasons.
The only thing your app can do is check to see if it is OFF, and if so, it can notify the user that it needs to be turned on, then your app can run some special code (see above) to "open" the *devices* DEFAULT GPS settings page - Meaning that the "on/off" settings dialog that you see in your video is not part of that third-party app - that dialog is the *devices* default gps on/off dialog and your app can simply "jump" the user to that settings page so that the user doesn't have to manually go into their android system settings, then go into the "location" settings to get to this same page.