I want to change the style of dialog which appear by google-service-lib and let user press yes or no then location open without go to location setting can i do it ? this link have example to this dialog if i can how can i change it How to show enable location dialog like Google maps?
            Asked
            
        
        
            Active
            
        
            Viewed 49 times
        
    0
            
            
        - 
                    Just make your custom dialog – Abhay Dhiman May 12 '16 at 07:23
1 Answers
0
            
            
        Yes. Here's a code snippet on how to Create a Dialog Fragment:
public class FireMissilesDialogFragment extends DialogFragment {
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        // Use the Builder class for convenient dialog construction
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
        builder.setMessage(R.string.dialog_fire_missiles)
               .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {
                   public void onClick(DialogInterface dialog, int id) {
                       // FIRE ZE MISSILES!
                   }
               })
               .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
                   public void onClick(DialogInterface dialog, int id) {
                       // User cancelled the dialog
                   }
               });
        // Create the AlertDialog object and return it
        return builder.create();
    }
}
Other samples:
 
    
    
        Community
        
- 1
- 1
 
    
    
        ReyAnthonyRenacia
        
- 17,219
- 5
- 37
- 56
- 
                    no man i no need how to create custom dialog i want to modify location dialog – Tefa Alhwa May 15 '16 at 06:18
