In Android Marshmallow, permissions should be requested at runtime when they are needed, and not immediately when the application is installed. However, I can simply request permissions from Activity, which is a problem since my application contains only Services. (Why is this possible, you can ask? The application has the Android Wear face included in the kit, and all the phone does is look for photos nearby to send the watch - no action is required, but access permissions are required. )
So, is there a way to request permissions from the Service? Or somehow force permissions to be granted during installation, as in the past?
android android-wear android-6.0-marshmallow android-permissions wear-os
Tony Wickham Aug 30 '15 at 2:44 2015-08-30 02:44
source share