I am currently working on media player. When I am clicking the next button (for the next song) a number of times my application hangs up.
How do I handle this behavior and keep my app from handing up?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Write better code? And if you want help with your code you need to do as other have mentioned and show us the code that is responsible for the crash, use the adb logcat to see which line makes your code crash.
You will possibly be causing exceptions – so catching the exception should allow you to handle the error.
If you are struggling to re-create a crash you could use a reporting library to notify you of crashes your users suffer from for example ACRA