android-wake-lock Questions

8

After successful root of device. Now, I need to make device always in wake state i.e. always visibility of UI and no black screen or any daydream screens. To do so I think I've to accomplish follow...
Bluegreen asked 6/1, 2016 at 7:30

9

Solved

I've been writing tests with androids new espresso framework and find that it works well. One annoying thing (not particular to espresso) is that I have to make sure my screen is awake and unlocked...
Policewoman asked 9/11, 2013 at 0:16

2

I am trying to run a simple work every 10 seconds using WorkManager. It works perfectly when app is running on background or foreground. When I close the app (kill the app), the work will not be ca...
Nik asked 31/5, 2019 at 4:52

7

We are currently developing an Android app that is a fitness-tracker application. It runs constantly in the background, and it works fine on most devices, but we've been having issues with the appl...

1

I have found ways to implement it as follows... code: public class main extends AppCompatActivity implements View.OnClickListener{ @Override protected void onCreate(Bundle savedInstanceState) { ...
Shiff asked 23/1, 2020 at 11:34

1

I am using the Proximity Sensor while webRtc call in android to turn screen on/off using device sensor. It is working perfectly in most of the devices but not in Samsung. When Sensor turns the scre...
Watterson asked 3/4, 2019 at 6:50

0

I have an AOSP tree compiled on my board. I bought a wireless keyboard and connected it to my board via usb port. I expect when the board is in the suspend state, it will wakeup by pressing a key o...

1

I've written a method that disables the Android lock screen and makes the screen turn on from standby (for dialing). This method works correctly for 30 seconds but then it triggers the standby scre...
Trainload asked 6/5, 2019 at 10:14

2

Solved

Question I am wondering if we need to aquire the WakeLock or if the service.startForeground() command does that anyway for us? I didn't find anything in the documentation. Goal We want to remove...
Apparatus asked 24/8, 2018 at 10:29

2

Several Android devices famously the Nexus series have a magnetic sensor that is NOT the android.hardware.Sensor.TYPE_MAGNETIC_FIELD used exclusively to turn the screen ON/OFF automatically using p...
Cupidity asked 4/4, 2017 at 12:3

2

Here i mentioned the code for waking up the screen. i want the code is listen still the app is closed and the cpu is cleared and user can click the power button when ever my screen is unlock the ap...
Rheotropism asked 28/5, 2015 at 10:40

1

Solved

I'm trying to start an activity with an alarm. The PendingIntent starts a receiver and the receiver starts the activity. My current issue is that the activity starts in the background and it's impo...
Bowing asked 14/7, 2018 at 9:3

2

For the last couple of weeks I am facing an issue with telephony manager API in Android - listener for incoming call based on listener starting Recording and on end call stopping recording (The pro...
Comeon asked 24/5, 2018 at 7:3

1

Solved

As here described the usual class WakefulBroadcastReceiver is deprecated. So, now this is not possible to create a scheduled tasks like for previous SDK releases. Google says, I have to use http...
Pratt asked 30/8, 2017 at 15:14

2

Solved

My app periodically checks the location using an alarm to a BroastcastReceiver that starts a service. I know I should acquire a wakelock before I start the service but my question is when can I rel...
Konstantine asked 28/9, 2010 at 16:16

3

I'm working on an Android application that runs in the background and enables support for a Bluetooth accessory. I would like to be constantly listening in the background for the Bluetooth device t...
Desai asked 10/8, 2011 at 16:11

3

Solved

In my app, in the onCreate() method of the main activity I am creating a wake lock so that the CPU will keep running if the phone goes on standb/screen turns off. Also in the onCreate method I ha...
Kindling asked 19/2, 2011 at 17:10

1

Solved

I have a service that should be run in the background. It starts when my app is open, and ends whenever my app is turned off by the user. Whenever my app is in the background or when the screen i...
Meridional asked 11/3, 2015 at 10:52

1

I try to develop app for Android which uses phone's accelerometer. It works everywhere except on Huawei's phone (testing on P9). I checked option "keep running with black screen" and protect applic...
Rowney asked 20/10, 2016 at 12:0

7

I want to run alarm service for every second in my application.It is working fine below 5.1 version. but it is not triggering in 5.1 devices. I am using commonsware wakeful intent service.The logc...
Landlubber asked 28/4, 2015 at 8:53

0

I want to see a fullscreen activity when I receive a push notification. It works fine when the screen is on/unlocked. But when the screen is off and locked, I dont see the activity. Please help //...
Macomber asked 26/7, 2016 at 17:28

3

Solved

I am trying to figure out how to wake and unlock the phone with a service. I have been referring to this post but, I can't figure out why it isn't working. This is the code that I have so far: pub...
Gaitan asked 10/11, 2011 at 0:27

2

How I can start my activity even when phone is in locked mode so I can access my application? I want to ring an alarm first using ringAlarm() then goes to another activity that will display alert...
Hypnoanalysis asked 28/1, 2013 at 2:26

0

Disclaimer: this is not duplicate of Activity Recognition stops receiving updates when phone goes to standby(screen off state) because I'm already using that approach and it does not help. Problem...

5

Solved

I am trying to turn on and off the display after a certain action happens (Lets just worry about turning the screen off for now). From what I understand from wake lock, this is what I have: PowerMa...
Guidebook asked 20/7, 2011 at 3:43

© 2022 - 2024 — McMap. All rights reserved.