Giter Club home page Giter Club logo

photoorlocal's Introduction

photoOrlocal

#####mail : [email protected] || [email protected]
#####weibo : http://weibo.com/u/3174082744
#####欢迎交流Android开发技术~
###弹窗选择本地或相机图片(来源:OSChina)

这个demo本来是帮一个朋友解决的一个问题,问题是这样的:在一般的机器中是可以正常选择图片并展示, 但是在红米手机上会出现崩溃的情况,因为之前一直比较OSChina客户端,在OSC中也有类似功能,于是就看了 一下OSC客户端的源码,内部实现除了对内存卡的判断,还有对sdk版本的适配,做的比较合理,就原封的将内 部的源码摘取出来,感觉这种实现方式比较合理,其中,我们在对内存卡的读写,有一部分人喜欢对sdcard1读 写,但是现在的手机大都没有手动插入的sdcard,直接是内置存储卡,这种存储卡在程序中默认为sdcard0(不 敢保证所有的机型都是这样),所以有的人在读写sdcard1的时候会有异常。

另外,在OSC客户端中有一些比较优秀的工具类,建议需要的可以down下源码自己看一下。
这是源码链接:http://git.oschina.net/oschina/android-app
以上都是我个人见解,有理解不对的可以通过上面的联系方式,QQ或是其他来纠正。欢迎欢迎~~

image
image

photoorlocal's People

Contributors

zqiang94 avatar

Stargazers

 avatar  avatar

Watchers

 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.