package com.example.theold;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Vibrator;
import android.provider.Contacts;...
分类:
其他好文 时间:
2014-12-22 18:07:06
阅读次数:
182
1. uri 和 url读取区别区别就是URI定义资源,而URL不单定义这个资源,还定义了如何找到这个资源。比如说,一个服务器上,到一个文件夹/网页的绝对地址(absolute path)就是URI。Nginx的rewirte是针对 uri的 不是url.2. location的使用 loca...
分类:
其他好文 时间:
2014-12-22 15:59:33
阅读次数:
147
概述对于uri的编解码,在js中有3对函数,分别是escape/unescape,encodeURI/decodeURI,encodeURIComponent/decodeURIComponent。它们的适用范围不同,而且遵循的编码规范也不同。对于上述函数而言,所有的ASCII的字符编码相同,采用%...
分类:
其他好文 时间:
2014-12-22 15:48:24
阅读次数:
159
1.URI是一类更通用的资源标识符,URL实际上是它的一个子集。URI是一个通用的概念,由两个主要的子集URL和URN构成。URL是通过描述资源的位置来标识资源的,URN是通过名字来标识资源的,与其当前所处位置无关。HTTP规范将更通用的概念URI作为其资源标识符。但实际上HTTP应用程序处理的只是...
分类:
Web程序 时间:
2014-12-22 10:58:09
阅读次数:
254
在ngx_http_process_request_line函数中,解析完请求行之后,如果请求行的uri里面包含了域名部分,则将其保持在请求结构的headers_in成员的server字段,headers_in用来保存所有请求头,它的类型为ngx_http_headers_in_t:[cpp]vie...
分类:
其他好文 时间:
2014-12-21 21:59:22
阅读次数:
257
android开发,我在我的 activity 插入一个按钮,如果andriod market找不到的话就使用 toast进行提示,在使用的时候出现了一些问题,下面的代码报错了 Context cannot be resolved to a variable
1
2
3
4
5
6
7
Uri
uri = U...
分类:
移动开发 时间:
2014-12-21 20:43:45
阅读次数:
195
android开发,我在我的 activity 插入一个按钮,如果andriod market找不到的话就使用 toast进行提示,在使用的时候出现了一些问题,下面的代码报错了Context cannot be resolved to a variable1234567Uri uri = Uri.p...
分类:
移动开发 时间:
2014-12-21 20:34:01
阅读次数:
154
#本程序功能:下载网络图片至本地,并按编号保存。#使用Ruby1.9.3在winxp_sp3下编写。require 'nokogiri'require 'open-uri'#以下 根据网址解析网页。page = Nokogiri::HTML(open("http://www.169bb.com/Ne...
分类:
其他好文 时间:
2014-12-20 23:20:46
阅读次数:
214
答:通过直接发送Uri把参数带过去,或者通过manifest里的intentfilter里的data属性。代码如下:
Intent intent = new Intent();
Intent.setAction(“android.intent.action.View”);
Uri uriBrowsers = Uri.parse(“http://www.sina.com.cn”);
Inte...
分类:
其他好文 时间:
2014-12-19 19:11:29
阅读次数:
275