How to avoid Force Close Error in Android

How to avoid Force Close Error in Android