Questions tagged [suspend]

469 questions
5
votes
1 answer

How to enable suspend-to-disk on a Android device?

As we know, Linux kernel supports standby, suspend-to-ram, suspend-to-disk. However, I found Android doesn't support suspend-to-disk, or hibernate, although it's kernel is derived from Linux. And now, I want to enable it on Android, but don't know…
lian.duan
  • 51
  • 1
  • 3
5
votes
1 answer

sigsuspend() does not react against signal

My target is to intercommunicate main process and its "fork" children. Communication is done by signal delivery. My problem appears when first child gets stuck waiting when waiting for SIGUSR1 signal. I have no real idea why it gets stuck on that…
xsubira
  • 474
  • 1
  • 5
  • 14
5
votes
2 answers

Linux suspend/resume code flow (on android phone)

Does anyone know any good reading on how the whole process and code flow are for android/linux suspend/resume (after pressing the end key on the phone)? I am trying to understand and read the related code and files. Or, maybe if somebody can…
user1804788
  • 187
  • 1
  • 3
  • 12
4
votes
2 answers

CoroutineScope vs suspend func

I'm a little confused. I know that if a function wants to work with coroutines, it should be declared as suspend For example: private suspend fun doSomething() { withContext(Dispatchers.IO) { //do something } } And I also know…
4
votes
2 answers

Run two suspend functions in parallel and return when first one returns

I want to run to suspend functions in parallel and return result once the faster one of them returns result. I tried doing the following, but I think it only returns when both of them have finished and it takes too much time, since I'm waiting for…
ZookKep
  • 481
  • 5
  • 13
4
votes
1 answer

COROUTINE_SUSPENDED and suspendCoroutineOrReturn in Kotlin

The idea of coroutines in kotlin was to abstract the notion of suspension and callbacks and write simple sequential code. You never need to worry if the coroutine is suspended or not, similar to threads. What is the purpose of…
user8479978
4
votes
1 answer

Multiple Google play developer account

I have a google developer account with 2 suspend, the third suspend mean banned of my account , now i want to create a new account developer to work with , my question is if i published app in my new account and get a suspend, Will this suspend be…
exc005
  • 41
  • 2
4
votes
1 answer

Google suspended my app due to webview

I created a webview app for my website. Google suspended it and after searching I found out that I have to provide them with some sort of permission to display the content of my website. Question is what should that permission be? I am not able to…
4
votes
0 answers

Swift - App BLE reconnect/scan after suspend

I am currently writing an app that connects via BLE to an external device. All operations are fine when the app is in foreground.....including connecting, obtaining data, and reconnecting (in cases of the device going out of range) via a reconnect…
4
votes
0 answers

How to change Android configuration of USB Host to autosuspend device without rooting

I am working on an app that communicates to a device connected through the usb port. The communication is made using a serial converter from FTDI, the FTD 230x. I am using the driver D2xx. The problem i am having is that, when the device is…
4
votes
5 answers

WPF - Create a floating animated clickable control (image or...)

I want create a floating animated clickable control like a helium balloon that moves sometimes to right or left too in my WPF application. The helium balloons likes go up! but also they moves right or left if we tap on them or by wind. In…
Ramin Bateni
  • 16,499
  • 9
  • 69
  • 98
4
votes
3 answers

Java threading problem

I'm using multiple threads in my application. Basically I have a combo box and upon selecting Inbox, p1 resumes and p2 is suspended and upon selecting Send, p2 starts and p1 stops. Below is the code (I'm sure it's not perfect) public void…
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91
4
votes
1 answer

Stop, interrupt, suspend and resume a java thread

i started to read about how to stop, interrupt, suspend and resume safely a java thread, i found on oracle documentation the following solutions : 1- How to stop a thread safely : private volatile Thread blinker; public void stop() { blinker =…
Naruto Biju Mode
  • 2,011
  • 3
  • 15
  • 28
4
votes
1 answer

Prevent WPF window flicker

I've got a borderless WPF window that needs to be able to hide one of its controls and shrink the window at the same time. The problem is that it looks terrible. Here's what I am doing now: private void btnShowHideTopBar_Click(object sender,…
Scott Solmer
  • 3,871
  • 6
  • 44
  • 72
4
votes
1 answer

Disable app's background mode when audio works not activate

I'm using AudioUnit to handle the audio record and replay. And I add audio to UIBackgroundModes key in info.plist to keep it recording or playing when enter background. The problem is: when my app is not recording or playing audio, the app still…
JonnyHan
  • 97
  • 4