I am showing a popup screen when the screen is locked when some event happens.
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON |
            WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
            WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
}
Problem is - after a lot of frustration I found this answer, saying that this doesn't work when the activity is using a Theme.Dialog.
I want my activity to not be full screen, its suppose to be more or less like a sms popup notification. how can I do that without the Theme.Dialog Theme?