Sep 12, 2017 Replies: 12 Camera2 library is based on the newer Camera API introduced in Android 5 (API 21). It is therefore supported by Android 5+ devices. It requires B4A v7.3+. The library is built to work together with CamEx2 class. Camera2 native API is more complex than the old API. However together CamEx2 and the resumable subs feature it is quite simple to use. See the tutorial for more information: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/ V1.10 is released. You need to update both CamEx2 (available in the tutorial) and the library. Most of the methods now expect a task index parameter. See the tutorial for more information. Camera2 is an internal library now. Last edited: Apr 4, 2019 Click to expand...
Camera2 library is based on the newer Camera API introduced in Android 5 (API 21). It is therefore supported by Android 5+ devices. It requires B4A v7.3+. The library is built to work together with CamEx2 class. Camera2 native API is more complex than the old API. However together CamEx2 and the resumable subs feature it is quite simple to use. See the tutorial for more information: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/ V1.10 is released. You need to update both CamEx2 (available in the tutorial) and the library. Most of the methods now expect a task index parameter. See the tutorial for more information. Camera2 is an internal library now.
BillMeyer Well-Known Member Licensed User Longtime User Sep 12, 2017 #2 Thank you - I must say - that desk looks amazingly like mine.
NJDude Expert Licensed User Longtime User Sep 12, 2017 #3 I have to ask, will this new lib break any existing apps using the previous Camera lib version?
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2017 #4 NJDude said: will this new lib break any existing apps using the previous Camera lib version? Click to expand... No. This is a different library named Camera2.
NJDude said: will this new lib break any existing apps using the previous Camera lib version? Click to expand... No. This is a different library named Camera2.
T Toley Active Member Licensed User Longtime User Sep 13, 2017 #5 Will it eventually replace the actual Camera Lib and be include in future B4A release?
JordiCP Expert Licensed User Longtime User Sep 13, 2017 #6 I guess they will co-exist, at least for a very long time (until there are no devices prior to Lollipop on Earth) The drama will come when Android definitely drops the legacy camera APi (right now, though deprecated, it is still present in Android N, and not sure if Android O): when this happens, a lot of apps using the legacy camera API will stop working for those devices
I guess they will co-exist, at least for a very long time (until there are no devices prior to Lollipop on Earth) The drama will come when Android definitely drops the legacy camera APi (right now, though deprecated, it is still present in Android N, and not sure if Android O): when this happens, a lot of apps using the legacy camera API will stop working for those devices
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2017 #7 Toley said: Will it eventually replace the actual Camera Lib and be include in future B4A release? Click to expand... There are two questions here: 1. No. It will never replace the Camera library. You will be able to choose whichever one you want. 2. It will probably be included in the IDE starting from the next version.
Toley said: Will it eventually replace the actual Camera Lib and be include in future B4A release? Click to expand... There are two questions here: 1. No. It will never replace the Camera library. You will be able to choose whichever one you want. 2. It will probably be included in the IDE starting from the next version.
Erel B4X founder Staff member Licensed User Longtime User Sep 14, 2017 #8 V1.10 is released. See tutorial for more information: https://www.b4x.com/android/forum/threads/camera2-new-camera-library.83855/#post-531117
V1.10 is released. See tutorial for more information: https://www.b4x.com/android/forum/threads/camera2-new-camera-library.83855/#post-531117
Croïd Active Member Licensed User Longtime User Sep 24, 2017 #9 btnAutoExposure (sample) does not work for me ( android 7.1) ! do you have the problem? I use Camex1.11
btnAutoExposure (sample) does not work for me ( android 7.1) ! do you have the problem? I use Camex1.11
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2017 #10 What happens when you click on it?
Croïd Active Member Licensed User Longtime User Sep 24, 2017 #11 Flash does not start ! Code: Copy *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** Start success: true ON_AUTO_FLASH ON_ALWAYS_FLASH OFF ON Picture taken: (Bitmap): 1080 x 1920, scale = 1,00
Flash does not start ! Code: Copy *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** Start success: true ON_AUTO_FLASH ON_ALWAYS_FLASH OFF ON Picture taken: (Bitmap): 1080 x 1920, scale = 1,00
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2017 #12 Fixed in CamEx2 v1.13: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920
Fixed in CamEx2 v1.13: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920
Croïd Active Member Licensed User Longtime User Sep 30, 2017 #13 Thank Erel now the flash fires But the temporary image does not take into consideration light ! as a synchronization shift between the light and cam.DataToBitmap(Data)
Thank Erel now the flash fires But the temporary image does not take into consideration light ! as a synchronization shift between the light and cam.DataToBitmap(Data)