i created a flashlight application,flashlight working. but flashlight not work when device screen power is off/sleep. i want flashlight continue on ,when device screen in off/sleep..
i am new for this site, i don't know,how upload full code, so i upload code in my blog site
manifest code
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:noHistory="true" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".About" android:noHistory="true" android:screenOrientation="portrait" >
</activity>
</application>
<uses-permission android:name="android.permission.CAMERA"></uses-permission>
<uses-feature android:name="android.hardware.Camera"></uses-feature>