How to implement Stylus Hover Pointer in AOSP? - android

I am very new to AOSP and I want to implement Stylus Hover Pointer Code like it is in Samsung S-Pen.
I did explore on the native code and was not able to make any progress as most of the code was related to touches. How can I incorporate the HOVER actions with mimum latency. Guidance will be highly appreciated.

Related

Detecting palm swipe in Android.

I am developing an android application in which I need to detect palm swipe. Precisely, I want to trigger a new intent after successful palm swipe over the touch screen. I have no clue where to start for implementing the same.
Please provide some pointers or approaches which can be used to implement the same.

How to use a virtual keyboard for flash game on android?

I want to send keys to a flash game on android, as you know, when you touch screen, can control game but if you put some buttons over game, it doesnt work i mean, you cant control game. I think sendkeys doesnt work or I couldnt do that..
Is there any way to control game with external buttons on android?
You can simulate touch event in android. See this link. It has been well discussed in StackFlow community. And good luck with it!

How to record touch movements on Android keyboard?

I apologize if this is a stupid question. I have only taken an introductory Java class and am a beginner to Android.
I want to track the drawing made by a finger using Swype and record each stroke as an image or vector of some sort.
Is there a simple way to record a touch movement in another application, maybe by making an application running in the background?
Thank you and I appreciate any guidance!
Touch events are consumed by the top-most view. Because swype doesn't have any kind of API you can hook into you won't be able to get that information. Input Events | Android Developers
There might be some way to create a skeleton keyboard application that captures the gestures that people make over an image of the swype keyboard that then passes that gesture to the real swype, but I'd personally be worried about copyright unless it was just for personal use.

Android ICS accessibility square activation code

http://www.youtube.com/watch?feature=player_detailpage&v=Boz3yVBz1hM#t=18s
In this video, at 22 sec, man is drawing a square on SetupWizard screen of Samsung Nexus.
Could anyone please help me to find the source code which handles this gesture?
The source code for that specific application isn't part of AOSP, but you can use GestureDetector to detect arbitrary shape gestures.

What is gesture in Android

I would like to know what is meant by gestures in typical mobiles more specifically android ones. Android supports gesture recognition.
Is a gesture termed as when user
holds the device and shakes it(say
upwards, downwards or side- side)?
Is a gesture termed as when a
finger is placed on the screen and
traced UP,DOWN,RIGHT,LEFT? If so
what is the difference between touch
screen and gestures.
I am confused between 1) and 2) option.
What is a gesture exactly?
As I understand it, a gesture is anytime a user touches the screen and does a pre-defined motion that the system understands. I would venture to say that shaking the phone is not a gesture, but a function of detecting changes in the accelerometers.
From Android's reference web page, a gesture is a hand-drawn shape on a touch screen. It can have one or multiple strokes. Each stroke is a sequence of timed points. A user-defined gesture can be recognized by a GestureLibrary.
https://developer.android.com/reference/android/gesture/Gesture.html
I see gestures as being a type of input pattern that you expect from the user. I.e., you can setup mouse gestures in web browsers to do things like going "Forward" or "Back" in the browse by doing a specific "gesture" (maybe middle mouse button click and moving the mouse left goes "Back").
I'll give a brief answer to your bonus question: Yes, it's quite possible to to character recognition from input gestures on Android. In fact, at least one major vendor has already ported an existing handwriting engine to that platform. Works beautifully, but there's a lot of legal and marketing cruft to take care of as well before it ends up on real devices :(

Categories

Resources