String url = "mx://gfandetail?p_id=4310&source_type=0";
String arg
= url.substring(url.indexOf("?")+1,url.length());
String[] strs
= arg.split("&");
HashMap
<String, String> map = new HashMap<String, String>();
for(int x=0;x<strs.length;x++){
String[] strs2
= strs[x].split("=");
if(strs2.length==2){
System.
out.println(strs2[0]+" "+strs2[1]);
map.put(strs2[
0], strs2[1]);
}
}
posted on 2011-03-09 20:14  Android火鸟  阅读(1961)  评论(1)    收藏  举报