Code example for Context

Methods: startActivity

0
    public void onScanCompleted(String path, Uri uri) {
        try { 
            if (uri != null) {
                Intent intent = new Intent(Intent.ACTION_VIEW);
                intent.setData(uri);
                mContext.startActivity(intent);
            } 
        } finally { 
            mConnection.disconnect();
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java