这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-torch crashes Termux:API on Android 5.0.1 #188

@benburrill

Description

@benburrill

logcat shows the error java.lang.NoSuchMethodError: No virtual method setTorchMode. The method was added in API level 23, which I don't have.

There are more compatible ways of enabling torch mode. I currently use the Torch app, which uses the deprecated Camera.Parameters API, which maybe Termux:API could use as a fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions