Running RadTimeSpanPicker control in background

4 posts, 0 answers
  1. avtar
    avtar avatar
    2 posts
    Member since:
    Jul 2013

    Posted 12 Sep 2014 Link to this post

    Hi,

    I am developing a app using RadTimeSpanPicker control and it is working fine. I am able to get all basic functionality. I need help to make sure RadTimeSpanPicker work in background if user amove to some other app or under lock screen.

    For example: if User setup a stopwatch time for 2 minute and after 10 second user move to some other app and after 1 minute user come back to my app then stopwatch should display 1:10 minute instead of resuming at 10 Second.

    Thanks,
    Avtar Singh.


  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 17 Sep 2014 Link to this post

    Hello Avtar,

    Thank you for contacting us.

    You can take a look at this thread from stackoverflow where a similar problem is discussed:
    How to run a timer on background in windows phone 8?

    I hope this helps. Please, let us know if you have further questions.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. avtar
    avtar avatar
    2 posts
    Member since:
    Jul 2013

    Posted 18 Sep 2014 in reply to Rosy Topchiyska Link to this post

    Hi Rosy,I have tried all possible compbination mentioned in given blog but I am unable to get it working. I am not able to achieve below functionality using Telerik stopwatch control. 

    if User setup a stopwatch time for 2 minute and after 10 second user move to some other app and after 1 minute user come back to my app then stopwatch should display 1:10 minute instead of resuming at 10 Second

    Below is the link mainPage.xaml and .cs file. Please check out attached solution and see if Telerik background worker can be used to active this.
     https://onedrive.live.com/redir?resid=2E6A1931FB6D7349%21105



  5. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 23 Sep 2014 Link to this post

    Hello Avtar,

    Thank you for the attached code.

    Your question is not related to the RadTimeSpanPicker control. You can save the current DateTimeOffset and the remaining time when the application is deactivating/closing. When the application is launched/activated again, you can check the time difference between the current moment and the previously saved DateTimeOffset value and subtract it from the remaining time.

    I hope this helps.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top