Sending files to iPad question

Discussion in 'iOS Programming' started by Mac1999, Jan 25, 2012.

  1. Mac1999 macrumors newbie

    Joined:
    Jan 25, 2012
    #1
    Hi i have a question, can i send files to an application (lets say i write it) on the iPad, and then all the files i send that application, can they be opened by other apps from within iPad? or they are and will forever be visible only to my app?
     
  2. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #2
    It doesn't seem like you'd be capable of pulling off step one, by the sounds of it. I wouldn't worry about it.
     
  3. Mac1999 thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #3
    So i can't create an iPad app, and then send files to it from Computer, and let other apps on the iPad open those files? The files would be doc, pdf's, etc...


     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
  5. Mac1999 thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #5
    Ok thanks, i read it, so that sandbox totally excludes other apps from getting to the DOC folder of my app. Is there any way around this? Isn't there a public folder on the iPad?

     
  6. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #6
    You can control what file types your app opens and saves.

    If you save a file in a format another will open, it may be possible. You could email the file from your app to your device, the open the file via mail in any app that supports it... A more direct path is probably possible, as well, but email is what I've used for inter-app file exchanges in my own apps.
     
  7. Mac1999 thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #7
    Don't they at least have a publish list, where your app can publish things it can share with other apps?


    I want my iPad app to be a conduit for all types of files that can be uploaded(pdf, doc, etc..) to the iPad and then the User can pick which App to open the files with.





    ----------

    hmmm can i go around this problem and launch other apps from my own app? Would that allow them to see my sandbox?
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  9. Mac1999 thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #9
    Isn't iCloud just the extension of the physical sandbox on the device? So basically i would still have files on the cloud with a sandbox restriction.

     
  10. jonnymo5 macrumors 6502

    Joined:
    Jan 21, 2008
    Location:
    Texas
    #10
    If your app is capable of opening specific types of files, you should register that support with the system. This allows other apps, through the iOS document interaction technology, to offer the user the option to hand off those files to your app.

    http://developer.apple.com/library/...s/RegisteringtheFileTypesYourAppSupports.html

    So this will put you in the list when certain apps try to open files. You should appear automatically in the email app. Other developer apps would have to check for this list and give the user the option. It is a good place to start and see if it meets your needs.
     
  11. Mac1999 thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #11
    So you are saying that files i upload from PC to my own iPad application, can be viewed/worked on in other Apps if i launch them from my own App?



     
  12. jonnymo5 macrumors 6502

    Joined:
    Jan 21, 2008
    Location:
    Texas
    #12
    If the other application has registered to open those files.

    Mail is a great example of this. If you have a PDF as an email attachment open it and you will see the little arrow button in the right nav bar spot. Tap that and you will get some choices where to open it. If you have Quickoffice, Evernote, Kindle those apps should appear in that list. Those apps register to handle that file type.

    That will give you an idea how it all works.
     

Share This Page