Background task for WP 8.1

Hi all.
I added new project into solution. I created and registered background task. App1.Shared contains shared code. But I can't use it in new project with Background Task.
I tried to create background task into App1.Shared, but my app is crashing when trigger is activated.
How can I get access to shared code from project with background task?

Hi Pizhon,
>>How can I get access to shared code from project with background task?
You need to create a Windows Runtime Component for your solution and implement Background tasks in it, in Store or WP project, create different register procedure to make it works.
I would suggest you checking this official sample:
https://code.msdn.microsoft.com/windowsapps/Background-Task-Sample-9209ade9
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Can I turn off the background task for HERE Drive+...

    Hello,
    I have installed on my new Lumia 1020 the application HERE Drive+ and I have noticed that it starts up a background task. Since I'm not using HERE Drive+ on a daily basis I think I could save some battery if I turn off this background task and it is started automatically only when I'm using Drive+ application. Can I do that?
    I went to Settings->Applications->Background tasks and tried to block HERE Drive+. So far so good but when I tried to set to ON (checked) the option "Turn background tasks back on for this app the next time I open it", HERE Drive+ application was automatically unblocked. Is this normal?
    I want to know if I can stop the background task for HERE Drive+ and have it automatically started up when I open HERE Drive+ application.
    Thank you.
    Cosmin Petrenciuc
    Solved!
    Go to Solution.

    It may be something I missunderstand. So if I go to Settings->Application->Background tasks and tap the button "Advanced" I see a list with many applications, and among them there is HERE Drive+. Above this list it is written "These apps can run in the background, and you may not be able to block all of them".
    Does this just means that HERE Drive+ application is allowed to run in the background? Do I see in this window the list of all background tasks currently running or it is just a list with the application that could run in background?
    Right now I don't have any application running. If I keep pressing on back button the app card list is empty.
    Thank you.
    Cosmin Petrenciuc

  • Issue in posting GR in background task for inbound deliveries.

    when tried to do Good receipt in batch/background processing for inbound deliveries through std. posting module 'IDOC_INPUT_DLVRY', getting sap abend message as 'Risk of posting several mat.documents for one delivery->long text' VL 621 MESSAGE TYPE A.
    But there is no duplicate material documents other than one which would get created when posting GR.
    I looked at oss notes 117104, it seems to be cannot be implemented and is found to be suitable for 46a,46b wheras, i am looking for ECC 6.0 release.
    Suggest pls.
    Thanks,
    Madhan.

    Can this link help you? Control Delivery's Save - if condition is not meat.
    Regards,

  • GPS Collection in Background task for Windows phone 8.1 ?

     
     I don't know some best and good features were  complicated  in Windows Phone 8.1 when compare to Windows Phone 8 ,
    1 ) Simple Camera option makes it Complicated in Windows Phone 8.1 , no preview option ?
    2) Background GPS Collection is not working in Windows Phone 8.1 , In my case i need to collect GPS in short time interval ( 1 or 2 mins ) But Windows phone 8.1  support Timer Triggers for 30 mins in Back ground Task .
    3) Zxing is works good and gives robust out put . it is not supported in windows phone 8.1 takes too much time intervals and giving false data output .
    4) Need to maintain same installation (XAP/APPX ) file for all version of Windows Phone because end user makes ambiguity to use old and new version installation .  
    Thanks to Help ,
    Please provide make sure answers for the 2 and 3 .
    Venugopal

    My Client mentioned our application needs to works on Windows phone 8.1 and above .
    Xap file can not run in Windows phone 8.1 so we need to develop Windows phone 8.1 (Appx).
    So existed and simple things are made complicated in Windows phone 8.1  .
    Please suggest answers for these :-
    1) Background GPS Collection is not working in Windows Phone 8.1 , In my case i need to collect GPS in short time interval ( 1 or 2 mins ) But Windows phone 8.1  support Timer Triggers for 30 mins in Back ground Task .
    2) Zxing is works good and gives robust out put . it is not supported in windows phone 8.1 takes too much time intervals and giving false data output .
    Venugopal

  • Step 1; File Share   DVD; Sharing screen appears, click "share"; view background taski for up 2 1-hour; error message appears "Quick time error 0"

    I still don't understand why I get this error message; quicktime error 0

    Pwscott wrote:
    10. Update the video card driver.
    check, latest Nvidia GeFroce9500GT driver installed, also tried previous version, no effect
    After installing recent nvidia drivers you should then uninstall the nvidia stereoscopic 3D driver from Control Panel> Uninstall a Program. This has a known conflict with APE.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Lock inheritance with "CALL FUNCTION func IN BACKGROUND TASK"

    I see that the "SAP Lock concept" documentation states that for locks obtained with _scope = '3', all UPDATE tasks (spawned via "CALL FUNCTION func IN UPDATE TASK" inherit the lock (which is released only once all such update tasks and the calling process have requested a DEQUEUE).
    What should happen when instead, I use "CALL FUNCTION func IN BACKGROUND TASK" (for doing the update in a queue)? Are the locks inherited here as well?
    Cheers!

    Hopefully not, as a background task may be executed late. While update tasks are to be executed quickly (if not, administrators should review the system configuration, like increasing the number of UPD workprocesses).
    Solution: In the background task, redo the locks, as if it was a background job.

  • 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?

  • Wp8.1 Background Tasks (Geofencing & GeoPosition Tracking)

    Anyone know if its possible to Run a background task in 8.1 that will not only trigger on the Geofence hits, but also allow me to track the GeoPosition on a per minute basis too.
    Basically I need the to know If I can run the App fully in the background and track the current position on a continual basis, as well as use the Geofence background Triggers.
    Thanks

    Hello,
    We do not currently support continuous background tasks for geo location in Windows Runtime apps on the phone. While this functionality is available in the development environment for 8.1 Silverlight apps your app will not be accepted in the store if you
    use this functionality. To support continuous background processing you will need to target WP 8.0 Silverlight.
    I hope this helps,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • User WF_BATCH dumps with TIME_OUT for a background task

    Hello,
    Situation :
    While executing a workflow with a task defined as background task, the workflow creates a dump in ST22 after around 40 minutes. dump is because of TIME_OUT exception. And the workflow stays in status InProcess forever.
    Question:
    In my opinion background tasks do not have a time limit because they are executed as backgound batch jobs with batch user WF_BATCH. Then why do I get a TIME_OUT error ?
    Is my assumption that workflow background task are just handled like other background jobs (sm36) is wrong ?
    More Details :
    I have a workflow with a task defined as background task (Task -> Basic Data -> Execution -> Check box 'Background processing' selected).
    This task calls a method defined as 'Synchronous' method.
    This method calls a ABAP FM having a select statement which selects large volume of Data.
    If I execute this FM in Dialog mode definately I get a TIME_OUT. I understand this.
    But what I do not understand is , while executing in background I do not expect TIME_OUT error since background jobs do not have a time limit. They can even run for several days.
    Please let me know in what cases does a background job throws a time_out exception.esp wrt workflow.
    Thanks in Advance
    Shivanand

    Check this link.
    http://mailman.mit.edu/pipermail/sap-wug/2003-April/008883.html
    Thanks
    Arghadip

  • Creation of spool for job created by calling FM in background task

    Hi Gurus,
    1.Wanted to confirm if it is possible to attach spool to the job that has been created by calling a function module in background task.
    Currently I have created one RFC enabled FM and called it in background task. It runs fine, and the job is created which can be seen in SM37. But it does not contain the spool even if the RFC FM contains the code for list ALV.
    2. Also is it possible to control the name of the job created by calling the RFC FM in background task?
    Code for calling the FM is given below(ZK_XX is th RFC FM):
    CALL FUNCTION 'ZK_XX' IN BACKGROUND TASK
    CALL FUNCTION 'START_OF_BACKGROUNDTASK'
    EXPORTING
       startdate       = sy-datum
       starttime       = sy-uzeit
      NOSEND          = ' '
    COMMIT WORK.
    Thanks a lot for your help!!
    Warm Regards,
    Raveesh

    Thanks for replying.
    I need to do the processing in background. Hence using 'IN BACKGROUND TASK' addition.
    Please let me knowif you have some idea.
    Thanks & Warm Regards,
    Raveesh

  • Best practices for realtime communication between background tasks and main app

    I am developing (in fact, porting to WinRT Universal App) an application connecting to Bluetooth medical devices. In order to support background connectivity, it seems best is to use background tasks triggered by a device connection. However, some of these
    devices provide a stream of data which has to be passed to the main app in real time when it is active - i.e. to show an ECG on the screen. So my task ideally should receive and store data all the time (both background and foreground) and additionally make
    main app receive it live when it is in foreground.
    My question is: how do I make background task pass real-time data to the app when it is active? Documentation talks about using storage, but it does not seem optimal for realtime messaging.. Looking for best practices and advice. Platform is Windows 8.1
    and Windows Phone 8.1.

    Hi Michael,
    Windows phone app has resource quotas, to prevent it from interfering with real-time communication functionality, background task using the ControlChannelTrigger and PushNotificationTrigger receive guaranteed resource quotas for every running task. You can
    find more information from
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh977056(v=win.10).aspx. See Background task resource guarantees for real-time communication section. ControlChannelTrigger is not supported on windows phone, so you can have a look at PushNotificationTrigger
    class.
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel.background.pushnotificationtrigger.aspx.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Debug background task in custom workflow for PO change

    Hi,
    We are on ECC 6.0 EHP7.
    I have a custom workflow for PO object type(delegated to std object type BUS2012).
    There is a background task which has some custom code written and I need to debug this code.
    Can someone please let me know how to debug a background task?
    Thanks.

    As suggested by ronen we can debug through swo1 but we have to pass values manually for importing parameters, by using sm50 also we can do debug and there is one more way  to debug
    if its custom task change background  task to fore ground and change business object method also change it to fore ground and activate the work flow.
    now change any  po  then it will stop at that step now take that work item id in swi1 and go to swia and execute after putting break point in that method of business object.
    But best way to debug  through infinite loop i.e sm50.
    suri

  • Can we change the user 'WF-BATCH' for the background task

    hi,
    I have a dialog step followed by a background task in the workflow.i wanted the user who processed the dialog step should be the one who has completed the workflow instead of the user 'WF-BATCH'.
    Is there any possibility? And does it logically sense from a business process point of view.
    Please do reply in this regard.
    Regards,
    Saujanya

    Hi
    If the update must be in the background then no it is not possible.  It is therefore important to weigh up the usability constraints of using a dialog task as opposed to what can be gained in terms of the business process flow and audit concerns.
    We must however remember that the object (such as FI doc or PO for example) exists within the concept of all related objects in R3, and this includes the workflow instance, change docs, and associated logs.  So the argument of just looking at the individual database record without its associated workflow instance - with its record of who actually did what, and to which object - does not give a true picture of the overall business process.
    Regards
    Gareth

  • How to deactivate task complete in task properties for background task.

    Hi Workflow Experts,
          How to deactivate task complete in task properties for background task. Please suggest me.
    Thanks
    Ashraf

    Hi Ashraf,
    You misunderstood the problem. The workflow will never hang up when the Task complete icon is in green color.
    When you do agent determination and BO method assignement done properly in the task level, it shows green color.
    Try to check the workflow log and find out the issue.
    Reward points if it helps.
    Thanks,
    Saravanan.

  • Crystal Reports background processing for SAP Business One 8.8

    Dear Partners,
    I have an SDK program developed in SAP Business One SDK that works in 2007, it calls crystal reports externally and can be executed as a background task using the windows schedular or from the command prompt.
    My problem is it does not work under SAP Business One SDK 2008 PL18 with SQL Server 2008, Visual Studio 2008.
    I receive the following message after this line in my code,"oReport.PrintToPrinter(CopyNo, False, 0, 0)".
    'CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at BGProductionRpt.ECR_Common.ECR_PrintReport(Int32 CopyNo) in C:\SDK Development\8.8\test\XX_Rpt\ECR_Common.vb:line 485'
    My Question is what Crystal Reports libraries or other method should I be using ?
    Crystal Reports 2008 for SAP Business One eg. 51038978.zip - downloaded from portal obviously dosn't contain the CrystalDecisions libraries.
    Crystall Reports 2008 - cr2008_sp3_fullbuild, cr2008fp33.exe, cr2008fp33_mm, cr2008fp33_clickonce - also download from the portal, the cr2008_sp3_fullbuild does contain the crystal decisions libraries.
    Finally other choices are crystal reports included with the visual studio 2008 and crystal reports full version direct from Business Objects.
    I have tried different versions of crystal decision libraries- eg, 12.0110 or 12.02 but still no joy.
    Also if I manage to get the report to fire what should the client be running eg, if they have the Crystal Reports 2008 for Business One do they also need to install the Crystal Reports Run time - cr2008fp33_clickonce.
    Any help would be appreciated.
    Thanks.

    Hi John
    Since the SDK works in 2007 it will be using the OLD DB access method.
    Change the Crystal report to use an OLE DB datasource rather than the SAP Business One data source.
    Regards
    Rob

Maybe you are looking for

  • Bluetooth Preferences Keep Changing

    I have my bluetooth mouse preference set so that bluetooth devices won't wake the computer. About once a week, the computer decides to change it so that bluetooth devices will wake the computer. What gives? It's getting pretty frustrating. Also, the

  • How do I get out of this problem?

    I wanted to transfer all my purchased apps to my notebook computer. I finally found how to do it and when it was transferring it, the space on my iPhone exceeded for some reason. I had maybe 1,3GB left but it showed it exceeded by like 200MB and the

  • My macbook trackpad is acting weird

    I was working on my MacBook Pro and it start acting weird, it would go all over the place and it would zoom in and zoom out, go back and forth pages it was crazy. I shut it down for couple hours then I opened it and it was ok for couple a minutes the

  • Xml forms not rendered in default layout set - urgent

    Hi guys, I've to display several properties and to provide the rating and feedback service in conjunction with xml forms because a "NewsRenderer" doesn't support the display of additional properties. So I tried to use one of the default layout sets (

  • SOA Suite Issue in Oracle Application Server

    Can anyone tell me ? why it says opmctl.exe is not recognized command at sql prompt . let me know please . any help would be highly appreciated . C:\product\10.1.3.1\OracleAS_1>opmctl.exe startall 'opmctl.exe' is not recognized as an internal or exte