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

Digital Ammeter 0-20mA No Shunt Required
$4.79
Digital Ammeter 0-20mA No Shunt Required pictureDC 100V 10A Voltmeter Ammeter Blue + Red LED Dual Digital Volt Meter Gauge U6W6
$3.57
DC 100V 10A Voltmeter Ammeter Blue + Red LED Dual Digital Volt Meter Gauge U6W6 pictureBS Instrument 85C17 DC 0-50A AMP Analog Panel Meter Ammeter
$3.32
BS Instrument 85C17 DC 0-50A AMP Analog Panel Meter Ammeter pictureCraftsman Digital 400A AC / DC Clamp-On Ammeter - 82369
$158.34
Craftsman Digital 400A AC / DC Clamp-On Ammeter - 82369 pictureCraftsman Digital Clamp-On Ammeter-82372-NEW
$29.99
Craftsman Digital Clamp-On Ammeter-82372-NEW picture






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