java - Activate flashlight when battery is lower than 10% in android API 21 and above -


i'm trying create android flashlight app , i'm done. i'm facing 1 problem though. when battery below 10% app starts flashlight doesn't come on.

  • minsdk api 21 (lollipop)
  • maxsdk api 23 (m)

below permissions , features included in androidmanifest.xml.

<!--for controlling camera flashlight-->     <uses-permission android:name="android.permission.camera" />     <uses-permission android:name="android.permission.flashlight" />     <uses-feature android:name="android.hardware.camera" />     <uses-feature android:name="android.hardware.camera.autofocus" />     <!--/--> 

how around problem.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -