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.