When opening the camera for the first time (Before granting permissions) the program crash with this log message:
Unable to start activity ComponentInfo{com.mypackagename.myappname/com.gun0912.tedpermission.TedPermissionActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Note that when i grant the permissions from the App Settings the camera launches without that error
When opening the camera for the first time (Before granting permissions) the program crash with this log message: Unable to start activity ComponentInfo{com.mypackagename.myappname/com.gun0912.tedpermission.TedPermissionActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Note that when i grant the permissions from the App Settings the camera launches without that error