Programmatically take screenshot and allow user to email it! [iPhone]

I would like to allow the user to capture a screenshot and email the image to somebody from within my iPhone application. The app allows the user to draw stuff. When finished the user should be able to email the drawing (as e.g. a png file) to anybody (preferably using the same way as emailing photos from the built-in Photo app does it).
Any hints where to start?

The screen capture part is easy. Launching mail.app with an image attachment is not. Based on past threads here, no one has figured out how to open mail.app with an attachment.
As for the screen capture, I posted code here a while ago with the code to do that. The thread is here:
http://discussions.apple.com/thread.jspa?messageID=7983518&#7983518
Pass your main window to this code.

Similar Messages

  • Take screenshot and saves the image to a PNG file

    Hello,
    How can I take screenshot and save the image to a PNG file?
    thanks,
    Avivit.
    Solved!
    Go to Solution.

    this is a quite reproducible problem. Some more clarification on my part might help:
    I have a loop that contains, among other this, (1) a sub-VI that prints-screen and saves as a png and (2) a sub-VI that emails me the png file as an attachment. The 1st sub-VI simply uses the user32.dll to simulate a print-screen key stroke, calls clipbpard get image, and then formats and saves the image to a png file using the built-in VI write-to-png. This loop should update this same png file, because the path does not change. However, I've noticed that while the loop is running the png file does not update. It simply keeps sending the 1st image it took. The image updates if the VI stops and is run again. I assumed the problem was either with the clipboard not updating or the file not writing.
    I think the png file remains open while the main VI (i.e. this loop) runs because I cannot delete the file while the VI is running, only once it stops or is quit. Windows gives me an error that the file is currently in use by labview. Therefore, I think the file is not updated because it remains open.
    I've attached the print screen VI. Feel free to stick it in a loop and give it a try if you don't spot something obviously wrong. I did not include the main-VI that I actually use since it contains a lot of instrument I/O, which would prevent someone testing the VI.
    Attachments:
    PrintScreen.vi ‏18 KB

  • Recording video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http.

    As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?
    What I am trying to do, is to record a user's microphone's input and save it to the server. Afterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?
    How can I redirect the http request to the files I was recorded into my applications/appName folder? Or I need to somehow moved the recorded files to the /webroot folder?
    Thanks!

    I probably have asked a stupid question.
    My recorded streams are still saved in the applications/appName/streams folder.
    And I redirect the www.mydomain.com/streams to point to the applications/appName/streams folder.
    And the rmtp recorded streams are abled to connect through http now.

  • Are you allowed to take screenshots and publish them

    Hi guys
    I don't really know where to post this question so I hope the right person sees this.
    My question is: Am I allowed to take screenshots of Oracle and publish it in how-to manuals. I've learned a lot from the forums and document everything for myself so I can refer back to it, but I don't know if I'm allowed to publish those documents on a forum.
    This relates to R12 apps installation which is available on 30 day trial.
    (I probably have more winXP screenshots currently than Oracle ones :-/ )

    Absolutely.

  • Copy select value in the textfield from LOV and allow user to edit it

    Hi,
    I have a datablock with 20 records and each record has comments (say field_comments) fields. I would like to allow user to choose predefined comments populated from LOV (say lov_comments) and to append some extra comments after they choose the value from LOV.
    I have created a LOV and added Return type “field_comments” in the column mapping properties. When user clicks on a button, LOV opens up. They select the value from the LOV and the value goes to “field_comment” field. The problem with this approach, user can’t add their comment after selecting from LOV.
    I tried this way too. I created another non-visible textbox (say dummy). In the LOV, I added “dummy” field as returntype. In the dummy field, I have created “POST-CHANGE” trigger which basically says :block. field_comments = :block. Dummy.
    But, the user has to click on other field to view the selected value from the LOV. The values in the “field_comments” is not updated as soon as user click on “OK” button in the LOV.
    I would appreciate it if somebody could give me some input and help to solve my issue. Thank you for your help.
    Thank.

    Well, I tried exactly what you posted and it allowed me to SELECT from LOV and then CHANGE/APPEND new text in front of returned value in the field. It saved to the database and queried without any problems.
    Is your item allowed to INSERT/UPDATE ? If not, then set "Update/Insert Allowed" properties to Yes and attach your LOV to the item and set "Validate from list" to No.
    You may also see if you have any validation being performed on WHEN-VALIDATE-ITEM or POST-CHANGE trigger which will fail since you are editing the values populated from LOV.
    Hope it helps!

  • How to disable copy and paste in a field and allowing user to key in the data in that field...

    Hi all,
           I need your help on the below scenario.
    I have to stop user to copy and paste the data into the field. But allowing user to enter the data in that field.
    Please suggest.
    Thanks and Regards,
    Thiru.

    Hi thiru
    It sounds like you want a to write a PJC component to extend a forms text item that will capture and eliminate the key strokes and mouse actions used to copy and past thus preventing a user from performing this action.  There are many examples on the interent of how this can be written e.g. the Oracle Forms PJCs/Java Beans web site.   You will need to have jdeveloper to write thise bit of code.  Oracle forms also has a tutorial on how to plug the JAR file you generate into your for sessions.
    Regards
    Quintin

  • ISE and AD Password Expiration Notification and allow user to change

    We are almost ready to go live with ISE for our VPN users.
    One last thing that has been asked is, how can we make ISE prompt a user when their AD password is about to expire, and allow them the opportunity to change it at that time?
    I know the ASA has the ability if it is authenticating directly against AD, but that functionality goes away with IPN. So what settings are there to prompt users connecting via Anyconnect to the ASA VPN through ISE?
    We do not have ISE setup for internal users/systems yet, this is strictly a VPN only setup for now.
    Thanks,
    Dirk

    Since we are using radius protocol so password expiration notification will not occur. The user will be prompted when password would expire. With ldap over ssl, user will be notified that "your password will be expired in x number of days" but we can't pick that method as it shoud be ASA integrated directly with AD/LDAP.
    Since we have ISE in between acting as a radius server so we have to live with the option where user will not be notified but password can be changed by end-user.
    Procedure for Configuring RADIUS Password Management
    Requires tha tthe Radius server/ISE  be integrated with an Active Directory MS-AD server.
    1. Enable "password-management" in tunnel-group/Connection Profile.
    Note: "password-management password-expire-in-days X" will not work, use just "password-management"
    2. Ensure that MSCHAPv1/MSCHAPv2 is enabled on the RADIUS/ISE server.
    Jatin Katyal
    - Do rate helpful posts -

  • Cannot share documents between On-Premises and Online Users by email invitation

    We have a hybrid setup, no problems with email communications between on-premises and Microsoft Online users. We have also activated online Onedrive/sharepoint to start testing. One interesting thing is that users Online can share their documents by inviting
    users who are on Microsoft Online, On-premises and outside this two systems. But the problem is with the users who are on-premises cannot share their documents by email invitation with the other users who are also on-premises, they can share the documents
    with the users who are online only. When they try to share documents by email invitation they get error messages it their emailboxes saying that;
    A communication failure occurred during the delivery of this message. Please try resending the message later. If the problem continues, contact your helpdesk.
    Generating server: SMT947322-001.YLO001.MSOPRD.MSFT.NET
    #< #5.5.0 smtp;550 Denied by policy> #SMTP#
    It seems some kind of relay should be granted on my CAS servers or something like that but I am not sure of what should be added. I am just stuck as to what next step and where to start looking for the problem
    Exchange 2010/2013 with Microsoft Online Office 365 Hybrid

    No, just wanted to share documents using the invitation by mail in sharepoint/onedrive. We can share the documents normally without the email notification. Sorry to mention that even the users who are Online cannot share documents in sharepoint/onedrive
    between themselves, so not between user on-premises and online users. For example a user selects a document in the library, click share and tick on by email, just gets an error
    "#< #5.5.0 smtp;550 Denied by policy> #" , No RMS enabled yet.
    Hi,
    Sorry for my delay.
    According to your further posting, the sending Denied cause is No RMS enabled yet. If that is the case, please activate Azure Rights Management (RMS) to check whether the issue persits.
    When you activate Azure Rights Management (RMS), you turn on this feature for all rights-enabled services and applications. You must activate Rights Management before you can begin to use the information rights management (IRM) features within Office, SharePoint,
    and Exchange. For details about how to activate RMS, please refer to:
    http://technet.microsoft.com/en-us/library/jj658941.aspx
    Regards,
    Winnie Liang
    TechNet Community Support

  • How we can take each and evry users back up

    hi,
    we are using SAP B1 2005 PL 40
    how we can take back up for each and evry users.
    how we know the memory for single
    transaction.when users raising single transaction
    how we can knw the memory for that transaction.

    Hi Sampath,
    if you wan't to use "Transactions" you can use
    oCompany.StartTransaction
    this give you the possibility to use
    oCompany.EndTransaction(wf_RollBack)
    when you want to undo your changes.
    lg David

  • Anyway to Restrict Editing and Allow Users to Highlight/Bold?

    Hello Everyone, 
    I was wondering if there was a way that I could restrict editing on my 2013 MS Word document but allow users to highlight and bold the text. I have looked up many forums and have not found a thing! 
    Thank you, 
    Kimmi131

    Unfortunately, there is no way to apply true highlighting in a protected document. But note that you can assign a keyboard shortcut to apply your custom character style, which simplifies the task.
    Also, character styles are applied on top of the current paragraph style, so you only need one. Hmm, if you need multiple highlighting colors, then you may have to create more styles, yes.
    Stefan Blom, Microsoft Word MVP

  • How to create a os user and allow user to login as sysoper in open suse-10g

    we create a os user and db user with same name and tried to login as sysoper but the new os user can not able to login as sysoper.. can u plz help me??
    sudo /usr/sbin/useradd testdba -p XXXXXX
    sudo /usr/sbin/usermod -g oinstall -G oper testdba
    user: oracle as sysdba
    SQL> show parameter os_au
    os_authent_prefix string ops$
    remote_os_authent boolean FALSE
    create user ops$testdba identified by xxxxx;
    grant connect,sysoper to ops$testdba;
    when i login as testdba
    sqlplus "/as sysoper"
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 29 08:10:12 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-09925: Unable to create audit trail file
    Linux Error: 13: Permission denied
    Additional information: 9925
    ORA-01031: insufficient privileges
    there is plenty of disk space in systems.. can u help me how to enable a os user to login as sysoper but not sysdba!
    Can u help me please thanks in advance.

    knowledgespring wrote:
    we create a os user and db user with same name and tried to login as sysoper but the new os user can not able to login as sysoper.. can u plz help me??
    sudo /usr/sbin/useradd testdba -p XXXXXX
    sudo /usr/sbin/usermod -g oinstall -G oper testdba
    user: oracle as sysdba
    SQL> show parameter os_au
    os_authent_prefix string ops$
    remote_os_authent boolean FALSE
    create user ops$testdba identified by xxxxx;
    grant connect,sysoper to ops$testdba;
    when i login as testdba
    sqlplus "/as sysoper"
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 29 08:10:12 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-09925: Unable to create audit trail file
    Linux Error: 13: Permission denied
    Additional information: 9925
    ORA-01031: insufficient privileges
    there is plenty of disk space in systems.. can u help me how to enable a os user to login as sysoper but not sysdba!
    Can u help me please thanks in advance.
    SQL>  !oerr ora 09925
    09925, 00000,  "Unable to create audit trail file"
    // *Cause:  ORACLE was not able to create the file being used to hold
    //          audit trail records.
    // *Action: Check the UNIX error number for a possible operating system error.//          If there is no error, contact ORACLE customer support.And the next error message is saying clearly that there is a permission error so check whether you have proper permissions to that folder where you audit dump is supposed to get created.
    HTH
    Aman....

  • I recently upgraded to osx 10.5.6 and found the version of itunes which allowed me to use my iphone 4, well now i've got the iphone 5 c, how can i find a version of itunes that will work on osx 10.5.6 and allow me to syn my iphone 5?

    is there a version of itunes that works with osx 10.5.6 and also allows my to sync my iphone 5?

    You say you have 10.5.6 (Leopard) but your signature says you have 10.6.6 (Snow Leopard) - which is it?
    If it's Snow Leopard all you have to do is apply the combo updater:
    http://support.apple.com/kb/DL1399
    If it's Leopard it depends on what sort of processor you have. It it's PPC you cannot proceed. If it's Intel you may be able to upgrade to Snow Leopard (which is available in the Online Apple Store) provided you have enough RAM: check the requirements against your Mac.

  • Save form in Reader AND allow users to edit in Acrobat Pro

    I have to create a generic form that I can pass on that allows somoene to edit/customize the form for different clients. However, the end users also have to be able to fill in the form and then save that form locally. It seems to me that Acrobat Pro and Reader are cancelling each other out in this regard. I can set up the form just fine in Acrobat Pro, but when I enable the "Save" function for Reader, I can't edit the form anymore in Acrobat Pro.
    Full disclosure, I'm still on Acrobat Pro 7 (I had to use a co-worker's Acrobat Pro 8 to set the "Save Form" function for Reader). Have the later versions of Acrobat Pro fixed this issue?

    Or You could let the end users without Acrobat use the free PDF-XChange Viewer to fill out and save the form.
    http://www.docu-track.com/
    (Strange that it is so hard for Adobe to meet this simple need to fill out and save for common users with only the Adobe Reader - with out any "hanky panky" applying with Acrobat)

  • Diplaying records from database and allowing user to select row

    I am trying to diplay some records from a database inside of a JPanel that I am going to add to a JFrame application if the user clicks on an "Index view" button, then allow the user to select a particular row. When they double click on a row, it will load that record into another JPanel I created to display that record. My question is how would I display the record(s) in a way that will allow the user to select the row?

    OK, so the user can select a row. I was thinking of adding this JTable to a JPanel inside of a JFrame, but if I also want to allow the user to click on a button on the left side of the JFrame ('A' to 'Z'), which will highlight the first record starting with that letter, is it better/easier to put the JTable directly in the JFrame, or put inside a JPanel first?

  • SSPR Asterix (*) Secret Answers and Allow Users to Pick Optional Questions

    Hi,
    Is it possible to asterix out (***) answers to FIM SSPR Registration questions as they're typed?
    Also, is it possible to present the user with a single gate of 8 questions but force the users to only have to answer 3 questions on a single registration screen? I don't want to force the user to jump through multiple gates or screens.
    Thanks

    Hi,
    Yes, It is feasible to give user choice to answer limited number of questions. Please find a scenario for example below:
    1) You can configure FIM QA gate to have suppose 40 default questions.
    2) Now, You can configure to let user see only 20  or any number of questions of them.
    3) Now, Out of these 20 questions you can give user a choice to answer any 10 questions or any number of questions.
    4) Now, In addition you can configure QA gate to let user see only random 5 or any no. of questions during Password reset.
    5) And you can also give user choice to answer 2 questions or any no. of questions.
    I hope this will help you.
    If My Answer helps you do not forget to check helpful post and If answers your question do not forget to "Mark it as an Answer" Thanks~ Giriraj Singh Bhamu

Maybe you are looking for

  • Illustrator CC 2014 Crashes after unsuccessful update through creative cloud

    I have installed Illustrator on my Mac OS X 10.9.5 and it was working perfectly. When I decide to update it the update doesn't complete and Illustrator show these debug message after I start it: Process:         Adobe Illustrator [780] Path:         

  • Another check box question

    For some reason all my songs have become unchecked. I don't know why. Is there an easy way to recheck them all. Rather than having to click in every box? It seems that because the aren't checked Genius will not recognize them. They were all working u

  • Handling error exception in timesten

    how do we handle timesten specific exception in a pl/sql block. Like TT5039...which is a exception thrown when trying to refresh a cache group using ttCacheAutoRefresh for which refresh process has already been initiated by the timesten I require to

  • Posted in another section with no reply perhaps this is the right area...

    Hey! I need major help, this is what I posted in another section...and still haven't got a reply! "Just got my 1GB nano yesterday. Being a forum addict had to get on here to get help with my problem. On Saturday night, I had no problems opening iTune

  • 9i OCP-To-11g OCP Migration

    I'm 9i OCP,I want to become 11g OCP. Please advice me.How can i do it? Thanks in advance.