well, kind of longshot. i'm trying display user notifications inside app, in listview or something... tried turn screen on lockscreen. but, when using code:
windowmanager.layoutparams params = getwindow().getattributes(); getwindow().addflags(windowmanager.layoutparams.flag_show_when_locked | windowmanager.layoutparams.flag_turn_screen_on); params.screenbrightness = 1; getwindow().setattributes(params);
it turn screen on app itself.
maybe there way notifications notification center , view them in app? or turn screen on lock screen? thank you.
edit:
i'll explain. friend can't touch phone, , want see every x minutes if there new notifications/sms/whatsapp , such. started develop runonuithread turn screen on , off every x minutes. but, problem screen turn on app , not lockscreen there notifications. so, have 2 options. or find way turn screen on lock screen, or turn screen on app , pull notifications listview in app.
Comments
Post a Comment