correct way to use getSystemService?

by yesk13 » Mon, 13 Apr 2009 12:13:58 GMT

Sponsored Links
 KeyguardManager kg = ( KeyguardManager ) getSystemService
( "keyguard" )

is the above correct way to use to get a handle to KeyguardManager

i want to use OnKeyguardExitResult listening to it and do something if
user was not able to authenticate.

your help is greatly appreciated.


Other Threads

1. give-up screen (going to sleep)

I am developing an application that uses the accelerometer and/or gps
inside of a service.  It will be in use while the service runs in the
background until the user terminates the service.  I am using usb
debugging on the device and I noticed in logcat it is saying give-up
screen and my service stops getting input from the accelerometer.  Is
there a way to have a service run while the phone is idle for a period
of time without having to disable the key-lock?


2. Screen Only Numeric Input

I'm wandering through the interwebs and the discussion boards looking
for a way to input numeric text only without having to flip open the

I've fumbled my way across several options, including the
NumberKeyListener, the DigitsKeyListener and the DialerKeyListener.
These are all helpful and everything, but what I've been hoping for is
for some kind of dialer-ish input widget.

Scanning the android jar file, I can see that there is a
"number_picker.xml" and a "number_picker_edit.xml", (in the res.layout
section) but I don't see a way of accessing these UI nuggets.

Am I missing something in particular? I can write my own numeric
widget if there is none available, but I'd feel really stupid writing
one if there is already one in the android jar.

Thanks in advance.


3. Can I use my PC's serial port to communicate with my bluetooth reference board

4. OI Flashlight

5. Possible bug in Market? (about versionCode)

6. g1 keyboard missing up/down/left/right keys?

7. Download Count Reset on App Upgrade in Android Market