How to listen for a custom URI

后端 未结 3 591
野的像风
野的像风 2020-11-30 09:10

I am working on an application which has its own URI prefix. (dchub:// in this case)

Searching all over and read a lot but I got a bit confused.

Is it possible

3条回答
  •  攒了一身酷
    2020-11-30 09:57

    Don't use data.equals(null). That is bound to fail, you can't call methods on a null object, hence the NPE.

    Why the emtpy code block? In my mind, this is a lot prettier:

    if(data != null){
        // code here
    }
    

提交回复
热议问题