Code Monkey home page Code Monkey logo

Comments (8)

Red-Folder avatar Red-Folder commented on September 26, 2024

When you say "sleep" - do you mean just turning off the screen?

If so, then yes it should work. If you have your device connected to your development environment you should see the logcat messages (assuming you are using the MyService sample).

from bgs-core.

krgm03 avatar krgm03 commented on September 26, 2024

Thanks for answering!

"When you say" sleep "- do you mean just turning off the screen?" YES

my scenario

  • I transfer the apk to your device - run android .... - -device
  • Disconnect the device from the computer
  • Switch off the screen to ensure that the service is running. But the service also sleeps. Tested on two devices

Although very simple I must be doing something wrong

Thank you!

from bgs-core.

Red-Folder avatar Red-Folder commented on September 26, 2024

How do you know the service isn't running?
On 11 Feb 2014 18:54, "krgm03" [email protected] wrote:

Thanks for answering!

"When you say" sleep "- do you mean just turning off the screen?" YES

my scenario

  • I transfer the apk to your device - run android .... - -device
  • Disconnect the device from the computer
  • Switch off the screen to ensure that the service is running. But the
    service also sleeps. Tested on two devices

Although very simple I must be doing something wrong

Thank you!

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-34791049
.

from bgs-core.

krgm03 avatar krgm03 commented on September 26, 2024

I'm sorry I expressed myself poorly

Can not really say that the service does not work. Just is not working for my need.

I found that it does not work for my needs when I enable the timer and get response only when the device is turned on or connected to a power source screen. When I disconnect the device from a power supply and turn off the screen simply the service for of me to respond within the time set in enabletimer

As I already told I must be doing something wrong in a simple solution

thank you

from bgs-core.

Red-Folder avatar Red-Folder commented on September 26, 2024

Sorry for the delay.

Similar issues in the past have proven to be local issues with the developer having a problem with their code.

What I am trying to understand is how do you know that the service is also sleeping?

What is the background service setup to do (in the doWork()) or are you just using the MyService example provided with the sample?

from bgs-core.

Red-Folder avatar Red-Folder commented on September 26, 2024

Are you still experiencing this issue?

from bgs-core.

krgm03 avatar krgm03 commented on September 26, 2024

Sorry to have answered before

I only managed to meet my need for android developing natively. Natively it worked out.

Thank you for your attention!

from bgs-core.

Red-Folder avatar Red-Folder commented on September 26, 2024

Ok, good stuff. Thanks

from bgs-core.

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.