TSP Hovering/Floating Touch/Air View

madSac

Active Member
Licensed User
Longtime User
I thought of using floating touch/Air View(samsung call's it) but there is no official release.
After googling a lot i found many forums of sony :( but finally i got an official documentation on floating touch. I want to use it in B4A but cannot find any way ..can anyone help me
The link of documentation Touch Devices | Android Open Source
 
Last edited:

barx

Well-Known Member
Licensed User
Longtime User
Would be nice to have these features
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
no sorry, I had a quick look other day and could even find an sdk to try and wrap.
 
Upvote 0
no sorry, I had a quick look other day and could even find an sdk to try and wrap.

If you go to the dial screen and dial *#0*# then you will get to a nice little sensor test screen. This is on the Galaxy S4. I'm sure you know this as there is a lot of documentation online about it, but there is a TSP Hovering test option that exists on this screen. Again I am sure you are still wondering how this is of your interest.

The helpful part is that I have the source code for this application and can implement my own TSP Hovering. The source code has a lot of good information on accessing all of the sensors. It looks like the trick is to call a kernel command.
B4X:
if (Support.Kernel.write("TSP_COMMAND_CMD", paramArrayOfByte))
    {
      String str1 = Support.Kernel.read("TSP_COMMAND_STATUS");
      String str2 = Support.Kernel.read("TSP_COMMAND_RESULT");
      if (str1 == null)
...

The Kernel.write is also available in this library. Disassembling it might be difficult, but I don't think that would be necessary, because I would just extract the compiled class from the library and use that instead of implementing your own kernel level operations.
 
Last edited:
Upvote 0
Top