BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-29-2007, 04: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, 10: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, 10: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

NEW FELLOWES FEL8037601 Professional Series Back Support, Memory Foam Cushion,
$63.62
NEW FELLOWES FEL8037601 Professional Series Back Support, Memory Foam Cushion, pictureNEW ACCO L82025 Memory Foam Backrest, 13-1/4w x 1-3/4d x 14-1/4h, Black
$55.81
NEW ACCO L82025 Memory Foam Backrest, 13-1/4w x 1-3/4d x 14-1/4h, Black pictureMOS MEMORY DATA BOOK 1981 Fairchild
$10.95
MOS MEMORY DATA BOOK 1981 Fairchild  pictureSIMPLEX 4100 2120 FIRE ALARM SCC MEMORY ADAPTER BOARD ASSEMBLY 565-133
$24.99
SIMPLEX 4100 2120 FIRE ALARM SCC MEMORY ADAPTER BOARD ASSEMBLY 565-133 pictureOffice Star Ergonomic Kneeling Office Chair with Memory Foam in Black
$79.44
Office Star Ergonomic Kneeling Office Chair with Memory Foam in Black picture






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