Lecture 22: Android SQLite Database PART 2:Debug and remove runtime exceptions from the database app

preview_player
Показать описание
Lecture 22: Android SQLite Database PART 2: Debug and remove runtime exceptions from the database app
When building Android apps, your app is bound to crash from time to time or exhibit strange unexpected behavior. You know you have experienced a runtime exception when you see Unexceptionally app is terminated, in your emulator or device.
In addition, you'll often find yourself in the role of a coding investigator in order to understand where and why an app is crashing or not working as expected.
Debugging Procedure

When you see your app crash and close, the basic steps for diagnosing and resolving this are outlined below:

Find the final exception stack trace within the Android Monitor (logcat)
Identify the exception type, message, and file with line number
Open the file within your app and find the line number
Look at the exception type and message to diagnose the problem
If the problem is not familiar, google around searching for answers
Make fixes based on the proposed solutions and re-run the app
Repeat until the crash no longer occurs
Prof. A. M. Jagtap
MTech, CSE
Рекомендации по теме
join shbcf.ru