草庐IT

storage_path

全部标签

android - Android 上的图形 : path with smooth curves?

我想为函数y=x^2绘制如下图表:但曲线并不平滑,因为它是一组连接的线。如何使曲线更平滑?谢谢 最佳答案 您应该将Path.quadTo与一个Path一起使用。如果您已经在这样做,那么我建议增加图表上的点数。移至路径的开头:Path.moveTo(x,y)在中间:Path.quadTo(lastX,lastY,(x+lastX)/2,(y+lastY)/2)最后:Path.lineTo(x,y) 关于android-Android上的图形:pathwithsmoothcurves?,我们

安卓:安全异常: "destination must be on external storage"

我在网上彻底搜索以找到答案,但没有结果。我在我的Android应用程序中实现了一些“首选项”,包括将文件保存在您想要的任何位置的能力。如果我在所谓的“集成sdcard”上选择一个路径,一切都OK。但我也有一个“真正的”外部sdcard,它(在我的例子中)安装在/storage/sdcard1符号链接(symboliclink)到/extSdCard和/mnt/extSdCard(虽然“内部”sdcard是/storage/sdcard0,带有指向/sdcard和/mnt/sdcard的符号链接(symboliclink))。在ICS上,我在/emmc有外部链接,还有一些我不记得的链接。

android - 在安卓工作室 : How to change packages file path

所以我知道如何重命名一个包,但是这只是改变了结尾包com.example.android.navigationdrawerexample;在这个例子中,我想做的是去掉.example在不破坏任何东西的情况下,你会怎么做? 最佳答案 1-转到androidmanifest.xml2-搜索:3-对“package”的内容使用Refactor来更改您的包名称4-重新加载项目希望对大家有所帮助! 关于android-在安卓工作室:Howtochangepackagesfilepath,我们在St

Android用Path画圆

我正在尝试绘制一个圆圈的动画。在我的自定义View中,我有privatefinalPaintmPaint=newPaint(){{setDither(true);setStyle(Paint.Style.STROKE);setStrokeCap(Paint.Cap.ROUND);setStrokeJoin(Paint.Join.ROUND);setColor(Color.BLUE);setStrokeWidth(30.0f);setAntiAlias(true);}};...protectedvoidonDraw(Canvascanvas){super.onDraw();if(mOva

android - 运行 gradle 检查时为 "Could not normalize path for file"

当我尝试在androidstudio中的android项目上运行gradlecheck时出现此错误。gradleassemble成功运行。我已经看到这个问题的解决方案来检查“使用外部构建”,但是对于我的androidstudio(0.3.7)版本,我们应该自动执行此操作。我的代码应该是正确的,因为它是在不同的机器(Mac)上构建的,但不会在我的Windows机器上编译。与我的环境有关。有什么想法吗?>*Whatwentwrong:Executionfailedfortask':VirtualWalk:testDebug'.>Couldnotnormalizepathforfile'D:

java - Android - 空指针异常 : storage == null

您好,我在使用在线教程构建的Android应用程序时遇到问题,当我尝试运行它并出现上述异常时,它一直崩溃。请就如何停止此错误提供一些帮助,我将不胜感激。这是我的主要Activity:packagecom.niall.easytxt;importandroid.app.Activity;importandroid.content.Intent;importandroid.database.DataSetObserver;importandroid.os.Bundle;importandroid.view.KeyEvent;importandroid.view.Menu;importand

android - 无法请求 READ_EXTERNAL_STORAGE 权限

我正在尝试从存储中读取图像路径,但我一直在此处收到SecurityException:Causedby:java.lang.SecurityException:PermissionDenial:readingcom.android.providers.media.MediaProvideruricontent://media/external/images/mediafrompid=31409,uid=10053requiresandroid.permission.READ_EXTERNAL_STORAGE,orgrantUriPermission()我正在针对api23进行编译,并且

android - 转换内容 ://URI to actual path for Android using React-Native

我正在尝试从cameraRoll上传图片。事情是cameraRoll组件返回content://URI而不是实际的文件路径。为了上传图片我需要一个文件路径,有什么办法可以将content://URI转换为文件URI?谢谢 最佳答案 我采用了@MadhukarHebbar提交的功能并将其制作成ReactNative节点模块。您可以在这里找到它:react-native-get-real-path从而实现你想要的,你可以结合使用上面的模块react-native-fs当你想从相机胶卷上传选定的图像时,你可以做这样的事情:RNGRP.ge

java.lang.IllegalArgumentException : Failed to find configured root that contains/storage/emulated/0/Android/data/异常

构建基本应用程序并获取IllegalArgumentException:有一个按钮可以启动相机应用程序,我正在尝试将图像保存到图片中。dispatchTakePictureIntent();当我点击图像按钮时调用方法发现了几个类似的问题,但无法解决我的问题:Android:FileProviderIllegalArgumentExceptionFailedtofindconfiguredrootthatcontains/data/data/**/files/Videos/final.mp4FileProvider"Failedtofindconfiguredroot"exception

android - FileObserver -> onEvent(事件,路径): path is NULL

我想知道文件何时完成写入,为此我正在尝试使用FileObserver。我是这样做的:FileObserverobserver=newFileObserver(imageUri.getPath()){@OverridepublicvoidonEvent(intevent,Stringpath){if(event==FileObserver.CLOSE_WRITE)Log.d(TAG,"FILE:"+path);}};observer.startWatching();imageUri是一个有效的Uri。当文件关闭时,我得到以下日志条目:FILE:null为什么它是null?用户可能写入了多