I have searched this server for the answer to this question but I haven't found one. I have only found it for Android 2.0 (SDK 5). So does anybody know how to find out whether there is a camera in Android 1.6 application? Can I check if the camera has autofocus.
Thank you for your answers, saric.
Here is code to check if there is a camera ( https://developer.android.com/guide/topics/media/camera.html ):
From the Android Compatibility page ( https://developer.android.com/guide/practices/compatibility.html ):
Looking at the API here: https://developer.android.com/reference/android/hardware/Camera.html#autoFocus%28android.hardware.Camera.AutoFocusCallback%29
It looks like they tell you to use a function that isn't present yet.
Unfortunately it may not be possible to check if the camera has auto-focus in Android 1.6.