Android ANR on registerReceiver -
my app crashes on line:
localbroadcastmanager.getinstance(context.getapplicationcontext()). registerreceiver(handler, new intentfilter("data_update"));
in traces.txt found out, registerreiceiver blocked thread, broadcast send.
schedstat=( 0 0 0 ) utm=141 stm=2 core=0 @ android.support.v4.content.localbroadcastmanager.sendbroadcast(localbroadcastmanager.java:~240)
how can avoid situation?
Comments
Post a Comment