@@ -35,7 +35,9 @@ That’s all, just start the application, you will see in the logcat an entry li
35
35
36
36
Now open the provided link in your browser.
37
37
38
- Important : Your Android phone and laptop should be connected to the same Network (Wifi or LAN).
38
+ Important:
39
+ - Your Android phone and laptop should be connected to the same Network (Wifi or LAN).
40
+ - If you are using it over usb, run ` adb forward tcp:8080 tcp:8080 `
39
41
40
42
Note : If you want use different port other than 8080.
41
43
In the app build.gradle file under buildTypes do the following change
@@ -57,6 +59,23 @@ You will see something like this :
57
59
- Android Default Emulator: run ` adb forward tcp:8080 tcp:8080 ` and open http://localhost:8080
58
60
- Genymotion Emulator: Enable bridge from configure virtual device (option available in genymotion)
59
61
62
+ ### Getting address With toast, in case you missed the address log in logcat
63
+ As this library is auto-initialize, if you want to get the address log, add the following method and call
64
+ ``` java
65
+ public static void showDebugDBAddressLogToast(Context context) {
66
+ if (BuildConfig . DEBUG ) {
67
+ try {
68
+ Class<?> debugDB = Class . forName(" com.amitshekhar.DebugDB" );
69
+ Method getAddressLog = debugDB. getMethod(" getAddressLog" );
70
+ Object value = getAddressLog. invoke(null );
71
+ Toast . makeText(context, (String ) value, Toast . LENGTH_LONG ). show();
72
+ } catch (Exception ignore) {
73
+
74
+ }
75
+ }
76
+ }
77
+ ```
78
+
60
79
### Find this project useful ? :heart :
61
80
* Support it by clicking the :star : button on the upper right of this page. :v :
62
81
0 commit comments