【发布时间】:2014-02-05 13:04:48
【问题描述】:
我创建了一个pdf,现在想在Google drive 和Dropbox 上upload,但无法上传。我使用了以下代码:
Uri pdfUri = Uri.parse("file://" + File.separator+ "sdcard" + File.separator + "A****" File.separator + "A****.pdf");
Intent shareIntent = ShareCompat.IntentBuilder.from(TripHome.this).setText("Share PDF doc").setType("application/pdf").setStream(pdfUri).getIntent().setPackage("com.google.android.apps.docs");
startActivity(shareIntent);
【问题讨论】:
-
这应该可以帮助您入门:developers.google.com/drive/android/examples
-
我在 iphone 中遇到了同样的问题。
-
这与文件格式“PDF”有什么关系吗?它似乎只(非常)与我无关。
-
@RanjanSahu,那么你应该发布另一个关于它的问题(当然,在做一些研究之后),因为代码不会一样......
标签: android pdf share dropbox google-drive-api