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.
Thanks Erel. What is the proper way of sharing a file across two apps without PERMISSION_WRITE_EXTERNAL_STORAGE ? seems GetSafeDirDefaultExternal cannot be shared across two apps.
Is it possible to have a folder writable to multiple app? seems RuntimePermissions.GetSafeDirDefaultExternal return folder to specific app which is not accessible for other apps. android:targetSdkVersion="22" I need my app working on android 4.4, 6, 12 devices. Thanks.