Android的 - 拍摄的照片 [英] Android - Capture photo

查看:224
本文介绍了Android的 - 拍摄的照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我要实现本机相机的活动在那里我有推出相机和拍照。

In my application, i have to implement native camera activity where i have to launch the camera and take photo.

在详细地说, 我的应用程序含有一个TextView的(顶部)来显示活动名称和一个按钮(在底部),并在屏幕的中间区域,摄像头preVIEW应在该按钮viewed..When用户点击,捕捉,应点击并显示到另一个活动的ImageView的。

In detail, my application containing, One TextView (at top) to display activity name and one Button (At bottom) and in Middle Area of the screen, Camera preview should be viewed..When user click on that Button, Snaps should be clicked and display it into Imageview of another activity.

我知道下面的方法是使用:

I know that the following approach is used:

Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri );
startActivityForResult( intent, 0 );

但是,这种方法,如果我用我的话TextView的和按钮的观点并没有显示出来。

But this approach if i used then my textview and button view is not displayed.

(请注意:我使用的Andr​​oid SDK 1.5与HTC英雄)

(Pls note that: I am using Android SDK 1.5 with HTC Hero)

请帮我的任何物品,网站或PDF格式的建议。

pls help me by suggestion of any article, site, or pdf.

感谢名单,帕雷什

推荐答案

如果您要使用本机的摄像头,一旦原生相机被称为它就会控制你的看法。然而,如果你想实现自己的相机,那么这样的布局将成为可能。一些很好的例子可以在这里找到:

If you are trying to use the native camera, once the native camera is called it will control your view. However if you want to implement your own camera, then such a layout would be possible. Some good examples can be found here:

  • <一个href="http://www.brighthub.com/mobile/google-android/articles/43414.aspx">http://www.brighthub.com/mobile/google-android/articles/43414.aspx

<一个href="http://labs.makemachine.net/2010/03/simple-android-photo-capture/">http://labs.makemachine.net/2010/03/simple-android-photo-capture/

好运!

这篇关于Android的 - 拍摄的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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