Giter Club home page Giter Club logo

Comments (8)

arthurbenemann avatar arthurbenemann commented on August 22, 2024

The wake-lock should only be enabled when receiving heartbeats from the drone. IF not there could be problem for the user where he forgets the app open without a drone connected.

from tower.

arthurbenemann avatar arthurbenemann commented on August 22, 2024

@JaredReabow: the display dims which in daylight can be a big issue

from tower.

realbuxtehuder avatar realbuxtehuder commented on August 22, 2024

Stumbled about the same issue. While being outside in daylight the display dims and became almost impossible to see.

I think the reason for this behavior is that the wake lock is aquired with the parameter "SCREEN_DIM_WAKE_LOCK".

To keep the screen fully bright "SCREEN_BRIGHT_WAKE_LOCK" should be used. Best would be to set it together with "ON_AFTER_RELEASE".
Could look like this "pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK|PowerManager.ON_AFTER_RELEASE, "CPU");"

from tower.

realbuxtehuder avatar realbuxtehuder commented on August 22, 2024

just now I read on http://developer.android.com/reference/android/os/PowerManager.html that "SCREEN_BRIGHT_WAKE_LOCK" is deprecated in API level 13 :(
Will it still work or is there an workaround?

from tower.

arthurbenemann avatar arthurbenemann commented on August 22, 2024

Maybe with this: http://developer.android.com/reference/android/view/View.html#setKeepScreenOn(boolean)

But there should be a preference to keep enable this. On thing I notice when I'm flying is that the thing I mostly use is the voice notifications, so keeping the screen dim helps to save the battery.

from tower.

fpvcuritiba avatar fpvcuritiba commented on August 22, 2024

I could not find a way to avoid the screen goes off after some time without touch at the screen.

Device: Samsung Galaxy S3
Android: Jelly Bean 4.1.2

from tower.

realbuxtehuder avatar realbuxtehuder commented on August 22, 2024

I tried SCREEN_BRIGHT_WAKE_LOCK on my Nexus7 with android 4.2.2 and it still works.
As long as it works it's easier to implement it this way :)
To use a preference is a god idea.
Just launched a pull request (#135) with my suggestion for this topic.

from tower.

arthurbenemann avatar arthurbenemann commented on August 22, 2024

The code from @realbuxtehuder at pull #135 fixed this issue.

from tower.

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.