I have an app setup that is able to capture screen content. However, on occasion, I get a null value returned from aquireLatestImage. The documentation says it will return "null if no image data is available.".
I'm curious to know what casues no image data to be available?
Edit: From what I can tell, this occurs most frequently on LG devices...
Edit 2: The case I'm running into is a null value being returned after it's previously returned valid image values. And it continues to return null values. For non LG devices, nulls are occasionally returned. For LG devices, it seems once it's returned one null the rest will be nulls.
1 Answers
Answers 1
The documentation says "Returns null if no new image is available" This means you are calling it before it is able to acquire a new image, so instead of wasting resources sending you the same image twice, it just returns null.
0 comments:
Post a Comment