INSERT INTO sms.db?

Discussion in 'iOS Development' started by stivi, Oct 7, 2008.

  1. stivi

    stivi New Member

    Joined:
    Sep 30, 2008
    Messages:
    3
    Likes Received:
    0
    Hi

    I made an SMS application (www.xtra-sender.ch.vu) and I've planned to implement a feature to insert the written message into the SMS.db.

    Could someone please give me a little input how to do that?

    Which values do I have to use? (INSERT INTO message VALUES (....))
    And do I only have to insert the sms into the message-table of SMS.db?

    Thanks for help!
  2. bones237

    bones237 New Member

    Joined:
    Feb 17, 2008
    Messages:
    101
    Likes Received:
    7
    Device:
    iPhone 3G (White)
    If you're looking to insert stuff into the initial database table, I don't think you can do that. I believe there is a feature in the FW where if the default database is altered, it will not run. (not 100% sure, tho) I believe you would have to insert it using command line. (like when you first create db).
    If your not looking to change the default db but instead add entries to db during the run of the application, check out the SQLiteBooks.app in the apple dev center. Should be what ur looking for. It's quite a bit of code to get that stuff working

Share This Page