I'm using camera in my app but the eclipse shows msg as "The type Camera is deprecated". So I'd like to know in which api the camera is deprecated?
Asked
Active
Viewed 967 times
-1
-
and btw, eclipse too is kind of deprecated for android development – njzk2 Jul 03 '15 at 17:20
2 Answers
2
Search on the Android Docs:
http://developer.android.com/reference/android/hardware/Camera.html
This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.

Broak
- 4,161
- 4
- 31
- 54
-
-
@user2551070 Everything you can do with Android Studio, you can do with Eclipse, as well... – Phantômaxx Jul 03 '15 at 17:38
0
The camera api is deprecated as of API 21. This means for devices running up to KitKat 4.4 (API 19) you can use Camera. For devices Lollipop 5.0 and above (API 21+) you can use Camera2 instead.
https://developer.android.com/reference/android/hardware/camera2/package-summary.html

Pztar
- 4,274
- 6
- 33
- 39