Android doesn't allow for security reasons to turn the GPS on/off programmatically without notifying the user, the way certain apps are able to do it is because they are using a BUG or EXPLOIT, but it has been fixed (or soon to be fixed) so there's no way to go around it.