@@ -35,7 +35,9 @@ That’s all, just start the application, you will see in the logcat an entry li
3535
3636Now open the provided link in your browser.
3737
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 `
3941
4042Note : If you want use different port other than 8080.
4143 In the app build.gradle file under buildTypes do the following change
@@ -57,6 +59,23 @@ You will see something like this :
5759- Android Default Emulator: run ` adb forward tcp:8080 tcp:8080 ` and open http://localhost:8080
5860- Genymotion Emulator: Enable bridge from configure virtual device (option available in genymotion)
5961
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+
6079### Find this project useful ? :heart :
6180* Support it by clicking the :star : button on the upper right of this page. :v :
6281
0 commit comments