Android请求权限会导致application触发进入后台的事件
Submitted by hubdog on Fri, 2020-05-08 10:04
PermissionsService.RequestPermissions( [ JStringToString(TJManifest_permission.JavaClass.WAKE_LOCK), JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE), JStringToString(TJManifest_permission.JavaClass.RECORD_AUDIO), JStringToString(TJManifest_permission.JavaClass.CAMERA), JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE) ], procedure(const APermissions: TArray<string>; const AGrantResults: TArray<TPermissionStatus>) begin end );
TApplicationEvent.EnteredBackground:非常奇怪