youth5201314 / Android-Debug-Database

A library for debugging android databases and shared preferences - Make Debugging Great Again

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Debug Database

Android Debug Database is a powerful library for debugging databases and shared preferences in Android applications.

Android Debug Database allows you to view databases and shared preferences directly in your browser in a very simple way.

How Android Debug Database helps?

  • When it comes to debugging database of an android application, it is very difficult to see what's happening inside database, it's make it too simple.
  • You can see all the data of shared preferences used in your application.
  • You can check the current value of any of the shared preferences.
  • You can run any sql query on the given database to update and delete your data.
  • You can directly edit the data of databases.
  • You can do search in your data.
  • You can sort data.
  • So this is a very simple tool to see your complete data in your browser.
  • Debugging Android Database was never easier than this.

Using Android Debug Database Library in your application

Add this in your build.gradle

debugCompile 'com.amitshekhar.android:debug-db:0.2.0'

Use debugCompile so that it will only compile in your debug build not in release apk.

That’s all, just start the application, you will be able to see logs in the logcat like below :

  • D/DebugDB: Open http://XXX.XXX.X.XXX:8080 in your browser

  • You can always get the address log from your code by calling the method DebugDB.getAddressLog();

Now open the provided link in your browser.

Important : Your Android phone and laptop should be connected to the same Wifi.

You will be able to see like below.

Found this project useful ❤️

  • Support by clicking the ⭐ button on the upper right of this page. ✌️

TODO

  • Edit shared preferences directly from your browser, at present, it is supported for database through query.
  • And of course many many features and bug fixes

Check out another awesome library for fast and simple networking in Android.

Contact - Let's become friend

License

   Copyright (C) 2016 Amit Shekhar
   Copyright (C) 2011 Android Open Source Project

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to Android Debug Database

Just make pull request. You are in!

About

A library for debugging android databases and shared preferences - Make Debugging Great Again

License:Apache License 2.0


Languages

Language:Java 79.1%Language:HTML 12.9%Language:JavaScript 7.7%Language:CSS 0.4%