Code Monkey home page Code Monkey logo

android_dbinspector's Introduction

Android DbInspector

Maven Central

Provides a simple way to view the contents of the in-app database for debugging purposes. No need to pull the database from a rooted phone.

Screenshots

Usage

Add the library as a dependency to your build.gradle

debugCompile 'im.dino:dbinspector:(insert latest version)@aar'

Check the latest version on Maven Central.

Declare DbInspectorActivity in your debug manifest (src/debug/AndroidManifest.xml)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <application>
        <activity
            android:name="im.dino.dbinspector.activities.DbInspectorActivity"
            android:label="Example DbInspector"
            android:theme="@android:style/Theme.Holo.Light.DarkActionBar"
            android:icon="@drawable/ic_launcher_dbinspector">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

Now you have a launcher icon for viewing you in-app database which appears only on debug builds.

You could also omit the <intent-filter /> and open the activity programmatically by calling startActivity(). Feel free to use it however it suits you as long as you comply with the license.

Support

DbInspector needs minSdk 14 to run, but it declares minSdk 7 so you can include it in your project which may support pre-ICS devices.

Note

By default, when you run the app from Android Studio it may launch DbInspectorActivity instead of your launcher activity. You can override this behaviour by editing the run configurations, at the top next to the run button and selecting your apps entry activity.

Contributing

Feedback and code contributions are very much welcome. Just make a pull request with a short description of your changes. By making contributions to this project you give permission for your code to be used under the same license.

Flattr this git repo

android_dbinspector's People

Contributors

bclymer avatar reisub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.