Click here to Skip to main content
15,897,166 members

Comments by Steve Krakov (Top 4 by date)

Steve Krakov 2-Jul-15 17:39pm View    
I have tried googling, searching through forum posts here and on Reddit and Stack Overflow for previous questions that relate to my own, and reading through the Google Android documentation.
So far, no luck. I still don't know what method might be able to log key strokes.
Do you know of any such method?
Steve Krakov 2-Jul-15 17:36pm View    
Sergey, I'm not sure what you're after. I will try to explain.
The problem is that I don't know what methods to research, so I am posting here and asking for advice. This is a place people go to for help.
Do you know what methods to research that might do what I described?
Steve Krakov 28-Jun-15 17:38pm View    
Thanks Sergey!
I have read this article on fampennings before and it's really thorough. It's a great resource.
However, I do already have a working keyboard now -- that's not the problem. Making the keyboard itself was pretty straightforward.
The problem I'm having is this: what kinds of methods would I start researching or trying, to log the actual keystrokes to a log file?
So far, my research has lead me to this conclusion: I should put the key logging code in the onKey method of the soft keyboard main java file. I have already added the commitText and sendKeyEvent methods within onKey -- those are necessary for base keyboard functionality.
Any ideas about what method to put in there, now, to log the keystrokes?
Steve Krakov 24-Jun-15 21:21pm View    
Thanks Afzaal.
So I'm in my sophomore year of college doing a double major in Computer Science and Psychology. My "post" is Junior Android Developer for the Psych department development team. So far, I've only made point fixes to existing code (plus I wrote a simple Android game that I converted over from a Java project from a CS course). This is only my second time making an app from the ground up, and my first time doing anything with the keyboard.

I've figured out what the onKey method does, and figured that I would add whatever it is I need to log the keys there. Within the onKey method, I'm already adding commitText and sendKeyEvent to send events to the external application. So I figured I'd have to put some method in there to similarly send the character to some log file, but I was looking for what method to use to write the character to a log file.