Code example for KeyguardManager.KeyguardLock

Methods: disableKeyguard, reenableKeyguard

0
				PowerManager.ON_AFTER_RELEASE, "disableLock");
		wakelock.acquire();
		 
		KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE);
		keylock = keyguardManager.newKeyguardLock("disableLock");
		this.keylock.disableKeyguard();
		 
		 
		this.wakelock.release();
		this.keylock.reenableKeyguard();
		 
		Log.d("Service","���b�N���܂���");
	} 
	 
	public void saveDatabase(){ 
		 
		Date date = new Date(System.currentTimeMillis());
		SimpleDateFormat sdf1 = new SimpleDateFormat("'D'yyMMdd");
		DBHepler dbh = new DBHepler(this,sdf1.format(date));
		SQLiteDatabase db = dbh.getReadableDatabase();
Connect your IDE to all the code out there  Get Codota for Java