android - 在单元测试时,无法为Uri赋值。
黄舟
黄舟 2017-04-17 17:25:10
0
1
558

使用这段代码为Uri赋值

Uri u =Uri.parse("content://com.ljq.provider.personprovider/person");

在Activity里成功了,但是在单元测试里uri为空。这是为什么,有什么办法能成功赋值。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
黄舟

There is no problem in terms of assignment. There must be other reasons why it is empty. Review your code carefully and log and analyze before and after modifying the uri

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template