草庐IT

ACTION_FOUND

全部标签

android - Intent.ACTION_GET_CONTENT 打开最近的文件,这给出了错误的 URI

我正在使用Intent.ACTION_GET_CONTENT打开最近的文件。从最近的文件中选择项目会给出错误的URI,但从文件管理器中选择相同的文件会给出可以由我的代码处理的正确URI。publicstaticStringgetRealPathFromURI(Contextcontext,Uriuri){Stringpath;if("content".equals(uri.getScheme())){Cursorcursor=context.getContentResolver().query(uri,null,null,null,null);cursor.moveToFirst();

android - 无法评估模块 FacebookLib : Configuration with name 'debug' not found

当我运行命令“cordovabuildandroid”时出现此错误。我在platforms/android目录中的“build.gradle”文件中有以下代码行:debugCompile(project(path:"phonegap-facebook-plugin:FacebookLib",configuration:"debug"))releaseCompile(project(path:"phonegap-facebook-plugin:FacebookLib",configuration:"release"))在同一目录中,我有另一个文件“settings.gradle”,其中包

android - ListView 隐藏在 ToolBar 后面,Floating action button 隐藏在 ListView 后面

我的FAB将显示在androidstudio的设计窗口中,但在我实际运行应用程序时不会显示。此外,我有一个ListView项目,我指定它应该位于工具栏下方,但当我运行该应用程序时,它部分隐藏在工具栏后面。howthelayoutappearsindesignmodehowappappearswhenrun做什么? 最佳答案 MyFABwillshowsupinthedesignwindowinandroidstudiobutdoesnotshowupwhenIactuallyruntheapp.尝试在代码中将FAB移动到ListVi

android - java.lang.UnsatisfiedLinkError : No implementation found for Boolean 错误

我在我的项目中使用“.so”文件,但它给出以下错误“java.lang.UnsatisfiedLinkError:没有找到bool值的实现”,我已经尝试使用Cygwin重新创建“.so”并将它放在jniLibs文件夹中,并使用它创建一个jar,但它给出了同样的错误。但同一个“.so”文件正在我现有的项目中工作。我尝试了很多方法,但根本不起作用,我该怎么办?com.amaze.filemanagerE/art:Noimplementationfoundforbooleancom.amaze.filemanager.scanner.SignatureLib.InitScanner(java

android - Material Floating Action Button 导致错误和 xml 崩溃

我迁移到androidx并且我的依赖项是:implementation'androidx.appcompat:appcompat:1.1.0-alpha05'implementation'com.google.android.material:material:1.1.0-alpha06'我使用了FloatingActionButton:但是当我放置FloatingActionButton时,XML崩溃(呈现问题)。即使我使用以下内容:不过这个错误只出现在XML中,不影响程序的执行,对我来说也没有显示设计模式。invalidateCacheandRestart的问题是它暂时解决了问题,

Android Intent.ACTION_SCREEN_OFF 和 Intent.ACTION_USER_PRESENT 如何注册呢

ActivityhasleakedIntentReceiverScreenReceiverthatwasoriginallyregisteredhere.AreyoumissingacalltounregisterReceiver()?在我的主要Activity中//RegisterreceiverthathandlesscreenonandscreenofflogicfinalIntentFilterintentScreenfilter=newIntentFilter(Intent.ACTION_SCREEN_ON);intentScreenfilter.addAction(Inte

android - 在 android ADT : "ndk-build" not found in PATH 中构建 OpenCV 2.4.5

我正在尝试关注thisOpenCVdocument将OpenCV示例项目导入到androidADT中,我得到了现在臭名昭著的“程序“C:\android\android-ndk-r8d-windows\ndk-build”未在PATH中找到”错误。我的操作系统是Windows7,我将cygwin用于任何类似Linux的命令。请注意:我已经下载了NDK包,并且已经将NDKROOT的值设置为我的NDK根文件夹。我将NDKROOT设置为系统范围的环境变量和ADT的C/C++构建环境变量,如下所示:在我的NDK根文件夹中,我制作了文件“ndk-build.cmd”的相同副本,并将它们分别重命名

android - 依赖=[com.google.android.gms :google-play-services:apklib:7:compile] not found in workspace

很抱歉添加了另一个“未找到androidmavengooglemaps依赖项”问题,但我认为我已经阅读了大部分关于它的帖子并应用了所有建议的解决方案但没有成功。我有一个运行正常的mavenAndroid项目,它具有GoogleMapsV2依赖项,它不是使用maven引用的,而是通过工作区中导入的google-play-services_lib项目和eclipse构建路径库依赖项引用的。现在我正在尝试通过pom配置google-play-services依赖项,因为我正在使用Robolectric实现maven自动化测试,但是我被pom第一行中显示的错误卡住了,没有快速修复:depend

android - javac 错误 "error: warnings found and -Werror specified"在 ant 中禁用 "-Werror"

这是一个android项目,当我决定在运行javac程序时将警告视为错误时,我的ant构建脚本有时会失败。说真的,它只是有时会这样做,这是我可能会问的另一个问题。它将打印错误并突然取消构建[javac]1error[javac]9warnings当我做的更深入时,我看到“错误”是error:warningsfoundand-Werrorspecified这不是我明确设置的任何内容。现在这可能是一个深藏在build.xml文件中的论点,或者可能是在我目前不知道的特定情况下这个特定子库的build.xml文件中的论点有时是androidfacebooksdk导致的。但是antbuild.x

zsh: command not found 的部分解决方案

Golang的解决方案方案,#GOROOTexportGOROOT=/usr/local/goexportPATH=$PATH:/usr/local/go/bin#GOPATHexportGOPATH=$HOME/go_placeexportPATH=$PATH:$GOPATH/bin#GOPROXYexportGO111MODULE=onexportGOPROXY=https://goproxy.cn,direct#GOBINexportGOBIN=$GOPATH/bin#MySQL添加MySQL到环境变量Mac下#exportPATH=$PATH:/usr/local/mysql/bin#