Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. SQLITE database. How do I get it back to PC from phone?

SQLITE database. How do I get it back to PC from phone?

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hungchuviet
    wrote on last edited by
    #1

    I have a database, that contains manys data on my phone. I want to bring this databse to my PC. But I don't know where is it, (I've search it's name on phone. but not found).
    Can you help me?
    Thanks you very much!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      danilocesar
      wrote on last edited by
      #2

      Symbian or Maemo?

      How you're calling db.setDatabaseName()?
      Are you passing the absolute path?

      If not, and it's symbian, it stays in a private folder, AFAIR.

      Anyway, you can use "QDesktopServices":http://doc.trolltech.com/4.6/qdesktopservices.html to store your database in the correct places.

      <a href="http://www.danilocesar.com">Danilo Cesar Lemes de Paula</a>
      Software Engineer

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lyuts
        wrote on last edited by
        #3

        [quote author="danilocesar" date="1288758472"]
        How you're calling db.setDatabaseName()?
        Are you passing the absolute path?
        [/quote]

        AFAIK sqlite doesn't handle network connections. So the problem appeared is to transfer data from sqlite db on device to sqlite db on PC.

        I'm a rebel in the S.D.G.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          danilocesar
          wrote on last edited by
          #4

          [quote author="lyuts" date="1288768975"]
          AFAIK sqlite doesn't handle network connections. So the problem appeared is to transfer data from sqlite db on device to sqlite db on PC.[/quote]

          The guy is trying to recover the raw .db file and doesn't know where his apps is saving it. eg.: It can be solved by, inside his app, calling db.setDatabaseName("E:/something.db"), which is the SD card. (it's just for explanation, I'm not mentioning the fact that this will expose the .db to other apps)

          <a href="http://www.danilocesar.com">Danilo Cesar Lemes de Paula</a>
          Software Engineer

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lyuts
            wrote on last edited by
            #5

            [quote author="danilocesar" date="1288780653"]
            I can't find the place where I mentioned "network" on my preview post. ;)
            [/quote]

            Yes, you didn't write it literally, but you asked the OP how he was calling setDatabaseName() function. What I wanted to say in my post is that in my opinion the way it is called doesn't matter in his case, because it looks like the OP wanted to connect to remote sqlite db. At least this is how I saw it when I read "I have a database, that contains manys data on my phone. I want to bring this databse to my PC.". My apologies if I offended you.

            I'm a rebel in the S.D.G.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lyuts
              wrote on last edited by
              #6

              Now I see that I misunderstood the original problem. So please skip my posts in order to avoid confusion.

              I'm a rebel in the S.D.G.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved