Using the camera and the iPhone simulator

I have tried this with the simulator:
isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera
and it always returns: NO.
This implies that it is not possible at the moment to use the camera in the iPhone simulator. Am I correct in this?
Note: In Java Mobile Edition, the mobile phone simulator gives simulated images and video to test camera functionality.

To record video, you must first check that the camera source type (UIImagePickerControllerSourceTypeCamera) is available and that the movie media type (kUTTypeMovie) is available for the camera.
The code I added below:
if (UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera) {
But I traced the code and found that the if condition returns false. Does that mean I should run the app on the device not on simulator?

Similar Messages

  • How to copy videos from iPhone to iPhone? The videos are in QT format and were taken using the iPhone camera.

    How to copy videos from iPhone to iPhone? The videos are in QT format and were taken using the iPhone camera.Help me, anyone? Thanks in advance.

    Just to add.....I created a folder on my PC to store all videos taken from my iPhone and my wife's iPhone.
    I just cannot sync those videos taken using my wife's iPhone to my iPhone.

  • When using the iphone 6 Plus. I use iMessage it is terribly slow to attach photo or take a photo the app does not show camera and slow... like 2 mins at least.

    When using the iphone 6 Plus. I use iMessage and then attach a photo or take a photo... the app does not show the camera fully or even to attach a photo does not work. I have about 8-9000 phones and like 10 short videos in there but it is incredibly slow and almost unable. I have the 128GB iPhone 6 Plus with 46 gb still available. I think this should not be so slow with so much memory still available. Please help. I am using 8.1.2. Yes I have set up the phone as a new phone. Apple store even reformatted this iphone 6 plus 2 months ago but it is still terribly slow Thanks

    Hey Bender1031,
    Thanks for the question, I can definitely understand how frustrating this issue may be with a brand new phone. Great troubleshooting so far by already attempting a restart and reset. If the issue persists, let’s try restoring your device and updating to the latest software (iOS 8.0.2):
    Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/HT4137
    After erasing and setting up as a new device, your device is now in a factory configuration. Test to determine if erasing and setting up as a new device resolved the issue. Content on the device may have caused unexpected behavior.
    - If the issue is still present, you may want to contact Apple Support.
    - If the issue is now resolved, sync one type of content at a time back to the device. For example, if you had an issue playing music, add songs from iTunes and confirm they will play. If your contacts weren't loading successfully, add the contacts back. After each sync, test to see if the issue has returned.
    Thanks,
    Matt M.

  • I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

  • Can I use The iPhone (5s) or iPad (air 2 or mini 3) like a webcam? If not, which one a compatible camera? please, a good one but no expensive?

    Can I use The iPhone (5s) or iPad (air 2 or mini 3) like a webcam? If not, which one a compatible camera? please, a good one but no expensive...

    You can get apps for a Mac (and the iPs device) that allows you to use the iOS device as a webcam.
    For a dedicated webcam:
    http://www.mac-compatible-web-cam.com/

  • Using the iphone to view a video recorded on a separate high speed camera

    I use a high speed video camera to film athletic motion. Can I play this back on my iphone? The files are in avi format and would I require any adaptors. Thanks, I am very new to using the iphone.

    Does anyone know what settings I should use to export a 1080p video for playback on iPhone4? I'm hoping to use the iPhone4 to playback 1080p video on 1080p monitor. Is this possible?
    No. Only the iPhone 4S, iPad3, and TV3 currently support 1080p30 content. Even then the 1080p30 playback support for your monitor may depend on how the device is connected. The iPhone 4 is limited to 720p30 playback.
    Is it possible to keep the higher quality for playback through a 1920x1080 hd monitor?  Otherwise, would I be able to sync a 1920x1080 mov file to a new iPad or other device?
    Not on your current device. As previously stated, the latest generation of iPhone, iPad, and TV devices support a maximum 1080p30 playback capability but may be limited to lower resdolutions depending on your method of connection to your monitor. This information can be found on the Apple web site TechSpecs page for each respective device.

  • When I use the iPhone 5 camera zoom in, the picture takes of a lower image than what is on the screen? Anyone else?

    When I use the iPhone 5 camera and I zoom in, the picture takes of a lower image than what is on the screen? Anyone else?

    You mean like they do in the TV crime show shows like CSI?  A cell phone screen from 20 feet is going to be way too small to make any sense of. 

  • I lost my phone and use the IPHone locater, Now that i got my phone back it is disabled and I don't know how to fix it. It had asked for a code but I have no idea what it is so I tried several things but to no avail

    I lost my phone and used the iphone locater to find it. Now that it has been returned to me, it is disabled and says connect to ITUNES. Can you help me ?

    Does the link below help?
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support

  • I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.

    I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.but the result was same. now what can i do??

    BobbyLe wrote:
    I could not follow the AT&T instruction because my network (Optus) doesn't have anything as username or password or dial-up phone number. The only parameter I needed to key into Mobilink (the software I am running on the S10 is the APN which is:    connectme    that's it no number, no PIN, no password, nothing else.
    How do I tell Windows to do that?
    *99***1#  <--- the number to call
    at+cgdcont=1,"ip","connectme"  <----- the  string to put in the advanced field of the modem

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    If you are missing using google maps - try the Nokia map app called "here"

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • Is there any way to enable rSAP, use the iPhone as a modem, create sms folders, and show the day's calender on the home screen?

    Hi folks
    Had iPhone for a while and generally happy, but it seems I still need to keep my old nokia E72 because I cannot seem to use the iPhone as a modem, nor does it support rSAP.
    Also, while I like the threaded sms view, I'd also like the option to create sms folders to stash away my banking sms info, all of which comes from different numbers, and filled the sms inbox with hundreds of messages.
    Lastly, having the meeting for the day diplayed somewhere on the home screen would be great if there were a way to do it. Yes, I can go into calender easy enough, but unless I develop the habit of checking it all the time, I often forget about a meeting whereas on the old nokia, it was always displayed.
    What gives with the lack of flash support? Maybe ol Steve dislikes adobe, but it seems like a serious lack to me. Even the old nokia has some flash support.
    Given that, I must say I love the seperate calenders and contacts. It's great to be able to keep home contacts seperate from work ones, but still have them on the same phone. Email is great two - full html support seems like a given but it works really well.

    rSAP has largely been supplanted by ABAP, which the iPhone supports. Most modern smartphones, including the iPhone do NOT store any information on the SIM.
    SMS inboxes. Not much to say. I've never had a desire to do this. I understand it could be useful, but it's unlikely to change.
    As for meetings on the home screen... Wait for iOS 5
    Flash: it's not JUST that Steve doesn't like flash. Adobe has failed to produce a workable version of Flash for iOS. Blame has to go to both sides.  I say good riddance to it.

  • I restore my iPhone 4S on iTunes and then when restarted it is asking for valid SIM card and I don't have SIM card for that, I was just using the iPhone with wifi, any one can help? Please.

    I restore my iPhone 4S on iTunes after the restore was completed the iPhone was restarted and now asking for valid SIM card which I didn't,t have and I was using the iPhone with wifi, and now can't use it because the screen is locked for SIM card. Can anyone help me please.
    Thanks,
    David

    wjosten wrote:
    Phil0124 wrote:
    I doubt the phone is locked to GCI in any way
    Well, you're wrong, & in fact not only is it locked, GCI does not offer unlocking for iPhones.
    Fact is your post won't help the OP.
    And you are 100% sure its locked to them? How can you know this? While GCI does not offer unlocking that does not mean the phone is actually locked to it. Get off your high horse.
    Its possible the original owner had an unlocked phone. he was using with GCI. Or that GCI doesn't actually have locked phones. Seeing as they don't even have their own infrastructure but instead use AT&T's I doubt they'd have iPhones specifically locked to them and that would be the reason they do not offer unlocking (because there's nothing for them to unlock). And just to clarify, I'm not saying for a fact its not locked to them. It very well maybe be, but without knowing more about the phone and going by the fact GCI uses AT&T infrastrucure its possible its not locked. But here's no way to say for sure either way.
    Trying a Sim card from AT&T or another carrier might just help the OP if its actually unlocked or locked to AT&T rather than GCI.

  • I have an iphone 4. I disconnected it from my iTunes account but I am still using the iphone and the Apple ID. If I make a purchase will it work? Also, how can I reconnect my iphone to my Apple ID?

    I have an iphone 4.
    I disconnected it from my iTunes account but I am still using the iphone and the Apple ID.
    If I make a purchase will it work?
    Also, how can I reconnect my iphone to my Apple ID?

    Do you mean that you removed the phone from the 'manage devices' section of your iTunes account ? If you do then that won't stop you being able to purchase items on your phone - you only need to be logged into an account to be able to purchase with it.
    If you do mean the 'manage devices' section then you can associate, or re-associate, a device (or computer) by using iTunes Match, or automatic downloads, or redownloading past purchases on it : http://support.apple.com/kb/HT4627

  • I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    If you are saying that you both have iCloud accounts and use the same icloud ID, then yes, the contacts will be deleted.  The idea is that all devices using the same icloud ID are kept in sync.  You need to use different IDs.  You can keep the same iTunes ID so you can share the songs and apps.  But use different icloud IDs.

Maybe you are looking for