I tried to test my application in the Android emulator, but could not test it if the screen is off (battery mode), but the application is still alive (perform some calculations), are there any flags for the emulator to emulate this behavior (screen is off )?
private Window wind; wind = this.getWindow(); wind.addFlags(LayoutParams.FLAG_DISMISS_KEYGUARD); wind.addFlags(LayoutParams.FLAG_SHOW_WHEN_LOCKED); wind.addFlags(LayoutParams.FLAG_TURN_SCREEN_OFF);
try it.
Source: https://habr.com/ru/post/1383294/More articles:Why C ++ containers do not implement interfaces - c ++Does D provide separation of interface from implementation in templates? - interfaceDelete does not work in transaction with bulk insert sql - c #Sorting and time complexity - sortingIOS Default.png show every time my application comes to the fore from the background - iosHow much memory can a shared NSPasteboard take? - memoryDoes automatic reference counting compute an object if I set the pointer to zero? - iosTake screen shot of software iOs 5 - ios5https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1383298/parsedouble-in-java-results-to-numberformatexception&usg=ALkJrhhO2uk9sztCPlO7zkgCTRb5FWrh8gHow does Oracle perform a read operation? - sqlAll Articles