Problem: the radio receiver is not registered;
Recurrence: register the broadcast in oncreate() and de register in onstop(). In this activity, the device enters the screen saver state and executes onstop(). At this time, the broadcast has been de registered. Click the screen to return to the interface and no longer execute oncreate(). If you enter the screen saver interface again, an exception will be generated.
Solution: if receiver registration and de registration are placed in onresume and onpause, these two processes will definitely appear in pairs, which can avoid this exception.
Read More:
- java.lang.IllegalArgumentException : URI is not absolute error
- java.lang.IllegalArgumentException: column ‘_id’ does not exist
- java.lang.IllegalArgumentException : could not get next sequenced ID for sequence name: Visitor solution
- java.lang.IllegalArgumentException : URI scheme is not “file” error resolution
- java.lang.AbstractMethodError: Receiver class com.alibaba.cloud.sentinel.feign.SentinelContractHolde
- java.lang.IllegalArgumentException : urlcoder exception resolution
- java.lang.IllegalArgumentException: Address 127.0.0.1:5672:5672 seems to contain an unquoted IPv6
- Error java.lang.IllegalArgumentException: Validation failed for query for method public abstract
- java.lang.IllegalArgumentException: Index for header ‘XXX‘ is 1 but CSVRecord only has 1 value
- Springboot startup error: java.lang.IllegalArgumentException : Property ‘sqlSessionFactory’ or ‘sqlSessionTempla
- java.lang.IllegalArgumentException: error at ::0 can‘t find referenced pointcut anyMethod
- JMeter running error response code: non HTTP response code: java.lang.illegalargumentexception find and solve
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Android error java.lang.IllegalStateException : System services not available to Activities before onC
- java.lang.IllegalStateException: Could not execute method for android:onClick
- [solved] win10 + office2016 error: library not registered, HResult: 0x8002801d
- build.gradle Warming: cannot be applied to ‘(groovy.lang.Closure)’/'(java.lang.String)’
- RPC with NFS setup error: program not registered
- Java:java.lang.OutOfMemoryError : GC overhead limit exceeded solution