amitshekhariitbhu / Android-Debug-Database

A library for debugging android databases and shared preferences - Make Debugging Great Again

Home Page:https://amitshekhar.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The log info is : D/DebugDB: Open http://0.0.0.0:8080 in your browser

lhlhlh111000 opened this issue · comments

what's worry with me, i can not open the database…

r u trying this with emulator ?

@lhlhlh111000 I need to fix the issue happening with emulator.

@lhlhlh111000 @amitshekhariitbhu I don't think we can control emulator IP address by code. but my simple solution for this is
In terminal
adb forward tcp:8080 tcp:8080

Open browser with http://localhost:8080

@vinayagasundar thanks for the info. Will try it soon

I am getting same problem. @amitshekhariitbhu

@vinayagasundar workaround works for me too, but please @amitshekhariitbhu try to fix it! Using the default Android Studio emulators is the default option while developing, and it's incredibly faster than using real devices. Plus, after API 23 is not possible to use the Android Device Monitor to pull the DB files from the emulator device, so your debugger is practically the only available tool we have to inspect app data!

@lorenzos sure sure... we will fix it in new release.

not open database in andriod device

I am getting it on Real device too.
Android version: 6.0
Android device model: XT1092

@Aexyn Your device was connected to wifi when you first started the app?

@amitshekhariitbhu No.. It is connected to desktop the whole time

Also it was unable to show the my database as I have a custom path where I store them

I work at android studio 3.0 canary 1
Same error:
05-24 12:44:14.270 14660-14660/...D/DebugDB: Open http://0.0.0.0:8080 in your browser
Can you help please.

@guyulmaz Checking the issue. @vinayagasundar any idea?

@amitshekhariitbhu @guyulmaz I'll check this and let you know.

@guyulmaz are you sure your system & device connected to the same Wifi Network
if you're emulator or using USB please refer here

@amitshekhariitbhu

@vinayagasundar
I'm using the emulator of android studio, the emulator is Nexus 5 api 24 (Android 7)

@guyulmaz okay please check the work around here

@vinayagasundar

\AppData\Local\Android\sdk\platform-tools>adb forward tcp:8080 tcp:8080
then
Open browser with http://localhost:8080

it works thanks

D/DebugDB: Open http://172.17.100.15:8081 in your browser
it is my Emulator ip,not my laptop ip, i could not open in my browser

I had the same issue. When switched back to WiFi network from my data connection everything worked. Good work.

It seems that this happens when the device is using a 3G/4G mobile internet, instead of WiFi. Suggestion: Perhaps the app could detect "0.0.0.0" as a probable error condition and change the message -- something like this:

D/DebugDB: Open http://0.0.0.0:8080 in your browser. Warning: This address may not work. Ensure your Android device is on the same WiFi network as your computer, then Force Quit and restart the app.

How about a small gradle plugin which would run adb forward tcp:8080 tcp:8080 automatically when running an app with the library in the classpath? I guess you could hook in to the install task or something.

@Kisty This is good suggestion.

@grandgrant which version of room database?

@lhlhlh111000 @amitshekhariitbhu I don't think we can control emulator IP address by code. but my simple solution for this is
In terminal
adb forward tcp:8080 tcp:8080

Open browser with http://localhost:8080

This tip works for me, just reminding that:
For real smartphone, http://0.0.0.0:8080 works on Mac OS, while http://localhost:8080 works on Win OS.
Thanks :)

I had the same issue. But looking up the tablets IP and trying with that still worked.

Turn on your Wifi