broadcastreceiver - Android 5+ screen locks can't add view with WindowManager -


i've got identified call app worked till android 5+.

basically i've got broadcastreceiver "do thing" when phone rings after identifying call add small view.

on new galaxy edge s6 doesn't work when phone locked.

here related code

wm = (windowmanager) context.getsystemservice(context.window_service); final windowmanager.layoutparams params = new windowmanager.layoutparams(                     windowmanager.layoutparams.wrap_content,                     windowmanager.layoutparams.wrap_content,                     windowmanager.layoutparams.type_system_alert, // type_phone                     windowmanager.layoutparams.flag_not_focusable,                     pixelformat.translucent);             params.gravity = gravity.center;              wm.addview(app.phonelayout, params); 

app.phonelayout contains layout after inflating etc..

does have idea why such thing happen? , how able fix view shown when phone locked?

it's working fine on older devices.

hope can share thoughts on this


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -