Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mac1999

macrumors newbie
Original poster
Jan 25, 2012
6
0
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?
 
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...


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.
 
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.
 
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.



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.


----------

hmmm can i go around this problem and launch other apps from my own app? Would that allow them to see my sandbox?
 
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.

Perhaps iCloud holds the solution you seek.
 
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.
 
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?



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.
 
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?

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.