I need to answer to the YES/NO system dialog programmatically
for example this code closes any dialog that comes to the screen
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Log.e("Focus debug", "Focus changed !");
if (!hasFocus) {
Log.e("Focus debug", "Lost focus !");
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
is it possible to do something else ? to click YES or NO on that dialog ???
I searched for something different from ACTION_CLOSE_SYSTEM_DIALOGS but I got nothing
I might need to catch the dialog first .. then I need to click yes when the phone shows yes/no dialog asking the user to enable the bluetooth is it possible?