Copying an image from the clipboard

女生的网名这么多〃 提交于 2019-12-12 03:19:25

问题


I want to get an image which is copied from the galley to my app.Means the image will be there in the clipboard I want to get that image can anyone help me.

I need to copy the image from the clipboard and I don't want it directly from the gallery.


回答1:


I think this is as close as you're going to come to getting Gallery images into your app...

http://eggie5.com/8-hook-share-picture-via-menu-android

The article follows through all the way to an HTTP send of the image, but obviously you can just collect it as a byte[], and then do whatever you want with it after that.

It's not a copy/paste, but that's just not a mechanism that Android offers in this context, so, I'd do what I could with this solution.



来源:https://stackoverflow.com/questions/8998325/copying-an-image-from-the-clipboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!