Android AlertDialog exception "Resources$NotFoundException"
The problem was that my project was missing the style resource for the AlertDialog:
In styles.xml put this:
<style name="MyDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert" />
In your code where you create the Alert Dialog put this:
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.MyDialogTheme);
Thanks for @Fraranc in this post for the answer : Resources$NotFoundException: Resource ID #0x0 in AlertDialog