@@ -0,0 +1,2513 @@
+/**%0A * @author Andy Gup%0A *%0A * Copyright 2016 Esri%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A *%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%E2%80%8B%0A */%0Apackage com.esri.cordova.geolocation.fragments;%0A%0Aimport android.app.AlertDialog;%0Aimport android.app.Dialog;%0Aimport android.app.DialogFragment;%0Aimport android.content.DialogInterface;%0Aimport android.content.Intent;%0Aimport android.net.Uri;%0Aimport android.os.Bundle;%0Aimport android.provider.Settings;%0Aimport android.util.Log;%0A%0Apublic class GPSPermsDeniedDialogFragment extends DialogFragment%7B%0A%0A    private static final String TAG = %22GeolocationPlugin%22;%0A%0A    @Override%0A    public Dialog onCreateDialog(Bundle savedInstanceState)%7B%0A%0A        final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());%0A        final String message = %22Without this permission the app will not retrieve location data. %22%0A                + %22Are you sure you want to deny this permission?%22;%0A        builder.setMessage(message)%0A                .setTitle(%22Permission Denied%22);%0A        builder.setPositiveButton(%22RE-TRY%22, new DialogInterface.OnClickListener() %7B%0A            public void onClick(DialogInterface dialog, int id) %7B%0A%0A                try%7B%0A                    Intent settingsIntent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);%0A                    Uri uri = Uri.fromParts(%22package%22, getActivity().getPackageName(), null);%0A                    settingsIntent.setData(uri);%0A                    getActivity().startActivity(settingsIntent);%0A                %7D%0A                catch (Exception exc)%7B%0A                    Log.e(TAG, exc.getMessage());%0A                %7D%0A            %7D%0A        %7D);%0A        builder.setNegativeButton(%22I'M SURE%22, new DialogInterface.OnClickListener() %7B%0A            public void onClick(DialogInterface dialog, int id) %7B%0A                GPSPermsDeniedDialogFragment.this.getDialog().cancel();%0A            %7D%0A        %7D);%0A%0A        final AlertDialog dialog = builder.create();%0A%0A        return dialog;%0A    %7D%0A%0A%0A    @Override%0A    public void onDetach()%7B%0A        super.onDetach();%0A    %7D%0A%0A%7D

add perms denied dialogFragment as a placeholder