/**     * Searches the query string for the first value with the given key.     *     * 

Warning: Prior to Jelly Bean, this decoded * the '+' character as '+' rather than ' '. * * @param key which will be encoded * @throws UnsupportedOperationException if this isn't a hierarchical URI * @throws NullPointerException if key is null * @return the decoded value or null if no parameter is found */ public String getQueryParameter(String key)

在Android中操作Uri经常会调用上述方法,可能自己粗心大意,没注意注释,注释上已经说明,返回值是null或者是解码之后的内容。所以通常不需要自己在对返回值进行解码,否则可能引起二次解码带来的问题。

更多相关文章

  1. 调用getChildFragmentManager时出现的Bug
  2. Android(安卓)直接通过JNI访问驱动
  3. Android(安卓)SQLite数据库增删改查
  4. android支付宝 KeyFactory PrivateKey
  5. android之gradle构建工具学习之路(二)
  6. android个推消息推送,asp.net调用接口
  7. Android(安卓)API Level 与 Platform Version之间的关系
  8. DrawLayout几个注意点
  9. AES加解密源码(直接可调用)

随机推荐

  1. 8/人天,小记一次 JAVA(APP后台) 项目改造 .N
  2. VC6.0添加注释快捷键,类似Eclispe如此方便
  3. 用javascript进行拖拽2(转)
  4. 手低眼高 初学者学习Hibernate的方法
  5. java线程--volatile实现可见性
  6. 添加到arraylist中的列表时IndexOutOfBou
  7. 作为一只程序猿,我要说说IT业的研发工程师
  8. jQuery(JavaScript)获取文字(字符串)宽度(显示
  9. 变态跳台阶(java版)
  10. 为什么我的Java Web服务不能与我的Perl后