My app won't show up on the "Complete action" chooser dialog for android.intent.action.Call -


when incoming call on mobile time want ask user select action "in app wants pickup call".

normally per research when use android:permission="android.permission.call_phone" action receiver automatically open "complete action using" unfortunately not getting popup.

to open popup, have done below code

intent = new intent(intent.action_call); it.setdata(uri.parse("tel:" +number)); it.setflags(intent.flag_activity_new_task);  if (activitycompat.checkselfpermission(ctx,         manifest.permission.call_phone) != packagemanager.permission_granted) {     return; } ctx.startactivity(it); 

and using code "complete action using" popup open not getting app in selection

i refer below link make scenario working how use android.intent.action.call_privileged , android.intent.action.new_outgoing_call?

so can 1 please me make scenario working?

action_call used outgoing call, not incoming call. not sure can want. somehow need "hold" incoming call while ask user app should answer it. however, answering incoming call done in broadcastreceiver, not in activity.

you can @ of answers in question. person trying similar (show activity on default incoming call screen). seems difficult.

and here pretty complete explanation of happens when incoming call arrives.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -