Problem with new line

Hi,
I'm trying to write a note for a contact.I have written following code
contact.addString(Contact.NOTE, contact.ATTR_NONE, "bla bla bla");it works, but when i write
contact.addString(Contact.NOTE, contact.ATTR_NONE, "bla \n bla \n bla");it doesn't work. What's wrong with newline
Can anybody help me to fix it.??

I'm still working on emulator.
If I write
contact.addString(Contact.NOTE, contact.ATTR_NONE, "bla \n bla \n bla");actually it's still working but the "\n" is ignored. The output is
>>bla  bla  blanot
>>bla
bla
bla but if I write (without space after new line)
contact.addString(Contact.NOTE, contact.ATTR_NONE, "bla \nbla \nbla");it's not working and doesn't have any output. Is "\n" really not supported or it's a bug .??
Thx

Similar Messages

  • Problem with new-line-character and java.io.LineNumberReader under AIX

    Hi folks,
    I got the following problem: I wrote a little parser that reads in a plain-text, tabulator-separated, line-formatted logfile (and later on safes the data to a 2-dimensional Vector). This logfile was originally generated by an AIX ksh script, however, I copied it on my Windows machine to work with it (for I'm using a Java editor that runs under Win Systems).
    For any reason, Windows, and what is worse Java too, seems not to recognize correctly the new-line character (in the API it is written that this should be a newline '\n' or a carriage-return '\r' or one followed by the other) that marks the end of a line in the logfile.
    Also, when I'm opening the logfile with the "Notepad"-editor, this special character does not seem to be recognized, every line is inserted right after the other.
    On the other side, when I open the logfile with the built-in editor in the CMD-Shell ("Dos-shell"), the newline chars seem to be recognized correctly.
    But when start my parser on the AIX-machine the newline does not seem to be recognized correctly again.
    I tried to read in the logfile with MS-Excel and safe it as a plain-text, tabulator-separated, line-formatted logfile again, with such files my parser works fine both on the AIX as it does on Windows.
    Any ideas? Anybody got over the same problem already?
    Greetz FK

    Under windows, text files' lines are usually delimited by \r\n,
    under Unix/Linux/AIX etc. \n
    and under Mac \r.
    I recommend to use the following editors, which are capable to handle files with Unix and Windows-styled line-delimiters or convert between these types:
    Programmer's File Editor (PFE; available on Windows)
    The Nirvana Editor (http://www.nedit.org/; available on Unix, MAcOS, Windows)
    (BTW good old vim can handle that too. Transferring text files to windows in order to edit them, even using Excel for this purpose means your being a UNIX newbie, (I mean no offense by writing this) so vim is probably beyond your reach for the moment.)
    Java normally assumes the platform's line delimiters where it is running, so if you transferred the file from Unix to Windows might be distrurbing.

  • Regarding problem with new line feed for DME file generation

    Hello Experts,
    I m facing a problem in the DME file generation.
    we want each record in the DME file should be in new line. for that we have add the new line feed character in the each row end. So in the SAP output it looks ok, But if we download that file the carriage return field is coming in the end of every row.
    can any one tell how to solve this issue.
    Please refer the below line code which i m using for new line
    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>CR_LF
    You reply is valuable..
    Thanks,
    Suresh

    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>newline.

  • Problem with new lines

    I have defined a form in Dreamweaver  to be used in conjuction with my SQL database (I am using the PHP/SQL).  One of the fileds in my form is of type TEXT (as opposed to VAR CHAR). Now, eventhough the text I am entering for that TEXT field has a number of paragraphs, when I read back the TEXT  field from the database (via sql SELECT),  the data for the TEXT field comes out continuously without paragraps. I don't understand why the paragraph or newline markings are not working when TEXT type data is retrieved from the database.  Can someone help me please.  Thanks!

    This is because HTML ignores new lines. The solution is to use the PHP function nl2br(). Depending on which version of Dreamweaver you're using, you can apply this function through the Bindings panel like this:
    This is certainly available in CS4, and maybe in CS3 too; but not earlier versions.
    If you're using an earlier version of PHP, wrap the dynamic text in nl2br() like this:
    <?php echo nl2br($row_recordsetName['fieldName']); ?>

  • List of Problems with new Web Mail

    List of Problems with NEW Web Mail :
    - At first doesn't open full page message list or retain full page as default setting, have to drag down bar
    - Only shows 20 message lines after “pulling down” the divider, screen partially empty until I scroll down.  It should show at least 26, preferably all available
    - After moving bar, bar moves back up after going back to inbox (not delete message) after reading a message, have to move it down again, and again...
    - Doesn't go to next message when delete message on screen is selected, no setting option for default to do this.
    - There is a drop down to select which folder to move a selected email to.  The initial display shows 7 usable choices, with the usual slider and arrow to show more choices.  The space on the slider clearly shows more choices are present (actually about 20 or so are there), but any attempt to use the slider or arrow to see more choices causes the drop-down to instantly disappear.  I can't move the selected field with arrow keys either.  I can select any of the visible 7 choices, and move an email to only one of the 7.  NOTE: This one works in both IE and Firefox, but if Verizon Webmail was fully web standard (see http://en.wikipedia.org/wiki/Web_standards) compliant it would also work in my preferred browser, Mozilla Seamonkey, the direct descendant of the original Mozilla browser.  Webmail should be FULLY web standard.
    - Occasionally a message will move from inbox to trash, without NO indication or command to move them.
    - Emails occasionally flash an error message and simply disappear - not to trash or other findable place, just disappear.  No time to read the error message either.
    - No way to set a whitelist for supposed spam emails, unless the whitelist for “Blocking” is the same.  Very unclear.
    - How can I switch my service back to the original, basic, email which works ok?  I know it’s still there, since some of my other accounts still access it!!!
    This seems my only way of getting this info direclty to the programming staff.  If it doesn't actually do this, will SOMEONE PLEASE FORWARD THIS MESSAGE TO THEM !?!  
    Thanks!

    vz_ric wrote:
    The majority of websites are set up the same way for all browsers. It's the software manufacturers responsibility to make their software compatible with websites, not the other way around. Otherwise everyone who has a website will have to make 10 different sites to work multiple browsers.
    Contrarily, it is Verizon's, as well as other companies like Verizon whose customer base uses a wide variety of web browsers, web page designers' responsibility to use only standard W3C-recognized code and not to use non-standard non-W3C-recognized code, e.g., Microsoft's Internet Explorer specific code, when designing their web pages. In my opinion based on my observations, Verizon's web page designers are too often guilty of using IE-specific code.

  • Problems with horizontal lines on the iMac. Someone knows the solution?

    For several months my Imac has horizontal lines have been growing. Problems with horizontal lines on the iMac. Someone knows the solution?

    You have 14 days to return the computer w/no questions asked.  Plus you have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.
    That being said, no new Mac comes w/Snow Leopard which your profile confirms you have.
    Mac OS X (10.6.8)

  • Problem with new version 4.3.2 apps not working " after update to the new version "

    Problem with new version 4.3.2 apps not working " after update to the new version "
    i was in 4.3.1 then i do the update , but now after update i face this problem , so what i Supposed to do ?!!

    Hi There
    Had the same problem as you. App would terminate when launched.
    Solution to working You Tube app:
    -Go to playstore
    - Uninstall app (it doesn't remove the app, only removes the update)
    - "Et Voila", working again.
    This doesn't correct the problem, it's just a workaround for you to be able to use youtube app again.
    Hope it helped.
    Best Regards

  • I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add

    I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add APN. Now when i switch to safari its showing you are not subscribed for cellular data. But I am able to use data on other phone.
    Will you please help me in this regard?
    Another issue, since i bought my new iphone there is dust inside back main camera.
    Your advises are highly appreciated.

    Hey Shaiju isac,
    I'd take a look at the following article, it'll guide you though steps to you troubleshoot cellular data issues on your iPhone:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    David

  • Wifi problems with new ipad

    I'm trying to learn how to correct wifi problems with new iPad.  It is the wifi only, 64GB model.  I want to be able to use it at work, where we have a great wifi network.  I can usually connect to our network with no problem, but after an hour or so my iPad loses the network.  When I try to reconnect, I see that the network is showing full strength reception, but I get the error message from the iPad that I am "Unable to join" the network.  My iPhone connects to the same network seamlessly, as do all of the other iPhones of my co-workers and the older generation iPads that some of our staff has.
    At other locations, I typically have no problems (home, apple store, etc.) but I have had the same situation pop up at a coffee shop where I could see that there was a wifi network available, but I could not join it even though it was the shop's free wifi. 
    I have tried turning the iPad off, turning off wifi and turning it back on again, and forgetting the wifi network in question.  I can't think of any other methods that are available to an end user to correct the problem. 
    I have already gone to the Apple store to swap out the unit, and the newer one is having the same symptoms. 
    Can anyone offer any advice here?  This is quite frustrating.

    No problem! Have a read at this most interesting article which has special significance as regards your models!
    http://edition.cnn.com/2012/04/05/tech/gaming-gadgets/ipad-wi-fi-issues/index.ht ml
    However, I attach an extract from another thread for your perusal. You can disregard any suggestions/links you have already explored -
    created by Texas Mac Man in Using iPad - View the full discussion
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router &amp; then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
     Cheers, Tom ;)

  • WRT160N - problem with on-line games and downloading

    Hi,
    Several months ago I bought a WRT160N router and I have a strange problem.
    When I play online games, such as QL, and someone else will start downloading from the Internet, from time to time about 10 sec I have 999 ping
    I turned on in the background ping to the router, and from time to time about 10 sec there are 2-3 ansewers with 1900-2000 ms.
    I tought that when I buy router with N-mode everything will work better, and there will be no problems with on-line gaming.
    Is there any way to fix this problem??

    I checked now and even no one is downloading there is the same problem.
    I checked on other router and it works fine.
    Next problem is when I browse youtube and play several films simultaneously, suddenly there are no responses from router, when I close them, and wait for a moment the responses are back.
    Whether anyone had similar problem??

  • Adobe aftereffects is not working on os x maverics all updates...... is dis soft. will work on the new os x yosemite.??  y apple is nt working on dis problem wen users are facing problems with new os x .....

    Adobe aftereffects is not working on os x maverics all updates...... is dis soft. will work on the new os x yosemite.??  y apple is nt working on dis problem wen users are facing problems with new os x .....

    I suggest you contact Adobe tech support or their Mac forums for assistance.

  • Reposting this If your having problems with new Windows 8.1 do a full uninstall of all Apple

    Reposting this If your having problems with new Windows 8.1 do a full uninstall of all Apple iTunes programs but uninstall them in right order and then do restart of computer then reinstall newest iTunes and it will all be fixed up syncing problems or other problems this is thanks to Apple phone support

    What is your technical support question for these user to user technical support forums?

  • When Apple solve problems with new iTunes calendar sync with windows and outlook?

    When Apple solve problems with new iTunes calendar sync with windows and outlook?

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    More Info here...
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    If necessary...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Before I buy has there been any problems with new 27 iMacs?

    Before I spend my hard earned cash does anyone know if there has been any problems with new 27 iMacs?

    Hello richard from Folsom:
    Are you inside or outside?  (  I could not resist, I lived in Sactown).
    Anyway, advice is frequently worth what you pay for it, and mine is free.
    If you want it, buy it.  The posts above are right on the mark (except waiting is probably overly-cautious).  The best advice (from anamusic) is to buy the extended warranty - well worth the money.
    Barry 

  • I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.

    I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.
    At first I thought it might be because I was using simultaneously my old iPhone 4S so it somehow realized the emails where being pushed to another device and the it marked as read, this has nothing to do since I have deleted the email account from the iPhone 4S

    Contact the email provider for assistance with their service.

Maybe you are looking for

  • Problem while opening a pdf file

    Hi, when i try to open a certain pdf file directly by clicking on the link, the reader hangs up. when i start the reader and try to open the file directly after that, the reader hangs up. But when i open the reader, let it run for a minute or two and

  • Cover Flow bug or feature?

    With Finder Preferences set to "Always open folder in a new window" and Finder view set to Cover Flow, double-clicking a folder icon in the top (Cover Flow) portion of the Finder window opens its contents in a new window behind the existing window, w

  • Can't use dual monitors

    I have an  HP ENVY Desktop - 700-515xt CTO.    It has 1 DVI input, no VGA input.   It has the Intel Integrated Graphic.   I want to use 2 monitors  (am using Windows 7).    I tried using a DVI to VGA dual cable, but it says the 2nd monitor is not con

  • How to use auto incremented tabe to create a CMP Entity Bean

    hi, I want create a CMP entitybean with an auto incremented table in Oracel. So I need to know - how to create a table with an auto-incremented field in oracel and - how to change the create() method according to that. I am using Sun studio enterpris

  • Copy a program from one sap system to another

    hi all,    i need to copy a program from one sap system to another..along with the text symbols, selection-texts and includes without any transport request release...how can i do that? thanx in adv