If I read it correctly, for example, runtime exception (NPE) is thrown
No, this is some other problem. Intent worked clearly because the crash comes from the settings themselves, and not from the application called startActivity() .
I would like to use something more specific, although like an ActivityNotFoundException - but is that enough?
It should be.
If you are worried about this or prefer to be active rather than just calling startActivity() , first use the PackageManager and resolveActivity() . If this returns null , there is no activity that matches the Intent , and you should try something else.
source share