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

DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$216.18
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureLOT OF 25 - NEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM
$159.99
LOT OF 25 - NEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM pictureOEM BULB with Housing for DELL 725-10323 Projector with 180 Day Warranty
$319.0
OEM BULB with Housing for DELL 725-10323 Projector with 180 Day Warranty pictureGenuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series
$44.98
Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series pictureGenuine OEM Dell C233R Black Laser Printer Toner Cartridge 14K PGS 884116017295
$79.99
Genuine OEM Dell C233R Black Laser Printer Toner Cartridge 14K PGS  884116017295 picture






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