No, there is no generic URL for external targets. You should not try to use a static URL for external targets.
Look at the example you cited:
Code:
public void targetDetected(TargetProperties[] targetProperties) {
for (int i = 0; i < targetProperties.length; i++) {
TargetProperties tp = targetProperties[i];
(...)
try {
form.append("url: " + tp.getUrl(Class.forName(
"javax.microedition.contactless.sc.ISO14443Connection"))
+ "\n");
} catch (Exception ex) {
form.append(ex.toString());
}
(...)
}
You can retrieve the URL to the ISO14443Connection of your current target by calling the target properties' getURL() method:
Code:
tp.getUrl(Class.forName(
"javax.microedition.contactless.sc.ISO14443Connection"))
This URL can be used with the Connector.open() method.
br,
Michael