Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an image uri? Image uri inside the listview

Tags:

android

Can someone please explain to me what's an image uri? I have an android app with a listview that can attach an image, and that listview displays the imag uri. thanks

like image 882
general_bearbrand Avatar asked Dec 06 '13 16:12

general_bearbrand


2 Answers

URI is an address like: http://www.google.com/image.png it refers to the image somewhere.

It can also be a local address: file:////something.png

So you can attach a file that you don't have on your device and you don't want to download it.

like image 184
Zelí Avatar answered Nov 15 '22 12:11

Zelí


URI or Uniform Resource Identifier is a compact sequence of characters that identifies an abstract or physical resource. It can be further classified as a locator, a name, or both.

Basically URI (in some cases URL or URN) will point to the image location, or will be the name of the image (why not both?).

Let's take a look at some URI examples:

  • https://stackoverflow.com/ (a URL because of the HTTPS protocol)
  • ftp://ftp.is.co.za/rfc/rfc1808.txt (also a URL because of the FTP protocol)
  • http://www.ietf.org/rfc/rfc2396.txt (also a URL because of the HTTP protocol)
  • ldap://[2001:db8::7]/c=GB?objectClass?one (also a URL because of the protocol)
  • mailto:[email protected]
  • tel:+1-816-555-1212
  • telnet://192.0.2.16:80/ (also a URL because of the protocol)
like image 30
Stundji Avatar answered Nov 15 '22 12:11

Stundji