For a location aware app that i am developing, i need to start the GPS programatically, but after a lot of research i found that, this is no longer allowed in newer versions of android (yes, there are some solutions like this, but they exploit some bugs in android- not a solid solution). so i use the enable location dialog (it is way much better than redirecting the user to settings page, to enable the GPS).
As you can see in this link, i want to customize the looks of this dialog with a custom layout to make it look like the rest of my app.