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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -