How to Debug local databases and Preferences in Android?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ashish Bisht
    Banned
    New Member
    • Jul 2016
    • 13

    #1

    How to Debug local databases and Preferences in Android?

    Hi,
    I would like to know that "how to debug my database and shared preferences in an android application", which has become difficult to debug. I hope any tech developer help me in resolving this issue.
    Attached Files
    Last edited by Niheel; Jan 27 '17, 10:15 AM. Reason: link spamming findnerd
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    Usually you don't debug databases. That's the task of the database vendor before he sells it to you.
    If you use open source database, they are delivered with a bunch of JUnit-Tests. You can just run them. If there is a bug, you report that in a forum, or you are a professional programmer and can fix the bug yourself. In this case, you debug the code the same way as any other code: adding a JUnit-Tests that show the error and change the code until it is green again. Then submit the fix and JUnit-Test to the community.

    Comment

    Working...