久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='LxyLc'><tr id='LxyLc'><dt id='LxyLc'><q id='LxyLc'><span id='LxyLc'><b id='LxyLc'><form id='LxyLc'><ins id='LxyLc'></ins><ul id='LxyLc'></ul><sub id='LxyLc'></sub></form><legend id='LxyLc'></legend><bdo id='LxyLc'><pre id='LxyLc'><center id='LxyLc'></center></pre></bdo></b><th id='LxyLc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LxyLc'><tfoot id='LxyLc'></tfoot><dl id='LxyLc'><fieldset id='LxyLc'></fieldset></dl></div>
      1. <small id='LxyLc'></small><noframes id='LxyLc'>

      2. <legend id='LxyLc'><style id='LxyLc'><dir id='LxyLc'><q id='LxyLc'></q></dir></style></legend>

        <tfoot id='LxyLc'></tfoot>
          <bdo id='LxyLc'></bdo><ul id='LxyLc'></ul>

        使用 kivy/python 訪問 android 手電筒(相機 LED 閃光燈

        Accessing android flashlight(camera LED flash) with kivy/python(使用 kivy/python 訪問 android 手電筒(相機 LED 閃光燈))

              <bdo id='whODz'></bdo><ul id='whODz'></ul>
                <tbody id='whODz'></tbody>

                <small id='whODz'></small><noframes id='whODz'>

                • <i id='whODz'><tr id='whODz'><dt id='whODz'><q id='whODz'><span id='whODz'><b id='whODz'><form id='whODz'><ins id='whODz'></ins><ul id='whODz'></ul><sub id='whODz'></sub></form><legend id='whODz'></legend><bdo id='whODz'><pre id='whODz'><center id='whODz'></center></pre></bdo></b><th id='whODz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='whODz'><tfoot id='whODz'></tfoot><dl id='whODz'><fieldset id='whODz'></fieldset></dl></div>
                • <tfoot id='whODz'></tfoot>
                • <legend id='whODz'><style id='whODz'><dir id='whODz'><q id='whODz'></q></dir></style></legend>

                  本文介紹了使用 kivy/python 訪問 android 手電筒(相機 LED 閃光燈)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我不知道如何使用 python 或 kivy 訪問我的 android 上的 led 燈,我嘗試安裝 python-for-android 以便能夠將 android 模塊導入我的代碼,但它不是模塊可以'找不到.我按照此處的說明克隆了 python-for-android.我沒有按照我想的那樣按照該頁面安裝 ndk 或 sdk,因為 kivy 已經使用它們,它們已經安裝了.有人可以指出我正確的方向嗎?

                  I can't figure out how to access the led light on my android with python or kivy, I have tried installing python-for-android to be able to import the android module into my code but it's not the module can't be found. I cloned python-for-android as instructed here. I didn't install the ndk or sdk as per that page as I thought since kivy already uses them they were already installed. Can someone please point me in the right direction?

                  推薦答案

                  是的,你可以從桌面用 Kivy 編寫這個應用程序,只是無法在桌面上測試它.每次都必須構建并部署到 Android 設備上進行測試.

                  Yes, you can write this app in Kivy from the desktop, you just won't be able to test it on the desktop. You will have to build and deploy to an Android device to test each time.

                  改編自如何在Android中以編程方式打開相機閃光燈?:

                  檢查閃存功能是否可用:

                  To check if flash capability is available:

                  PythonActivity = autoclass('org.renpy.android.PythonActivity')
                  PackageManager = autoclass('android.content.pm.PackageManager')
                  pm = PythonActivity.mActivity.getPackageManager()
                  flash_available = pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH)
                  

                  要使用手電筒,您的應用需要 FLASHLIGHT 和 CAMERA 權限.您可以將這些添加到 buildozer.spec 或 python-for-android 命令行.

                  To use the flashlight, your app will need the FLASHLIGHT and CAMERA permissions. You can add these to buildozer.spec or the python-for-android command line.

                  最后,打開閃光燈:

                  Camera = autoclass('android.hardware.Camera')
                  CameraParameters = autoclass('android.hardware.Camera$Parameters')
                  cam = Camera.open()
                  params = cam.getParameters()
                  params.setFlashMode(CameraParameters.FLASH_MODE_TORCH)
                  cam.setParameters(params)
                  cam.startPreview()
                  

                  然后關閉:

                  cam.stopPreview()
                  cam.release()
                  

                  這篇關于使用 kivy/python 訪問 android 手電筒(相機 LED 閃光燈)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯(lián)網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                        <small id='s4oRO'></small><noframes id='s4oRO'>

                      • <legend id='s4oRO'><style id='s4oRO'><dir id='s4oRO'><q id='s4oRO'></q></dir></style></legend>
                            <tbody id='s4oRO'></tbody>
                          <tfoot id='s4oRO'></tfoot>
                          <i id='s4oRO'><tr id='s4oRO'><dt id='s4oRO'><q id='s4oRO'><span id='s4oRO'><b id='s4oRO'><form id='s4oRO'><ins id='s4oRO'></ins><ul id='s4oRO'></ul><sub id='s4oRO'></sub></form><legend id='s4oRO'></legend><bdo id='s4oRO'><pre id='s4oRO'><center id='s4oRO'></center></pre></bdo></b><th id='s4oRO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='s4oRO'><tfoot id='s4oRO'></tfoot><dl id='s4oRO'><fieldset id='s4oRO'></fieldset></dl></div>
                            <bdo id='s4oRO'></bdo><ul id='s4oRO'></ul>

                          • 主站蜘蛛池模板: 久久久男人的天堂 | 国产亚洲精品精品国产亚洲综合 | 成人久久久 | 亚洲国产高清高潮精品美女 | 国产精品永久 | 精品国产一区一区二区三亚瑟 | 国产一区二区精品 | 日韩免费高清视频 | 久久成人国产精品 | 浮生影院免费观看中文版 | 麻豆国产一区二区三区四区 | 久久青青 | 亚av在线| 久久精品亚洲精品国产欧美 | 成人国产一区二区三区精品麻豆 | 一本一道久久a久久精品综合蜜臀 | 国产精品1区 | japanhd成人 | 亚洲欧美日韩在线 | 亚洲精品一区久久久久久 | 欧美色综合 | 国产在线网址 | 九九精品久久久 | 伊人久久在线观看 | 午夜在线免费观看视频 | 精品一区二区久久久久久久网精 | 色婷婷av一区二区三区软件 | 久久不卡 | 操操日| 色999视频 | 一区二区福利视频 | 亚洲欧洲av在线 | 亚洲狠狠丁香婷婷综合久久久 | 中文字幕人成乱码在线观看 | 国产精品成人一区二区三区夜夜夜 | 超碰在线人 | 成人激情视频在线观看 | 午夜影视网 | 在线成人精品视频 | 在线国产视频 | 日韩靠逼|