BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-29-2007, 05:35 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: t-mobile
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Determine device idle time

Please Login to Remove!

I'm running a background thread which should start an action after the BB is idle for 20 minutes or so.
Everything is going well so far, but i don't know how to determine the BBs idle time (meaning not only no phone calls have been made, but no actions have occured on the BB).

Would be nice, if somebody could help me on this.
Offline  
Old 08-29-2007, 11:34 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

DeviceInfo.getIdleTime() should do the trick
Offline  
Old 08-29-2007, 11:41 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: t-mobile
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx a lot, i wasn't aware of the DeviceInfo class until you pointed me at it.
This class will prove very useful for me and it also solves my problem.

Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.