Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 128
Registered: ‎11-05-2009
My Device: 9700
My Carrier: 9700

How to check the user can not type any keys or touch the device for a particular time

Hi

 

   I am developing an application for blackberry. In that i need to check that the user has not access the application (not typed any keypads/touch the device) for a particular time intervel (for eg 2mins) , if that i need to logout the application.

 

So i want to know how to check the user has not typed any keys/touch the device for a paricular time.

 

Thanks

mindus

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to check the user can not type any keys or touch the device for a particular time

you can overwrite touchEvent/navigationclick as well as keyDown and register the event with a timestamp.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter