For the research I am doing, I am required to collect data from user interaction with android devices ICS or better for touch inputs. I was thinking the best way to do so would be to use the Pointer Location available under Developer Options settings. I traced the source code that recreated that into a program was able to see the logs from that program through logcat, but I am not able to see it when I am running from the settings. Could anyone please point me into a right direction on how can I go about getting those log files? Here's the source that seems to be responsible for logging which does fine in my application but not through the settings menu:
private void More ...logPointerCoords(MotionEvent.PointerCoords coords, int id) {
Log.i(TAG, mText.clear()
.append("Pointer ").append(id + 1)
.append(": (").append(coords.x, 3).append(", ").append(coords.y, 3)
.append(") Pressure=").append(coords.pressure, 3)
.append(" Size=").append(coords.size, 3)
.append(" TouchMajor=").append(coords.touchMajor, 3)
.append(" TouchMinor=").append(coords.touchMinor, 3)
.append(" ToolMajor=").append(coords.toolMajor, 3)
.append(" ToolMinor=").append(coords.toolMinor, 3)
.append(" Orientation=").append((float)(coords.orientation * 180 / Math.PI), 1)
.append("deg").toString());
}
Edit on what I did with source:
I recreated a program/app from two class: public class PointerLocationView extends View called from public class PointerLocation extends Activity and managed to replicate the same functionality in an activity.
Thank your for the help.
AFAIK it's not possible to record the system wide touches programmatically: https://android.stackexchange.com/questions/13992/how-can-i-record-touches
And I couldn't generate any touch log with the pointer location developer option. It only logs when you turn it on once and they are not pointer locations they are like general information.
Maybe this application might give you an idea(I haven't tried it)
https://play.google.com/store/apps/details?id=com.cygery.repetitouch.free
http://forum.xda-developers.com/showthread.php?t=2270795
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With