關於service中intent-filter data屬性的一個小坑


            <intent-filter>
                <action android:name="com.xx.service.xxService.Action" />
                <data  android:scheme="http"  android:host="www.baidu.com"   />
            </intent-filter>

</service>


如果要配置多個data,path屬性就不要寫了,不然會引起很多不必要的麻煩。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章