草庐IT

document-preview

全部标签

android - 如何使用 ACTION_OPEN_DOCUMENT 显示更多提供商

我想使用作为存储访问框架的一部分提供的android系统对话框打开文件。我用Intentintent=newIntent(Intent.ACTION_OPEN_DOCUMENT);intent.addCategory(Intent.CATEGORY_OPENABLE);intent.setType("application/pdf");startActivityForResult(intent,EDIT_REQUEST);然后在onActivityResult()中处理返回的URI。问题是,在生成的菜单中,我得到的内容提供商比我预期的要少得多。只有Google云端硬盘和下载(请参见下面

android - ACTION OPEN DOCUMENT TREE 只返回空的 Recent 文件夹

我从之前的帖子中仔细复制了以下代码fragment,它在模拟器和我的Nexus9设备上都能正常工作,达到一定程度!但是,我得到的只是一个空的Recent文件夹,而且我从未接触到写入文件的代码。我必须更改什么才能获得正确的文档树?privatevoidtestDocumentTree(){Intentintent=newIntent(Intent.ACTION_OPEN_DOCUMENT_TREE);startActivityForResult(intent,42);}publicvoidonActivityResult(intrequestCode,intresultCode,Inte

android - Android 上的 SaxParser : Unexpected End Of Document Exception

尝试在android上解析xml文档时出现“SAXParseException:文档意外结束”错误。有问题的文档来自googleweatherapi,但无论有问题的xml文件如何(只要xml有效),它似乎都会抛出相同的错误,所以我怀疑这是我的方法的问题,而不是xml。这是作为一个学习练习来完成的,所以我可能(希望)忽略了一些明显的东西=)我已经通过在线验证器运行xml,返回时格式正确。(不能告诉我它是否有效,因为我没有DTD,但我认为我不需要DTD来解析xml)。这是我用来尝试解析文件的代码:privatevoidrefreshForecast()URLurl;try{url=newU

Android Studio 2.1 Preview1 给出 No space left on device 错误

我将我的androidstudio更新到2.1预览版,之后它给出了设备上没有剩余空间错误。如何解决这个问题? 最佳答案 对我来说,这是因为我的/tmp分区太小。在尝试安装大型设备镜像(Android7.1)和尝试启动AVD时,我都遇到了这些错误。AndroidStudio似乎会尝试解压/tmp中的大文件。要在Linux上增加/tmp的大小,请在/etc/fstab中设置size=参数,例如在我的Ubuntu上,我现在有:tmpfs/tmptmpfsdefaults,size=3g00需要重新启动才能应用该更改。请注意tmpfsise

Android Studio - 删除模块 - IncorrectOperationException : Must not change document outside command or undo-transparent action

我正在尝试移除/删除项目中的模块。我转到“模块设置”,然后选择我的模块并按“-”(减号)按钮。它问我是否真的要删除它,我按"is"。然后生成此异常:12:53:05ExtensionException:org.intellij.lang.batch.runner.BatchRunConfigurationProducer:org.intellij.lang.batch.runner.BatchRunConfigurationProducer12:53:10IncorrectOperationException:Mustnotchangedocumentoutsidecommandoru

android - 使用 annotationProcessor 而不是 android-apt 的带有 Android Studio 3.0 Preview (Canary 2) 的 Dagger 2

"Alongtimeagoinagalaxyfar,faraway...."好吧,长话短说-我决定试一试AndroidStudio3.0Preview(Canary2),但我无法使用让它与Dagger2一起工作annotationProcessor而不是android-apt。我收到的错误消息很容易消化:Error:(59,24)error:cannotfindsymbolvariableDaggerAppComponent我已经阅读了文档(我猜那里没什么特别的):https://developer.android.com/studio/preview/features/new-and

android - 无法在 Android Studio 2.0 Preview 中启动应用程序

我的gradle是//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()maven{url'https://maven.fabric.io/public'}}dependencies{classpath'com.android.tools.build:gradle:2.0.0-alpha1'classpath'com.jakewharton.hugo:hugo-plugin:1.2.1'}}allpro

android - 我们如何在 Android N Developer Preview 上尝试自由格式多窗口模式?

NDeveloperPreviewdocumentation引用一个自由形式的多窗口模式选项:Manufacturersoflargerdevicescanchoosetoenablefreeformmode,inwhichtheusercanfreelyresizeeachactivity.Ifthemanufacturerenablesthisfeature,thedeviceoffersfreeformmodeinadditiontosplit-screenmode.文档还建议您应该在自由形式的多窗口模式下测试您的应用。但是,我加载NDeveloperPreview图像的两个设备

安卓 : Capture a document & Scan it using camera

关闭。这个问题需要更多focused.它目前不接受答案。想改进这个问题吗?更新问题,使其只关注一个问题editingthispost.关闭5年前。Improvethisquestion我想在android中开发一个应用程序。需求是使用相机扫描文档,并将扫描数据转换为pdf文件,以便作为邮件附件使用。请提供一些示例代码...谢谢。

C++/WinRT,部分 Windows SDK 17134 与 Visual Studio 15.8 Preview 3 不兼容

尝试编译以下代码:#includeintmain(){}使用以下编译器选项:/permissive-/std:c++latest最近发布的VisualStudio15.8Preview3.0导致以下编译错误:1>------Buildstarted:Project:test1,Configuration:Debugx64------1>Source.cpp1>c:\programfiles(x86)\windowskits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185):errorC3861:'from_abi':identifi