Code example for URISyntaxException

Methods: getMessage

0
        Intent intent;
        // Perform generic parsing of the URI to turn it into an Intent. 
        try { 
            intent = Intent.parseUri(intentUrl, Intent.URI_INTENT_SCHEME);
        } catch (URISyntaxException ex) {
            Log.w(TAG, "Bad URI " + intentUrl + ": " + ex.getMessage());
            return; 
        } 
 
        try { 
            context.startActivity(intent);
        } catch (ActivityNotFoundException ex) {
            Log.w(TAG, "No application can handle " + intentUrl);
        } 
    } 
 
    public void onExternalVideoSurfaceRequested(int playerId) {
    } 
 
    public void onGeometryChanged(int playerId, RectF rect) {
    }