Android AlertDialog with CheckBox

For my old project YahrtzeitZmanim I needed to add start-up alert box, which will announce new version of Yahrtzeit2 app. For these purposes, I added the following code to onCreate function: AlertDialog.Builder adb=new AlertDialog.Builder(TabView.this); LayoutInflater adbInflater = LayoutInflater.from(TabView.this); View eulaLayout = adbInflater.inflate(R.layout.checkbox, null); dontShowAgain = (CheckBox)eulaLayout.findViewById(; adb.setView(eulaLayout); adb.setTitle(“Attention”); adb.setMessage(Html.fromHtml(“This version is going to be depricated… Continue reading Android AlertDialog with CheckBox