### Editing values
+
### Working with emulator
-- Android Default Emulator: Run the command in the terminal - `adb forward tcp:8080 tcp:8080` and open http://localhost:8080
-- Genymotion Emulator: Enable bridge from configure virtual device (option available in genymotion)
+
+* Android Default Emulator: Run the command in the terminal - `adb forward tcp:8080 tcp:8080` and open http://localhost:8080
+* Genymotion Emulator: Enable bridge from configure virtual device (option available in genymotion)
### Getting address with toast, in case you missed the address log in logcat
+
As this library is auto-initialize, if you want to get the address log, add the following method and call (we have to do like this to avoid build error in release build as this library will not be included in the release build) using reflection.
+
```java
public static void showDebugDBAddressLogToast(Context context) {
if (BuildConfig.DEBUG) {
@@ -95,7 +139,9 @@ public static void showDebugDBAddressLogToast(Context context) {
```
### Adding custom database files
-As this library is auto-initialize, if you want to add custom database files, add the following method and call
+
+As this library is auto-initialize, if you want to debug custom database files, add the following method and call
+
```java
public static void setCustomDatabaseFiles(Context context) {
if (BuildConfig.DEBUG) {
@@ -103,11 +149,11 @@ public static void setCustomDatabaseFiles(Context context) {
Class> debugDB = Class.forName("com.amitshekhar.DebugDB");
Class[] argTypes = new Class[]{HashMap.class};
Method setCustomDatabaseFiles = debugDB.getMethod("setCustomDatabaseFiles", argTypes);
- HashMap+ These settings only affect how data is displayed in your browser. Clearing browser storage resets to defaults. +
+ +