What is the best place to call CheckAndRequest if I need PERMISSION_WRITE_EXTERNAL_STORAGE as early as possible?
I known I cannot call checkandrequest in starter service. But seems android can start with any activity.
I have a database wrapper service receive request and write to database. What is the best practice to get folder permission for this service? I do not prefer RuntimePermissions.GetSafeDirDefaultExternal because the database file is shared across applications.
I known I cannot call checkandrequest in starter service. But seems android can start with any activity.
I have a database wrapper service receive request and write to database. What is the best practice to get folder permission for this service? I do not prefer RuntimePermissions.GetSafeDirDefaultExternal because the database file is shared across applications.
Last edited: