Coder Social home page Coder Social logo

qfsolution's Introduction

QFsolution - 适用于AndroidQ及以上的文件操作解决方案

  1. 适用于AndroidQ的简易图片选择器。
  2. 基于协程的系统文件选择,相册选择,系统拍照,系统裁剪。
  3. Uri转为File的究极解决方案。
  4. 最新已兼容至Android12
  5. 兼容Intent.ACTION_OPEN_DOCUMENT_TREE选择文件夹Uri获取后路径

开始使用

使用详情可见文档WIKI

添加依赖

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

latest_version

dependencies {
	implementation 'com.github.iDeMonnnnnn:QFsolution:1.2.2'
}

添加权限

    <!--如果你使用相机相关功能必须要添加,否则可忽略-->
    <uses-permission android:name="android.permission.CAMERA" />
    <!--存储权限在低于AndroidQ的手机上还是需要的-->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <!--AndroidR及以上手机上访问sd卡需要存储管理的特殊权限,非文件管理类App不建议申请->
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />

更多使用

请见Demo示例代码

可见源码注释,写的很详细。

使用体验

demo.apk

这是一张网络图片

其他

如果你有问题或者建议,请Issues.

基于boxing的AndroidQ适配

致谢

Android 10适配要点,作用域存储

boxing

MIT License

Copyright (c) 2020 DeMon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

qfsolution's People

Contributors

idemonnnnnn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.