开发者

Error creating Uri object

Every time I create an Uri object as new Uri("some uri") it says an Uri cannot instantiate. Is there 开发者_运维知识库any other solution?

Uri u = new Uri("content://contacts");


Use this:

  Uri.parse("link/here");

http://developer.android.com/reference/android/net/Uri.html#parse%28java.lang.String%29

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜