Android: TelephonyManager.listen() callback not being called -


i installed call state listener on telephonymanager recognise if call outgoing. if manually start phone call callback being triggered. good. if start phone call program(same program contains callback listener) not triggered. why? (the call being established successfully) code starting call:

uri call = uri.parse("tel:" + number); intent intent = new intent(intent.action_call, call); context.startactivity(intent);

p.s.: necessary permissions set in manifest, off course. otherwise wouldn't work in manual scenario.


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -