@@ -0,0 +1,1493 @@
+%0Aimport android.content.pm.PackageManager;%0Aimport android.os.Build;%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0A%0Apublic class SampleActivity extends AppCompatActivity %7B%0A%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A%0A        setContentView(R.layout.sample_layout);%0A%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.M) %7B%0A            int neededRequestSize = PermissionRequester.checkSelfPermissions(SampleActivity.this, PermissionRequester.Group.ACCESS_CONTACTS);%0A            if (neededRequestSize == 0) %7B%0A                runApp();%0A            %7D else %7B%0A                PermissionRequester.requestPermissions(SampleActivity.this, PermissionRequester.Group.ACCESS_CONTACTS);%0A            %7D%0A        %7D else %7B%0A            runApp();%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onRequestPermissionsResult(int requestCode, String%5B%5D permissions, int%5B%5D grantResults) %7B%0A        super.onRequestPermissionsResult(requestCode, permissions, grantResults);%0A        int grantedPermissions = 0;%0A        for (int i = 0; i %3C permissions.length; i++) %7B%0A            if (grantResults%5Bi%5D == PackageManager.PERMISSION_GRANTED) %7B%0A                grantedPermissions++;%0A            %7D%0A        %7D%0A        if (grantedPermissions == permissions.length) %7B%0A            runApp();%0A        %7D else %7B%0A            // NOT ALL PERMISSIONS GRANTED%0A        %7D%0A    %7D%0A%0A    private void runApp() %7B%0A        // DO STUFF HERE%0A    %7D%0A%0A%7D%0A

Create SampleActivity.java