[DEV] Help request: simple keymapping background service - Android Software Development

Hello guys,
I need to create from scratch a very simple background service on Android Oreo: it should map the Keycode 48 (headset button) to Keycode 10036 (a built-in barcode scanner). Which is the simplest way possible to do so? I managed to do this but just inside the same app, while I need to translate the headset button input everywhere, from background. Unfortunately I can't access the device as root since it's an enterprise device (Zebra TC52).
Any help or advice will be greatly appreciated.
Thank you very much.

Related

Implementing search in RichInk

Hi everybody!
I've written a small app that uses a richink control to display a lot of text.
I want to add a simple search capability, but I can't figure out how to scroll the control to the right location. I stream out plain text and my algorithm fineds the character where the search string begins. But I couldn't find any way of determining by how much I should scroll the control.
It also seems the WM_SCROLLCARET doesn't work.
Can any one help me please……
Ok last desperate plea for help, anybody?

How to disable the Phone buttons ?

To secure a Qtek2020i i must disable the phone buttons.
Only the GPRS mode must stay in use. (no call)
Any solution is welcome.
THX for your help
Dany (tontonpc)
Do you just want to disable the buttons or the incoming and outgoing calling facility?
http://forum.xda-developers.com/viewtopic.php?t=16135&highlight=disable+button
THX for the link.
I have read and find the AE ButtonPlus verry nice but not freeware.
Ther are also an old version free but...
I will just disable the red and green button.
Any suggestion ??? registry documentation ?
THX Again for your help, and for the link ;-)
Dany (tontonpc)
Why disable the buttons ?
Surely you should block calls using Settings->Phone->Services->Call Baring
I assume if you set this up it can be password protected.
tontonpc said:
To secure a Qtek2020i i must disable the phone buttons.
Only the GPRS mode must stay in use. (no call)
Any solution is welcome.
THX for your help
Dany (tontonpc)
Click to expand...
Click to collapse
I know how to remap the phone buttons, but i don't know if this will actually create a "secure" Qtek. This is because even if the phone won't execute by pressing the buttons, it can execute with the stylus. Now the solution isn't exactly simple, but it can be done. The "trick" is that the first application that maps the green and the red button, locks them and afterwards no other application can map them. In order to achieve this you must create an application, which will be started either by services.exe or HKEY_LOCAL_MACHINE\init which wil map the two keys.
To register the two buttons, you must execute the
RegisterHotKey API
The virtual key code for the green (talk) button is 114 (decimal not hex) and for the red (close) is 115 (decimal again). The fsModifiers parameter as stated in the API must be zero (0). You can give any IDs for these two buttons as long as they are unique.
Happy remaping.
I agree with CSExpert. For securing the phone, you're probably better off using TAPI methods to disable the line, standard API stuff to find and close the cprog.exe app, and possibly consider disconnecting the Phone's Modem programmatically.
V

Advice please!!

Hey everyone
Very new to the tweaking business but absolutely love it!!!!
I was wondering if someone would be able to help me out with the following:
1. Is there any way that I can use the Volume up/down buttons to actually scroll up and down in applications such as Word?
2. Can someone please tell me if it is possible to add tabs to TF3D (for e.g I want to be able to have File Explorer as a tab aswell as certain programs that I may use more than others)?
Thanks in advance

Shortcut to recent-app-dialog

Hi together,
after i deinstalled the googlesearch app, i have a free hardware-button to be filled with some function. As im using often the recent-app-dialog popup (Homescreen button long pressed) i would wish to lay that function on my search-button.
Cm7 makes it possible to set the button with some shortcut or some app.
But how can i make a shortcut directly to the recent-app-dialog, i havent found a solution to this.
Ive searched the lauchner pro activitys, but haven't found the one to get into the dialog.
Another possibility that i have though about, is to create a launcher pro custom shortcut to the dialog, anybody has a idea how that works??? Or of course any solution that would help me with my problem.
I don't want to install any extra app to do this. ( i know there are some apps for that, but it must be possible without)
Thx in advance for any help!

[Q] [ URGENT ] Barcode Scanner, only for study

hello sir,
i student university. i'm try develop bar code scanner android apps for my final year project. next week it will be present. my scan button to scan bar code, are work fine. problem is my search button not working at all. i want link that search button, to my SQL that i create. so it will search info about that bar code that i got, and appear result info. Can u guys help please?

Categories

Resources