Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

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

    Mobile and Embedded
    3
    6
    3231
    Loading More Posts
    • 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
      hungchuviet last edited by

      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 Reply Quote 0
      • D
        danilocesar last edited by

        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 Reply Quote 0
        • L
          lyuts last edited by

          [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 Reply Quote 0
          • D
            danilocesar last edited by

            [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 Reply Quote 0
            • L
              lyuts last edited by

              [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 Reply Quote 0
              • L
                lyuts last edited by

                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 Reply Quote 0
                • First post
                  Last post