SQLiteConstraintException cause stopping Activity. How can I avoid it?
<p>I have an application which can insert records into a table. The table has a primary key. (licensePlace). I get a SQLiteConstraintException when I try to insert a record whose licensePlace is already exist in the database.</p>

<p>I want to handle this exception in the following way:
In this case the user should get an alertDialog and inform him that the licensePlace is not correct.</p>

<p>My problem is that SQLiteConstraintException cause stopping the Activity and I don't know how can I avoid this.</p>
