iPhone-SDK:Questions about iPhone RingTone and Video access: - iphone

I have two questions here.
1.) Is it possible to access ring tones/put our custom ring tones programmatically using our client app in iPhone? Does the latest SDK support?
2.) A client iPhone app - Is it possible to download a Video file from server and put into iPhone device any of the folder (or) Video folder?
Please reply if you know the details...
Clave/

You can't currently access
user-installed ringtones, or the
default system sounds.
Your application only has access to
its own "sandbox" of directories,
which includes folders for
Documents, Library/Preferences, tmp,
and the application bundle itself.
If your app downloads a video, it
cannot place it in the
iTunes-managed video library (ie,
you can't make it appear in the
"Videos" application for iPod touch
or the "iPod" application on an
iPhone).

Related

Bluetooth share an mp3 file between iOS when only one phone has the app?

I am building an iOS app to match an android app that can send a raw mp3 file from an app to another phone that does not have the app. The file is store in the file structure.
I'd like to know if using GameKit or some other method will get me close to that. I need to send mp3 files such that the receiving iPhone does not need to have the app to store them in their iPod app.
Is this possible on iPhone? Or do I need to have both phones with the app installed?
Cheers
The Apple iPhone does not support receiving files via Bluetooth. Because of that it is not possible to receive file without an app. Also if you want to save the MP3 to device library, this is not possible too since you only have read access to the library.
But if you want to share files without using a client app you may upload the files to an HTTP based file sharing service and then you only need the URL at the client device.

Can an iphone app add music to itunes?

Is it possible for an iphone app to directly add content to itunes, either directly on the phone, or by automatically (i.e. no user actions required) syncing when the iphone is connected to a computer?
If not, what is the fall back? One suggestion what was made to me is that the user can drag and drop files from the apps' Documents folder into the Music folder.
Thanks
Unfortunately, there's no way to do that without using private APIs. I'd enable UIFileSharing and let the user email the audio file, so they may add it manually.

Transfer file from Mac/PC to iPhone App Document folder

I want to transfer file from system (mac/Pc), which is present on my iPhone wifi network, to the document folder of my iPhone App.The scenario of my App is this, it will browse the system which are present in it's network. select any file(such as .pdf or ,docx) from that system(mac/Pc), copy it into the document folder of the APP and than use it with in the APP.During my search i come across the link iPhone : Transfer of files from Mac/Pc to app i have not found the detail instruction document, how to use it. Is Apple support any API or farm work to do this ? Please guide me
This is called iTunes file sharing. In the most simple way, you simply set the UIFileSharingEnabled key in your Info.plist file to YES. See for example this tutorial.
Rewriting itunes is not a simple task but I recommend you a clever and easier solution:
Implement a simple webserver on your iOS app. Write a windows application which will connect to your iOS app through wifi network. Then transfer the necessary files this way: you will send a file to you app, then your app should save it in documents directory.

iPhone "Share" button

Is there anything like the Android's "Share" button in iPhone?
I am just starting out in iOS development and do not have an iPhone (yet). The idea is to be able to select documents or images saved on the phone and use them in my app. I realize there is an ImagePickerController but that is not what I am looking for. I am also not looking for a third party component, rather something integrated into the OS similar to Android.
Short answer: No.
You can register your app to handle certain file types, and files of those types can then be opened by your app via UIActionSheets that may appear, for example, when you tap and hold on a file in an email. You can also transfer files to your app via iTunes. There's no 'file explorer' type feature in iOS where you can pull up a view of files saved to your phone.
For images, as you mentioned already, you must use UIImagePickerController.
From documentation
Sharing Files with the User
Applications that want to make user data files accessible can do so using application file sharing. File sharing enables the application to expose the contents of its /Documents directory to the user through iTunes. The user can then move files back and forth between the device and a desktop computer. This feature does not allow your application to share files with other applications on the same device, though. To share data and files between applications, you must the pasteboard or a document interaction controller object.
You can read more here:
https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/StandardBehaviors/StandardBehaviors.html%23//apple_ref/doc/uid/TP40007072-CH4-SW7

iphone project resources available in itunes of user

In my iphone project i have a set of 20 mp3 audio files in it.now the whole project is working fine.
but client has come up with a problem that whenever he installs the app file ,the mp3 files get added to the itunes list..
this should not occur as these should be bought only by inapp purchase...
I had added all mp3 files into the xcode app bundle itself.(by dragging into the resources folder)
Should anything else be done so that mp3 files stay in app itself?
If I understand you right, you have 20 .mp3 files in your app bundle, which can be unlocked by inApp purchase? This is far to easy to crack, as one can just look into the bundle and extract the files, as a bundle is basically a folder.
I can't post a complete solution, but consider encrypting the files and set up a web service, which delivers a token to unlock the files after being purchased via inApp purchase.
Well they should not end up in the MP3 List op iTunes.
Does this happen when the client drags the .app folder into iTunes on windows, if so I could imagine that windows does not recognizes the app and just add the mp3 to his iTunes library.
You could try a service like TestFlight for ad-hoc builds.