Results 1 to 9 of 9
Discuss Insert calendar events at the iPhone Developer Exchange - Hackint0sh.org; Hello, I have a project that I am working. It is an iPhone app and ...
  1. #1
    Professional Array

    Join Date
    Sep 2007
    Posts
    55
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Insert calendar events

    Hello,

    I have a project that I am working. It is an iPhone app and there is an option where I need to insert events on the iPhone calendar.

    I can't find any info about it... Anyone have a clue?

    Thanks,

    c0h1b4



  2. #2
    Rookie Array

    Join Date
    May 2008
    Posts
    15
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    There is no "open" way of doing it, but it's all about accessing the Calendar.sqlitedb file and adding the appropriate info.
    But since this is kind of hacky, it'll work - until Apple changes the structure or methods used. So you'll have to cross your fingers on every OS update.

    If you're still interested, ssh into the phone, get the /private/var/mobile/Library/Calendar/Calendar.sqlitedb file. Add an event on the phone, get the updated database and compare them, to see how to do it. ..likewise try deleting events and check and so on.

    Good luck

  3. #3
    Professional Array

    Join Date
    Sep 2007
    Posts
    55
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thanks for the idea.

    I'll try this.

  4. #4
    Newbie Array

    Join Date
    Oct 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Kind of a complicated solution...

  5. #5
    Professional Array

    Join Date
    Oct 2008
    Location
    Egypt
    Posts
    89
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Good idea cOh1b4 keep on going man.
    You'll have to deal with enough patience to do so...
    Good luck on your project,and waiting to see it released ^^

    Hope i helped...


  6. #6
    Newbie Array

    Join Date
    Jul 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hi,

    I going to do something similar, except I want to use the framework somehow. Do you interested in discussing in private letter? I do.

    regards

  7. #7
    Professional Array

    Join Date
    Oct 2008
    Location
    Egypt
    Posts
    89
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    huh ??!!!
    Private letter?
    Man let your idea shine in the world...

    Hope i helped...

  8. #8
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    370
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    29

    Default

    The main problem you're going to have (as TheBrew mentions) is that you can't do this on the SDK. Basically the SDK does not allow you access to any files outside of your application directory.

    You can however still write this application 100% in the SDK. You will need to build the project then FTP the build file "YourApp.app" to the /Applications/ directory and finally run ldid to code sign it.

    This will then allow your code to access the calendar.sqlite file (in the location specified by TheBrew).

    I had a quick look at the database file and everything seems possible and straight forward. The database is fairly large and might take a while to fully understand but I suggest starting with the "Alarm" and "Event" tables.

    For testing purposes you're probably best placing a copy of the calendar.sqlite file in your SDK project and working directly on that instead of the actual calendar.sqlite file. This will cut out the need to constantly FTP and run ldid.

    Hope this makes sense.

  9. #9
    Newbie Array

    Join Date
    Feb 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hello all,
    I am try to get iphone caendar database file from /private/var/mobile/Library/Calendar/Calendar.sqlitedb. But this file is not exist at this path.
    So how can i get this file?

    Thank you..

 

 

Similar Threads

  1. Replies: 0
    Last Post: 06-27-2011, 09:00 PM
  2. MacNN: Sync'Em 1.24 adds nuanced calendar events
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 02-23-2009, 05:00 PM
  3. Replies: 0
    Last Post: 03-31-2008, 03:24 PM
  4. [Calendar] anyway to show events on lock screen?
    By asher_ungar in forum Free Toolchain Software (Cydia App's)
    Replies: 9
    Last Post: 03-23-2008, 07:25 PM
  5. google calendar sync with calendar app
    By hawaiipoolman in forum General
    Replies: 1
    Last Post: 10-31-2007, 05:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 01:29 PM.
twitter, follow us!