Android请求权限会导致application触发进入后台的事件

  1. PermissionsService.RequestPermissions(
  2. [
  3. JStringToString(TJManifest_permission.JavaClass.WAKE_LOCK),
  4. JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE),
  5. JStringToString(TJManifest_permission.JavaClass.RECORD_AUDIO),
  6. JStringToString(TJManifest_permission.JavaClass.CAMERA),
  7. JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE)
  8. ],
  9. procedure(const APermissions: TArray<string>;
  10. const AGrantResults: TArray<TPermissionStatus>)
  11. begin
  12.  
  13. end
  14. );

TApplicationEvent.EnteredBackground:非常奇怪