Giter Site home page Giter Site logo

Comments (5)

mattharris avatar mattharris commented on June 12, 2024

I'm thinking that it might be necessary to use the new camera2 API on some of these newer devices. This gives us the use of setTorchMode but we will need to provide fallback for lower API levels.

Unfortunately, this really needs our targetSdkVersion to be increased to 23 (from the current 19) but that brings in a host of other issues, namely the removal of org.apache.http.client

from enginedriver.

n3ix avatar n3ix commented on June 12, 2024

@mattharris Yeah, that's why we decided to leave it alone a couple years back when Steve and I looked into this. If we are going forward with the feature (which would be great), don't think we can leave out support for the new camer2 API - that would cause too many support headaches.

I think I did some code in ConnectionActivity years ago that traps a case where a method doesn't exist in the current Android version. (see overridePendingTransition). There is other code that directly tests the API level before calling something that isn't supported in prior levels. Can we use some combination of these approaches here, or is the new camer2 API totally unavailable to us with our current build setting?

from enginedriver.

mattharris avatar mattharris commented on June 12, 2024

@n3ix I'm going to re-visit this as part of the investigations due to being forced by Google to increase the API level to 26 - after 31st October, we can no longer submit updates to the Play Store if our targetSdkVersion is lower than 26.

I do already have proof of concept code for the use of the different camera APIs that is invoked based on device capability, but this needs to be refactored as it was written prior to the shift to Gradle builds.

from enginedriver.

mattharris avatar mattharris commented on June 12, 2024

@n3ix Can we close this now as part of the changes made in #374?

from enginedriver.

n3ix avatar n3ix commented on June 12, 2024

@mattharris Yes it is fixed by 374

from enginedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.