onActivityResult RESULT_OK can not be resolved to a variable in android?

RESULT_OK is constant of Activity class. In Activity class you can access directly but in other classes you need to write class name (Activity) also.

Use Activity.RESULT_OK instead of RESULT_OK.


In your case it will be

if (requestCode == CAMERA_REQUEST_CODE && resultCode == Activity.RESULT_OK) {

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)