Listing 15.10 Formatting error

Listing 15.10 Using a chooser (CrimeFragment.java)

I believe the code for the Intent.createChooser(…) and startActivity(i) should be indented.

You are correct. Thank you for pointing this out.

can you explain this more? I followed the book code accurately however I am getting the report (the whole getCrimeReport()) text as the chooser title when I should be getting “Send crime report via” (R.string.send_report)