I have an android activity which requires few audio resources to be present on the mobile storage and few parameters which are passed through the Intent object for starting the activity. The question is what is the best practice to check for the correctness of these parameters and the availability of the audio resources? Right now, I do that inside the onCreate() method of the activity and when a condition is not met, I finish()the activity and show a Toastmessage mentioning the problem. Is it advised to perform these checks before starting the activity. Is there any standard recommended practice that the designers suggest?
Android: Where to check availability of resources and correctness of parameters for starting an activity?
android;android development