5

I am Using SQLite database in my Android App. I want to See the database in my chrome or Firefox browser .

To See the Database , normally i Open Logcat in android Studio and select verbose and write http in serach box then it provides me a Link to Open Database in my browser

Like : D/DebugDB: Open http://192.168.2.116:8083 in your browser

But in my new project it is not showing the link . What should i do?

6
  • Anybody knows about this? Dec 19, 2018 at 6:10
  • use stetho library.
    – Jay Dangar
    Dec 19, 2018 at 6:14
  • for this you have to install firefox sqlite manager plugin in firefox browser and open your android db file in this.
    – unzila
    Dec 19, 2018 at 6:14
  • refer this link : c-sharpcorner.com/UploadFile/e14021/…
    – user4571931
    Dec 19, 2018 at 6:16
  • @Android Team thanks , i already checked that , but problem is there is no database file available . Normally i open logcat then select verbose then write http in searcch box then it will provide me a link to open database in my browser but it not working in my new project , do u know abt that? Dec 19, 2018 at 6:24

3 Answers 3

3

There are multiple libs to achieve this

  1. Android-Debug-Database
  2. stetho

please refer link for initialization in your app

2
  • thanks a lot this is exactly the Answer i am looking for . Dec 19, 2018 at 6:59
  • welcome , please give an upvote on my questions because i got banned from asking more questions and i don't see why my questions are not relavent . @Basi Jan 2, 2019 at 7:36
1

you need to use Stetho library, which will show you your db via ur browser. you can track network request as well. see this here -> Stetho

5
  • @JayDanger thanks not the answer i am looking for but this helped too . it is working . Dec 19, 2018 at 6:54
  • how does this is not your answer? i mean other than seeing your sqlite db what do you want? this will even work wirelessly as well.
    – Jay Dangar
    Dec 19, 2018 at 6:54
  • yes i said this helped too . and it is working for me . i wanted to see like "Basi" answered but thanks this is Good too . Dec 19, 2018 at 7:02
  • pleasure @JayDangar Dec 19, 2018 at 7:04
  • Please give and upvote because i got banned from asking new questions and i don't se how my questions are irrelevant @Jay Dec 31, 2018 at 6:12
0

You can get the db from

View -> Tools Window -> Device File Explorer

enter image description here

Save this...

Install this and open the file

4
  • Thanks , i checked but there is no database file for me . should i have to set the location or it is bydefault? Dec 19, 2018 at 6:21
  • No need. are you sure the db is created.
    – DKV
    Dec 19, 2018 at 6:22
  • @DVK yes i am fetching the records in list and all the records are available , i want to see it in my chrome / firefox browser . Normally i open logcat then select verbose then write http in searcch box then it will provide me a link to open database in my browser but it not working in my new project , do u know abt that? Dec 19, 2018 at 6:26
  • I usually do the above method.
    – DKV
    Dec 19, 2018 at 6:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.