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

Hewlett Packard 0950-2283 High Power Supply for E1401A Mainframe Zytec 22915300
$79.99
Hewlett Packard 0950-2283 High Power Supply for E1401A Mainframe Zytec 22915300 pictureHP E1401B 75000C Mainframe with High Power Supply and VXI-MXI-2 Bus Interface
$99.99
HP E1401B 75000C Mainframe with High Power Supply and VXI-MXI-2 Bus Interface pictureHP 75000 Series C Agilent E8404A VXI Mainframe
$99.99
HP 75000 Series C Agilent E8404A VXI Mainframe pictureAgilent Technologies 3499A Switch/Control System Mainframe (Mainframe Only)
$99.99
Agilent Technologies 3499A Switch/Control System Mainframe (Mainframe Only) pictureHewlett Packard HP 66104A 0-60V 2.5A DC Power Module for 66000A Mainframe
$99.99
Hewlett Packard HP 66104A 0-60V 2.5A DC Power Module for 66000A Mainframe picture






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