I am getting this ANR in our app . Whenver I am calling startForegroundService() , in the start of the onCreate(), I am elevating the service to foreground with a notification .
Is there any way I can avoid this ANR ? This contributes to 90% of the ANR that we are getting .