Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Java.Net.URI and Android.Net.Uri are both classes that represent Uniform Resource Identifiers (URIs). However, they differ in the following ways:

  1. Packages: Java.Net.URI is part of the Java standard library, while Android.Net.Uri is part of the Android SDK.

  2. Constructors: Java.Net.URI has three constructors, while Android.Net.Uri has several overloaded constructors that allow for more flexibility.

  3. Parsing: Android.Net.Uri has built-in support for parsing URIs that reference Android app resources, whereas Java.Net.URI does not.

  4. Methods: Android.Net.Uri has several additional methods that are specific to Android, such as getEncodedPath() and parseToUri(). Java.Net.URI does not have these methods.

  5. Compatibility: Java.Net.URI is compatible with all Java platforms, while Android.Net.Uri is specific to the Android platform.