如何使用数据库将图像发送到其他活动 [英] How to send an image to other activity using database

查看:114
本文介绍了如何使用数据库将图像发送到其他活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有相机按钮的屏幕,结果图片存储在imageview中,我想通过点击放大图像。我希望使用数据库将相同的图像发送到另一个活动。



提前谢谢

I have a screen with camera button on it, and the resultant picture is stored in the imageview ,I want to enlarge the image by clicking on it. and I want to send that same image to another activity using database.

Thanks in advance

推荐答案



希望这个链接可以帮到你。

http://android-journey.blogspot.in/2010/01/android-gestures.html [ ^ ]



也看到这个

http://stackoverflow.com / questions / 6650398 / android-imageview-zoom-in-and-zoom-out [ ^ ]



这也是 http://stackoverflow.com/questions/5191456/how-can-i-place-double-click-event-on-imageview-in-android [ ^ ]



如果您想将图像从一个活动发送到另一个活动,您只需使用sqlite数据库并将图像保存在某些图像中文件夹并保存数据库中的路径,并在下一个活动中获取您最后保存的图像或使用某种索引来识别刚刚插入数据库中的图像,并在下一个活动中获取该图像。



如果您想要如何执行数据库操作,请通过此 https://开头万维网。 google.co.in/search?q=deal+with+sqlite+databases+android&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a& channel = fflb& gws_rd = cr& ei = uLQmUsKdONHNrQfsjYH4CQ [ ^ ]



如果您需要更多帮助,请在此处发布您的查询。



谢谢和问候

Ganesh Kumar Poosarla
Hi,
Hope this link helps you.
http://android-journey.blogspot.in/2010/01/android-gestures.html[^]

and also see this
http://stackoverflow.com/questions/6650398/android-imageview-zoom-in-and-zoom-out[^]

this also http://stackoverflow.com/questions/5191456/how-can-i-place-double-click-event-on-imageview-in-android[^]

and if you want to send an image from one activity to another activity, you just use sqlite database and save your image in some images folder and save the path in database and in next activity get the image which u have saved lastly or use some sort of index to identify the image you have just inserted in the database and get that image in your next activity.

If you want how to perform database operations go through this https://www.google.co.in/search?q=deal+with+sqlite+databases+android&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb&gws_rd=cr&ei=uLQmUsKdONHNrQfsjYH4CQ[^]

If you need any more help, please post your query here.

Thanks and Regards
Ganesh Kumar Poosarla


这篇关于如何使用数据库将图像发送到其他活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆