This is a migrated thread and some comments may be shown as answers.

Running RadTimeSpanPicker control in background

3 Answers 22 Views
TimeSpanPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
avtar
Top achievements
Rank 1
avtar asked on 12 Sep 2014, 04:08 PM
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.


3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 17 Sep 2014, 10:52 AM
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.

 
0
avtar
Top achievements
Rank 1
answered on 18 Sep 2014, 06:44 PM
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



0
Rosy Topchiyska
Telerik team
answered on 23 Sep 2014, 05:25 PM
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.

 
Tags
TimeSpanPicker
Asked by
avtar
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
avtar
Top achievements
Rank 1
Share this question
or