Android camera takePicture() method execution time

2020-07-25 09:11发布

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 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? Is it constant or you need to specify it?

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

1条回答
Lonely孤独者°
2楼-- · 2020-07-25 09:30

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.

查看更多
登录 后发表回答