の機能と使用Uri
方法はUri.parse()
何ですか?
例えば :
Uri.parse("tel:(+49)12345789"));
と
Uri.parse("geo:50.123,7.1434?z=19"));
何tel
をgeo
参照しますか?
の機能と使用Uri
方法はUri.parse()
何ですか?
例えば :
Uri.parse("tel:(+49)12345789"));
と
Uri.parse("geo:50.123,7.1434?z=19"));
何tel
をgeo
参照しますか?
Uriオブジェクトは通常、参照によってアクセスしたいものをContentProviderに伝えるために使用されます。これは、リソースまたはデータへの不変の 1 対 1 のマッピングです。このメソッドは、適切にフォーマットされた からUri.parse
新しいオブジェクトを作成します。について詳しくはこちらをご覧ください。Uri
String
ContentProviders
1.1 URIの概要
URI は、次の定義によって特徴付けられます。
Uniform Uniformity provides several benefits: it allows different types of resource identifiers to be used in the same context, even when the mechanisms used to access those resources may differ; it allows uniform semantic interpretation of common syntactic conventions across different types of resource identifiers; it allows introduction of new types of resource identifiers without interfering with the way that existing identifiers are used; and, it allows the identifiers to be reused in many different contexts, thus permitting new applications or protocols to leverage a pre-existing, large, and widely-used set of resource identifiers. Resource A resource can be anything that has identity. Familiar examples include an electronic document, an image, a service (e.g., "today's weather report for Los Angeles"), and a collection of other resources. Not all resources are network "retrievable"; e.g., human beings, corporations, and bound books in a library can also be considered resources. The resource is the conceptual mapping to an entity or set of entities, not necessarily the entity which corresponds to that mapping at any particular instance in time. Thus, a resource can remain constant even when its content---the entities to which it currently corresponds---changes over time, provided that the conceptual mapping is not changed in the process. Identifier An identifier is an object that can act as a reference to something that has identity. In the case of URI, the object is a sequence of characters with a restricted syntax.
使用中のいくつかを次に示します。
1.3。URIの例
次の例は、一般的に使用されている URI を示しています。
ftp://ftp.is.co.za/rfc/rfc1808.txt -- ファイル転送プロトコル サービスの ftp スキーム
gopher://spinaltap.micro.umn.edu/00/Weather/California/Los%20Angeles -- Gopher および Gopher+ プロトコル サービスの gopher スキーム
http://www.math.uio.no/faq/compression-faq/part1.html -- ハイパーテキスト転送プロトコル サービスの http スキーム
mduerst@ifi.unizh.ch -- 電子メールアドレスの mailto スキーム
news:comp.infosystems.www.servers.unix -- USENET ニュース グループと記事のニュース スキーム
telnet://melvyl.ucop.edu/ -- TELNET プロトコルを介した対話型サービスの telnet スキーム
参考文献: