Closed bharathnr21 closed 6 years ago
You mean say, you are trying to use the code in your app and its not working?
Yes, i am using your code for one of our internal project. I am trying to load the SettingPreferenceFragment in SettingsActivity. But i am activity has null.
private void setPermissionListener() { if (getActivity() != null && getActivity() instanceof MainActivity) { Log.d("TETSTING","NOT_NULL"); activity = (MainActivity) getActivity(); activity.setPermissionResultListener(activity); }else{ Log.d("TESTING>>>",""); } }
Well, I cannot help much without seeing your code but your best bet would be to ask in stackoverflow as the question to extensive is not related to this repository.
Also a point to note, If you are using any code you must comply with the opensource license.
Closing this issue for now.