Matching contexts when building uri and launching activity for documents