android_dbinspector alternatives and similar packages
Based on the "Utility" category.
Alternatively, view android_dbinspector alternatives based on common mentions on social networks and blogs.
-
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
ExpirableDiskLruCache
DISCONTINUED. Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
DISCONTINUED. Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
CastCompanionLibrary-android
DISCONTINUED. CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
Reservoir
DISCONTINUED. Android library to easily serialize and cache your objects to disk using key/value pairs.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of android_dbinspector or a related project?
README
DbInspector
[UI](ui.png)
DbInspector provides a simple way to view the contents of the in-app database for debugging purposes. There is no need to pull the database from a connected device. This library supports inspecting of the SQLite databases created by CouchBase Lite out of the box. With this library you can:
- preview all application sandbox databases
- import single or multiple databases at once
- search, delete, rename, copy, share a database
- preview tables, views and triggers
- preview table or view pragma
- delete table contents
- drop view or trigger
- search table, view or trigger
- sort table, view or trigger per column
- execute any valid SQL command in editor per database connection
Getting started
To include DbInspector in your project, you have to add buildscript dependencies in your project level build.gradle
or build.gradle.kts
:
Groovy
buildscript {
repositories {
mavenCentral()
}
}
KotlinDSL
buildscript {
repositories {
mavenCentral()
}
}
Then add the following dependencies in your app build.gradle
or build.gradle.kts
:
Groovy
debugImplementation "com.infinum.dbinspector:dbinspector:5.4.1"
releaseImplementation "com.infinum.dbinspector:dbinspector-no-op:5.4.1"
KotlinDSL
debugImplementation("com.infinum.dbinspector:dbinspector:5.4.1")
releaseImplementation("com.infinum.dbinspector:dbinspector-no-op:5.4.1")
Usage
DbInspector can be invoked explicitly or implicitly.
- explicitly - call DbInspector.show() anywhere and anytime that you see fit, like onClick methods, lambdas or similar.
- implicitly - when you add the dbinspector package an Activity alias is automatically merged into your application manifest that in return creates a launcher icon for DbInspector, but when you add the dbinspector-no-op the same Activity alias node is automatically removed from your application manifest. Implicit way can be tweaked to achieve desired behaviour as demonstrated in an example below.
Explicit
DbInspector.show()
Implicit If you use dbinspector package but do not want an additional automatic launcher icon merged in and generated.
<!--suppress AndroidDomInspection -->
<activity-alias
android:name="com.infinum.dbinspector.DbInspectorActivity"
tools:node="remove" />
If you use DbInspector for a specific flavor and need to override merged in launcher label, you can provide a String resource in your project exactly like this:
<string name="dbinspector_launcher_name">Sample Debug</string>
Please do mind and copy over the suppression comment line too, if you need it. Further modification can be done according to rules of manifest merging and attributes of activity-alias XML node.
Editor
[Editor](editor.png)
DbInspector has a build in editor scoped per database connection currently used.
It offers autocomplete of SQLite3 keywords and functions, current table and column names.
Built in editor also provides a history of executed statements, not matter if they were successful or not.
Hisotry of statements is persisted between sessions and can be cleared on demand at any point.
Panes between editors' input and result are scalable and can be adjusted by dragging the splitter between them.
Landscape mode is supported too for better result preview of large datasets.
Logging
DbInspector provides a independent and built in logger mechanism. Per default logger is initiated as an EmptyLogger
omitting any output whatsoever.
In case logs output is required, AndroidLogger
should be used as shown below:
DbInspector.show(logger = AndroidLogger())
Additionally, AndroidLogger
uses Level
to filter out between info, debug, error or no messages at all.
Requirements
Minimum required API level to use DbInspector is 21 known as Android 5.0, Lollipop. As of 4.0.0 version, AndroidX is required. If you cannot unfortunately migrate your project, keep the previous version until you get the opportunity to migrate to AndroidX. DbInspector is written entirely in Kotlin, but also works with Java only projects and all combinations of both.
License
Copyright 2020 Infinum
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.
Credits
Maintained and sponsored by Infinum.
*Note that all licence references and agreements mentioned in the android_dbinspector README section above
are relevant to that project's source code only.