gcm으로부터 메시지를 받으면 화면이 깨워지게 하려고 구성하는데

onMessage 함수에 아래와 같이 적었는데 화면이 안꺠워져요.. 메시지는 잘오는데말이죠 ㅠ


ContentActivity.mActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |

          WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);

    AlarmWakeLock.wakeLock(context);

   


    mNotiManager = (NotificationManager)context.getSystemService(context.NOTIFICATION_SERVICE);

    noti = new Notification(R.drawable.ic_launcher, qtDTO.getTitle(), System.currentTimeMillis());

    PendingIntent qtPIntent = PendingIntent.getActivity(context, 0, qtIntent, 0);

    noti.setLatestEventInfo(context, "Quiet Time...", qtDTO.getTitle(), qtPIntent);

    mNotiManager.notify(Constant.ETC.THAMES_NOTI_ID , noti);

    tsf = new ThamesSharedPreferences(ContentActivity.mActivity);

    //소리 켯을경우 소리재생

if(tsf.getQTSound()){

AudioManager audioManager = (AudioManager)context.getSystemService(context.AUDIO_SERVICE);

if(audioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL){

MediaPlayer mp;

if(tsf.getQTSoundURI().equals("sound01")){

mp = MediaPlayer.create(context, R.raw.sound01);

}else if(tsf.getQTSoundURI().equals("sound02")){

mp = MediaPlayer.create(context, R.raw.sound02);

}else{

mp = MediaPlayer.create(context, R.raw.sound01);

}

mp.start();

}

}

//진동을 켯을경우 진동

if(tsf.getQTVive()){

Vibrator vibes = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);

//두번 진동하여 카톡처럼!!ㅋㅋㅋ

vibes.vibrate(500);

}

AlarmWakeLock.releaseWakeLock();


파워매니저만으로 안되서 getWindow를 써야한다길래 섞어봐도 잘안되네요.. 뭐가 문제죠?