Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. FileID=file.getId();//it is your file ID which you want to display
  2.  
  3. String url = "https://docs.google.com/file/d/"+FileID;
  4. Intent i = new Intent(Intent.ACTION_VIEW);
  5. i.setData(Uri.parse(url));
  6. startActivity(i);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement