KeyguardManager question

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

Sponsored Links
 here is the code for my app

package com.test.bgTest;

import android.os.Bundle;

public class BackgroundTest extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

        final MediaPlayer mp = MediaPlayer.create(this, R.raw.alert);

        KeyguardManager kg = ( KeyguardManager ) getSystemService
( "keyguard" );


i want to be able to alert phone owner when pattern login failed.

but how do i use a listener to actually catch the fail attempt to
unlock keyguard.


Other Threads

1. Closing a program?

How do you actually close a program on the G1? You could do this in
Windows Mobile and I wondered if you can do it in Android? For
example, if you use the camera then return to the home page, how do
you actually close the camera app and stop it using the battery?


2. Default Alarm Ringtone Uri

Can anyone tell me how to get the Uri for the default Alarm Ringtone?
I can get them for reg ringtones and for notifications, but not for
Alarms. Basically I'm having the user select an Alarm using the
RingtonePicker (works fine) but if the user does not select a specific
one, I'd like to automatically select a default for them (Like how the
current alarm clock does with the Beep-Beep alarm).

Anyone know how to do this? RingtoneManager.getDefaultUri(int type)
seems to only support the types TYPE_RINGTONE and TYPE_NOTIFICATION.

Any help would be much appreciated.


3. JMCAD is an program for the modeling and simulation of complex dynamic systems

4. Define a [style] theme programatically and make it default

5. Knowledge of Android?

6. Help to get Android applications license like Gmail, Google Map etc

7. Problems with Cupcake OTA update for ADP1