Uri uri = Uri.parse("http://www.example.com/index.html"); String scheme = uri.getScheme();
Uri uri = Uri.parse("file:///sdcard/documents/report.doc"); String scheme = uri.getScheme();In this example, the scheme variable would be set to "file". These examples make use of the android.net.Uri class which is part of the Android SDK. Therefore, the package library in use is likely to be android.net.