javascript - How to have a widget on your app that can open without the need for passcode? -
i'm designing app in phonegap i'm using html, css, javascript etc.
this app uses phones camera (a qr scanner exact) , want users able use app quick possible. so, on android device can access camera without typing password, there way can same app ?
application still in design stages i'm getting first make sure want can developed before start development, thank you.
in java can define attribute widgetcategory
in appwidget-provider
home_screen|keyguard
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minwidth="40dp" android:minheight="40dp" android:updateperiodmillis="86400000" android:previewimage="@drawable/preview" android:initiallayout="@layout/example_appwidget" android:configure="com.example.android.exampleappwidgetconfigure" android:resizemode="horizontal|vertical" android:widgetcategory="home_screen|keyguard"> //like here </appwidget-provider>
but per google documents, feature has been taken down android 5.0 lollipop
(only home_screen
valid) work devices supporting android 4.2 or above
below android 5.0
limited.
the widgetcategory attribute declares whether app widget can displayed on home screen (home_screen), lock screen (keyguard), or both. android versions lower 5.0 support lock-screen widgets. android 5.0 , higher, home_screen valid.
Comments
Post a Comment