Exchange Messages Between Foreground and Background Tasks

I'm working on an Application where I use background task for handling Bluetooth communication. For that, I'm trying to exchange messages between foreground and background tasks when the Bluetooth device sends
something and want to notify the foreground about it. Similarly, I want the foreground to send messages to background when the user activates something. I've started doing that using event handlers but it is not reliably working. Looks like the problem is
coming from the synchronization between these two tasks. I found the class BackgroundMediaPlayer which does what I really want , except controlling the media player. What are the options of doings that?

Hi Rob,
Thank you for your reply. So in this case, I guess each process shall keep reading the file and see if there are commands to be processed. Is there a way to raise an event when the content of the file get changed? Are there existing file handling classes
that support this?

Similar Messages

  • How do I change the contrast between foreground and background in CS4 workspace menus?

    Everyone at my agency who has upgraded from CS3 to CS4 is dismayed to discover that they can not read any tabs on the workspace except the highlighted one. The foreground and background colors are simply too close together for anyone who doesn't have very good eyesight to use 8 hours a day, and if you have any form of color blindness, just forget it. Is there any way to change the foreground and background colors in the workspace itself?

    I don't believe it's possible.  It would be like altering the ribbon in Office 2007 to make it work like Office 2003. This is a built-in function and from the upcoming betas in the Labs it appears they are going to continue this trend.  Only thing I can really suggest you do is submit a feature request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform .  Outside of that there is not much you can do.
    One other thing has come to mind but it only works for the document area and not other menus.  Instead of opening documents in the tabs in one window you can click on Window at the top and choose Cascade to view each file in its own window and go back to Expose for fast-switching between windows.

  • Exchange message between XI and External System

    Hello.
    I am working on building an application that can exchange message with XI. I went through many documents and forums, but I found that most of them is in the boundary of XI and SAP not XI and external system. I just wonder if there is any simple code available that I can start working? Or any helpful suggestions are also welcome.
    Thanks.
    Kevin.

    Hi Kevin,
      Xi is an intergration tool which servers the purpose of integrating SAP with nonSAP systems.Many adapters are provided which enables to connect and transfer data (in the form of xml) to external systems.Sap can talk to .net.....pls have a look at the blog :
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Sap to legacy systems(file to file scenario):
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    With database systems:
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    webdynpro to xi intergartion:
    /people/sap.user72/blog/2005/09/15/connecting-to-xi-server-from-web-dynpro
    /people/saravanakumar.kuppusamy2/blog/2005/02/07/interfacing-to-xi-from-webdynpro
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1334 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    And the mail adapter enables you to talk to email servers:
         /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Hope these help you in better understanding of this tool.
    Regards
    Priyanka
    Message was edited by: Priyanka Balagangadharan

  • Difference between foreground and background excel outputs

    I am running an ABAP report and from the output generated I am saving it as an excel file . Navigating from the toolbar as : Utilities->List -> Save as local file -> Spreadsheet.
    If I am running the report in background then the spool gets generated. If I display the spool and save it as Excel following the same path Utilities->List -> Save as spreadsheet it gets saved in an Excel.
    The problem is the two outputs (in Excel) are not matching in format. One which is generated from foreground gets saved with lot of blank columns while the one generated from the spool gets cranked for space.
    How can I have the excel generated from background (from the spool) have exactly the same format to that created in the foreground run?

    Hi
    Foreground
    1. you run directly the transaction VL04.
    2. The performance can be bad.
    3. The user is always the user id of the person.
    4. The deliveries always will be pulled according to user setup (tcode SU3) time zone, languange etc.
    5. foreground may give you option of creating deliveries individual, collective processing etc.
    Background
    1. You setup a job using the tcode VL04 using SM36 and monitor using SM37
    2. Performance is good.
    3. THe user can be changed according to the country, time zone by creating and using new batch users.
    4. The deliveries are created individually but they are created a part of one collective processing document.
    5. Deliveries are pulled according to the batch users eventhough you have setup the job.
    Hope this wil help you to give 5 differences.
    Kind Regards
    Sandeep

  • How to distinguish between enabled and disabled tasks in SSDT-BI 2012

    Hi,
    I've got SSDT-BI 2012 together with VS2012 installed. Simple questions: What is the difference between enabled and disabled tasks in control flow from the design/color point of view? I do see that the disabled tasks changes to grey (omg are you really kidding
    me????) from black. This could be a bad joke or dream however is not.
    So I'm kindly asking you to help me solve this problem. How can I change the color difference between these two options (enabled task vs disabled task)? I do not care whether the one will be yellow or pink, simply just need to be recognizable at first
    look and not under long and painful examination.
    Thanks for your reply. Hopefully it will be useful.
    Karol.

    Hi Karol,
    It’s true that it only changes the font color of the task name text to grey after disabling a task in SSDT 2012. In SSDT 2010, the whole task control including icon will turn grey after it is disabled; in BIDS, the background color of the task control will
    turn grey after it is disabled. These behaviors are by design. Personally, I agree with you that this behavior in SSDT 2012 is not very readable.
    If you have concerns, I would suggest you submitting a wish at
    https://connect.microsoft.com/sql.
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Messaging between BB and iPhone works but not between BB and iPhone.

    I have an iPhone and an iPad 2.  I am able to exchange messages between my daughter's Blackberry and my iPhone but when I try to send a message to her BB from my iPad I get a message stating that her phone number is not registered with iMessage.  Can someone explain why this app works on one device but not on the other.
    Paul9491

    That's right.  iMessage on iPad ONLY works on other iOS devices, like iPad, iPhone and iPod Touch, running iOS 5 or higher.  If you want to be able to text non-iOS users, there are apps for that, such as TextFree.

  • I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?

    Thanks for your help - your suggestion worked beautifully.Dennis Hood
          From: 99jon <[email protected]>
    To: Dennis Hood <[email protected]>
    Sent: Thursday, 15 January 2015, 15:20
    Subject:  I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    I'm using Photoshop Elements 12 on Windows 8.1.  When I go into the Expert Edit Mode the toolbar available appears in one single column and misses off several tools including foreground and background colour.  How can I restore the original toolbar?
    created by 99jon in Photoshop Elements - View the full discussionTry re-setting the prefs.Go to: Edit >> Preferences >> General (Photoshop Elements menu on Mac)Click the button Reset Preferences on next Launch If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7099161#7099161 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7099161#7099161 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Photoshop Elements by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How to see the foreground and background colour without those sliders?

    I've always found the Color Panel really annoying. A lot of space is taken up by those sliders, and I hardly ever use them.
    Is there some way to hide the sliders, or—better still—put the foreground & background colours on the control panel? Shouldn’t the colours be on the control panel by default, always there in the corner?
    I wonder how most people view the foreground and background colour? Does Adobe seriously expect users to have the large Color Panel constantly displayed (along with its rarely-used sliders), or perhaps we’re all expected to have the Tools Panel constantly open even though it only contains basic tools that most people know the shortcuts for?
    Or is there some other way to see the foreground and background colours?
    Or do most users not need to know what the foreground and background colours are?

    Too big, i guess you don't remember the color palettes from ps 1 and ps 2.
    You might want to look at configurator to make a smaller panel that just shows the
    foreground/background color chips.
    http://labs.adobe.com/technologies/configurator/
    MTSTUNER

  • New photoshop cc seems to have a bug wrt the toolbar's foreground and background squares.

    New photoshop cc seems to have a bug wrt the toolbar's foreground and background squares. When I pick a color to use as a fill the squares show gray and the fill is gray rather than the color picked. Never had a problem with this in previous version of PS. Could something be set up or initialized to cause this state of affairs?

    Change your document from Grayscale to RGB, or change the selected channel to the RGB data instead of a mask.

  • Reliable messaging between XI and BizTalk using SOAP

    I came across this document describing how reliable messaging between XI and BTS can be implemented using the SOAP extensions. This document has been authored by
    - André Fischer, Project Manager CTSC, SAP AG
    - Matthias Allgaier, Consultant XI, SAP Deutschland AG & Co.
    - KG Jürgen Daiberl, SAP Program Manager CTSC, Microsoft Corporation
    Does anyone know if the prototype code is available for download from SDN or elsewhere? A search on SDN did not produce any results...
    Thanks.
    - KishenM

    Larry,
    Let me see if I understood this - You need to use the SOAP adapter to integrate with BizLink. Bizlink Provides its own SOAP Header and hence you are not sure how to do this.
    Got a few questions,
    1. Has Bizlink given you a XSD / WSDL. Does this have the entire SOAP Payload including the SOAP Header and SOAP body? If yes, create the mapping as needed and instead of the SOAP adapter use the HTTP adapter or use the SOAP adapter and in the SOAP adapter select option Do Not Use SOAP Envelope.
    2. If you do not have a XSD that contains the entire SOAP Enevelope - SOAP header and body then use XSL or Java Mapping that creates this output structure and use the SOAP adapter with the DoNotuseSOAP Envelope option or the HTTP adapter.
    The SOAP adapter in the DONotUseSOAP Emvelope mode basically becomes a http adapter.
    Regards
    Bhavesh

  • BDC program in Foreground and Background

    Hi,
    I have a requirement from client to write a BDC program which can upload the data in TABLES in foreground and background. There will be a flag for FOREGROUND on the screen, if user clicks the FOREGROUND FLAG then data should be uploaded in foreground and if flag is blank than should be in background. What statements should I used to accomplish this logic in a BDC program.
    Thanks.
    minisap

    Hello,
    Check this sample.
    SELECTION-SCREEN BEGIN OF BLOCK BLCK1 WITH FRAME TITLE TEXT-002.
    PARAMETERS: FILENAME LIKE EPSF-EPSDIRNAM
                DEFAULT '\\FS000P01\D48\ANSKA\SAP_R3_ANSKA_FILES.TXT'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    PARAMETERS: AP RADIOBUTTON GROUP GRP1,
                PC RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN END OF BLOCK BLCK1.
    START-OF-SELECTION.
      IF NOT AP IS INITIAL.
        PERFORM UPLOAD_APPLICATION_SERVER TABLES IT_FILE
                                          USING  FILENAME
                                        CHANGING RC.
      ENDIF.
      IF NOT PC IS INITIAL.
        PERFORM UPLOAD_WORKSTATION TABLES IT_FILE
                                   USING  FILENAME
                                 CHANGING RC.
      ENDIF.
    FORM UPLOAD_APPLICATION_SERVER TABLES   P_ITAB_DATA STRUCTURE IT_FILE
                                   USING    P_FILENAME
                                   CHANGING P_RC.
      CHECK P_RC IS INITIAL.
      OPEN DATASET P_FILENAME FOR INPUT IN TEXT MODE.
      IF SY-SUBRC = 0.
        DO.
          READ DATASET P_FILENAME INTO P_ITAB_DATA.
          IF SY-SUBRC <> 0.
            EXIT.
          ENDIF.
          APPEND P_ITAB_DATA.
        ENDDO.
        CLOSE DATASET P_FILENAME.
        P_RC = 0.
      ELSE.
        P_RC = 4.
      ENDIF.
    ENDFORM.                    " upload_application_server
    FORM UPLOAD_WORKSTATION TABLES   P_ITAB_DATA STRUCTURE IT_FILE
                            USING    P_FILENAME
                            CHANGING P_RC.
      DATA: FILENAME LIKE  RLGRAP-FILENAME.
      FILENAME = P_FILENAME.
      CLEAR P_RC.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
    *   CODEPAGE                      = ' '
          FILENAME                      = FILENAME
          FILETYPE                      = 'ASC'
    *   HEADLEN                       = ' '
    *   LINE_EXIT                     = ' '
    *   TRUNCLEN                      = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   DAT_D_FORMAT                  = ' '
    * IMPORTING
    *   FILELENGTH                    =
        TABLES
          DATA_TAB                      = P_ITAB_DATA
        EXCEPTIONS
          CONVERSION_ERROR              = 1
          FILE_OPEN_ERROR               = 2
          FILE_READ_ERROR               = 3
          INVALID_TYPE                  = 4
          NO_BATCH                      = 5
          UNKNOWN_ERROR                 = 6
          INVALID_TABLE_WIDTH           = 7
          GUI_REFUSE_FILETRANSFER       = 8
          CUSTOMER_ERROR                = 9
          OTHERS                        = 10
      IF SY-SUBRC <> 0.
        P_RC = SY-SUBRC.
      ENDIF.
    ENDFORM.                    " upload_workstation
    Hope this will solve ur issue.
    Cheers,
    Vasanth

  • Reliable messaging between XI and BTS

    I came across this document describing how reliable messaging between XI and BTS can be implemented using the SOAP extensions. This document has been authored by
    - André Fischer, Project Manager CTSC, SAP AG
    - Matthias Allgaier, Consultant XI, SAP Deutschland AG & Co.
    - KG Jürgen Daiberl, SAP Program Manager CTSC, Microsoft Corporation
    Does anyone know if the prototype code is available for download from SDN or elsewhere? A search on SDN did not produce any results...
    Thanks.
    - KishenM

    Kishen
    The document talks about the code you have to develop for your own module processor. The step by step method to create is given here:
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e2235b71-0701-0010-9f85-b06c7d1c7a0e
    ---Satish

  • How to change foreground and background color using CC SDK?

    Hello all,
    I am just starting to study the sdk (Mac CC). Currently, I am seeking the answer to change foreground and background color using CC SDK?
    Is it possible to do so? In addition, will the Image Mode such as RGB, CYMK or Grayscale be effecting such solution?
    Thanks in advance.

    These are NOT dropdown menus. They are dropdown LISTS.
    http://web.me.com/toad.hall/Demo1/Drop_DownMenus.html
    And from the links in the Google search you can learn that a list item has no style.
    And a dropdown list behaves differently from dropdown menus. Here's how it looks on Mobile Safari :

  • How Exchange Messages Between ML Desktop iMessage and GMail on PC?

    iMessage Mavens,
    If this forum (iChat) is not the proper place to post iMessage questions, please accept my apologies.
    Earlier today, a client requested an IM session. On a WinTel system (PC), they use Gmail and a PC-Gmail client.
    After an futile hour of research, I cannot find a way to exchange messages from iMessage (specifically using the Mountain Lion desktop iMessage client or iMessage on my iPad or iPhone) and my client's GMail account.
    How can message exchange between iMessage and a PC running a GMail be provisioned?
    Many, many thanks.
    Plane Wryter

    Hi,
    Lets start with some terms so we are all talking the same "Language"
    The Messages App in Mountain Lion can do two sorts of Text chats
    1) iMessages to iOS devices and other Macs using Messages (that have registered an Apple ID for IMessages)
    2) Instant Messages (IMs) to various services such as AIM, Jabber or Yahoo (In iChat 6 or later)
    iChat will Text chat to a person using an Google Talk ID if they are logged in to a web Browser > Google Mail or iGoogle) with Talk Enabled on their Account
    You just have to have a Jabber account of some sort logged in on iChat and have added them as a Buddy.
    They could also be using any one of a number of Instant Message Apps that allow either PC or Mac users to login to multiple services.
    Google have also released a Stand alone App called GoogleTalk for PC users.
    It may be simpler if you don't want to set up Messages for a Jabber ID that you use your Web Browser and A Google Mail Login having Enabled Talk on your Account.
    To be clear.
    iMessages are a form of communication
    They are text Messages to iOS devices or Macs who have registered an Apple ID for iMessages
    They can not be sent to any old email Address
    They cannot be particularly, sent to other services such as AIM or Jabber  (this is despite the Messages window having the Text chat area)
    Google run a Jabber server using the IDs of the Google Mail Service with the "Talk" option enabled to be valid Jabber IDs
    You needs to use a Jabber ID of some sort in Messages (Or iChat)
    In the Mountain Lion Community here at Apple Support Communities there is a "Messages" Category tag you can use when posting there.
    Some of the regular Posters filter the larger forums (Communities) using these filters.
    8:51 PM      Sunday; August 19, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Stuck with Foreground and Background processing in Workflow

    Hi All,
    I have a BDC that is acting as a method in the Business Object. The requirement is something like this: The scenario is in the Utilities System. When a customer pays a security deposit a PM (Plant Maintanence) Service Order has to get created automatically in the background. I have a BDC for creating the Service Order but the thing is that if I make that task which runs the BDC as foreground and give the agent assignment it works absolutely fine and the service order gets generated, but if I make the same task as background the Service Order does not get created. I am heavily stuck with this issue.
    Has anybody encountered the same issue ?
    Best Regards,
    Sudhi

    Sudhindra,
    Are you checking for errors after the BDC Call Transaction? What I normally do is to use the Messages into option of the BDC call and return the messages to the Task Container in case of errors.
    Reasons why the method does not work in background is possibly due to authorizations or the WF-BATCH user being not known to the PM system. For instance when I create PM notifications in WF in background, I have to translate the WF initiator's user id to their Personnel Number for the Resp. Person field. If in your workflow the prior step to creating order is a dialog step, you can also try the Advance with dialog option on the background step.
    Cheers,
    Ramki Maley.

Maybe you are looking for

  • Is there a way to automate an indesign catalogue so that it populates fields from excel?

    A client has seen a competitor present a catalogue and shows how from an excel or database file this indesign template can be populated with text and with images from a filename listed in the the excel.  Does anyone know how to do this or can you sug

  • Canon MP990 scanner no longer working

    With tech support, I've reset my modem, my router, all my computer settings, and all my printer/scanner settings, as well as downloaded the latest printer driver. My computer can use the printer, but still can't communicate with the scanner function.

  • I am very dissatisfied with the replacement phone. How do I get help?

    We purchased a casio phone, there was issues with it, and I was sent to the warranty center. They were very courteous with sending a replacement phone..but the problem was, they replaced it with a phone that was in no way comparable to the one we bou

  • How do you edit the duration of multiple still images?

    FCP X has a default duration for still images when you import them. After importing, how can I edit the duration of multiple clips? I've tried selecting them all, control-click and change duration, but nothing changes. BTW I want to make them 5 frame

  • Mount NTFS under Solaris 10

    Hi can anybody tell me if i can mount a NTFS partition under Solaris 10?? Thanks for ur help.