Giter Club home page Giter Club logo

h5webphoto's Introduction

WebPhoto

修改来自改项目:https://github.com/haganWu/WebPhoto

修改了调用拍照失败的Bug

Android客户端实现H5页面调用本地相册和相机上传图片

适配android5.0及以上机型,实现H5页面调用系统相机和相册上传图片(已实现相关权限申请)

效果图如下:

1.点击"选择文件"时弹窗提示通过相机/相册上传图片:

相机/相册选择

2.相册权限申请:

相册权限

3.相机权限申请:

相机权限

相机权限

4.权限拒绝后弹窗提示到系统设置里面开启权限:

权限拒绝提示

5.上传图片成功后的效果

上传成功

(以上仅供参考,如有缺陷望指正!!!)

h5webphoto's People

Contributors

l123456789jy avatar

Watchers

James Cloos 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.