Is it possible to handle when BlackBerry device is going standby or wake?
As one of the options you can use the SystemListener2 interface. It has a method backlightStateChange, which contains the "true" if the backlight is turned on, and "false" - otherwise.
This is not exactly what question is about, but can be used in some way.
Related
I am working with hack-rf one and GNU radio. I have one hack-rf one device and i am trying to transmit and receive signals continuously. Is there any module in GNU radio which makes it possible?
Currently i have a flowchart for receive and one for transmit.
I am using selector block but manual switching isnt working properly.
I need to send and receive the same signals after reflection and study the difference.
Any suggestion is welcomed.
Since that is physically impossible for the device: No, no software on this earth can do that for you.
Using logos, I can initiate a group of hooks using %init(groupName) I was wondering if there is a way to disable the group of hooks as well. I need my tweak to be disabled while the phone is locked.
Currently, I'm calling init in my tweak whenever the lockscreen is dismissed, and killing the process (mobilemail) whenever the lockscreen is activated. That seems like a crude solution though, is there something better?
thanks for the help
1) No, you cannot disable hooks in the sense you're thinking of once they're initialized.
2) Yes, killing the process will disable the tweak (because it's injected into the process when the process is spawned, and runs within that process). However, you definitely should not do that. Instead, you should enable the tweak when the user unlocks the device and disable it when they lock it. You could even simply use a static boolean to do this if you want to be über simple. You cannot "unload" the code, per se, but you can have it stop executing if a condition is not met for sure.
Happy coding.
I have 3 monitors, but I don't need them all turned on all the time. I can just shut them down with power button, but I want to use their standby mode, like Windows does when we let PC idle for a while - it shuts down monitors, HDD, etc.
But of course, I wanna keep using PC and let just that monitor on standby. Others must remain on and that one doesn't wake up even with me using PC.
Is it possible to do that? It would be great to have a shortcut like Winkey+1, 2, 3 etc to shut down and wake up each monitor.
An existing app with this feature is not likely to exist, but is there a Windows API function that can control monitor state, for each monitor in a MultiMonitor system?
The display control panel applet calls SetDisplayConfig to start or stop forced projection on a particular target
You can probably use MS Detours or some other API hooking tool to inspect the usage pattern of the API while using the applet to adjust display settings.
You'll want to try Display Fusion. You should be able to do what you're asking for using Monitor configurations.
I know I'm late on this but use DDC to control your display. You can easily create hotkeys that send a command via DDC to the display to turn-off. This would be equivalent to turning off the display using the button. Works like a charm for me. The only trick is that DDC command specs vary across monitor manufacturers but its not hard to find the right codes to send with the help of google.
Ready made tools also exist for this; search for anything that is related to DDC or EDID and you should find.
Be aware though that this does not remove the display from Windows which means that apps may find their way onto displays that are off and you will be looking for them.
I am working on porting an XNA game to another platform. Some of the items in the compliance check list involve making sure the game remains in full-screen mode, cannot be minimized and that the windows key, win - m, and alt-tab are disabled. The only way to exit the game is supposed to be through the platform API (think exiting an Xbox or PS3 game by pressing the home or guide buttons).
It been difficult to find any information on this since most responses to previous questions are "never remove system functionality" but in my case specifically, those are requirements.
So is there a way to handle forced full-screen and disable minimizing? I haven't been able to find a way to get WndProc to work. Likewise for key events I need to disable. I can't find a way to intercept and handle the windows messages that control these events.
This post seems to give the interop code needed for hooking into the window message loop and overriding the Windows key events:
Disable Special Keys in Win App C#
Will the .IsFullScreen = true property not solve your issue? It will help with the screen but not with the keyboard disablement.
I'm trying to detect the event of someone switching data services on/off from the options --> mobile network menu.
I've had limited success with RadioStatusListener and the pdpStateChange event. It fires on some phones/OS's
I think I'm able to detect most other ways you might lose/gain your data service but this one seems like my white whale.
I use BB OS's 4.5 and up.
Thanks in advance for any help.
I'm not aware of any direct way of listening for the configuration change you've highlighted, but if you want to know whether you have data coverage at all, you can use the CoverageStatusListener