Taking picture from camera without preview

前端 未结 9 1268
北荒
北荒 2020-11-22 13:01

I am writing an Android 1.5 application which starts just after boot-up. This is a Service and should take a picture without preview. This app will log the ligh

9条回答
  •  独厮守ぢ
    2020-11-22 13:21

    In the "Working Example by Sam" (Thank you Sam... )

    if at istruction "wm.addView(preview, params);"

    obtain exception "Unable to add window android.view.ViewRoot -- permission denied for this window type"

    resolve by using this permission in AndroidManifest:

    
    

提交回复
热议问题