I am working on an application which has its own URI prefix. (dchub:// in this case)
Searching all over and read a lot but I got a bit confused.
Is it possible
Try this code:
try {
Uri data = getIntent().getData();
if (data.equals(null)) {
} else {
String scheme = data.getScheme();
String host = data.getHost();
int port = data.getPort();
//type what u want
tv.setText("any thing");
}
} catch (NullPointerException e) {
// TODO: handle exception
tv.setText("Null");
}