开发者

Android camera takePicture() method execution time

开发者 https://www.devze.com 2023-03-21 00:53 出处:网络
I\'m new to developing apps in Android. We are currently creating a robot using Android that accesses the camera for image processing.

I'm new to developing apps in Android.

We are currently creating a robot using Android that accesses the camera for image processing.

My question is: How long wi开发者_StackOverflowll the takePicture() method in Camera class will finish executing from the time it take a picture to the time it stores the image data? Is it constant or you need to specify it?

I would appreciate it if you provide links with your answers. Thank you.


How long will the takePicture() method in Camera class will finish executing from the time it take a picture to the time it stores the image data?

It depends on the phone itself. What you should do is to save the image in an AsyncTask so you don't have to rely on the UI thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号