How can I detect programmatically if the phone has a camera?
All Android-compatible phones must have a camera installed if they claim to be running Android version 1.6 or higher. See http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/de//compatibility/android-1.6-cdd.pdf for the device compatibility program.
Unfortunately, there is no 1.5 ccd that can be found anywhere. However, I am sure that all 1.5 devices currently available do have a camera. For tablets running 1.5, I would not be sure.
PackageManager#hasSystemFeature(String) - PackageManager.FEATURE_CAMERA .
PackageManager#hasSystemFeature(String)
PackageManager.FEATURE_CAMERA
Source: https://habr.com/ru/post/1750706/More articles:C ++ compiler error when developing templates - c ++Batch insertions and bug fix request - phpHow to get Castle Windsor to allow generics with restrictions? - genericshow does a non-blocking event loop work? - language-agnosticWhat is a good way to manage the A / B source associated with testing? - version-controlmod-rewrite ignore subdomain - apacheHow to commercialize Java software? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1750709/error-converting-anonymous-htmlattributes-to-idictionary-in-custom-helper&usg=ALkJrhhTOld6l2n0Gagy2XW9wlCvbtKDgAInsert ptr_map - c ++R: How to get stack trace from snow cover - stack-traceAll Articles