Is there any application that I can use to record user activity with android applications?
I want to get the user steps when they are testing the application. Is it possible to record their steps (maybe as screenshots)?
You could use the LogCat. At every step you want to record, print something to the LogCat
Log.D("Button Press", "User touched the 'View More' button);
And then using the LogCollectors source code (http://code.google.com/p/android-log-collector/
) you can email it to yourself and conduct your analysis.
Alternatively, you could try to use monkeyrunner (http://developer.android.com/tools/help/monkeyrunner_concepts.html) and create a script that runs and takes screen shots while the user uses the application [not sure if that would work - have never used it].
I would think for the purposes of collecting data, using the logcat would be a smoother and more detailed process.
Related
Here is my problem, I've done an app to configure an IoT home device and saves this device properties on a simple SharedPreferences file, that's already done, but the other goal is to give this app the capability of "Invite" another user using this app so that this user can control this ALREADY configured device...I'm having trouble finding the specific name of this "Feature",
At this moment I've been thinking of simply adding the capabily of Sharing this file to the other app, like "Share my Devices", and pair the phones so that the other receives the file with the already configured devices. But I imagine more appropriate the scenario of "Invite User" to control the devices, and when doing it, the app receives a notification for accepting, but...what must happen after this on the underground?, I'm I little confused for "What to search", to start doing this, for example, when I didn't knew what was the concept of refreshing a webpage in real time I got the keyword for "polling", and just with that I was able to do the work, So, I don't know If you could just give a direction of what to search for the feature I'm looking, or at leats example of tecnologies using something close to this.
I want to create an application that open another application and begins to fill fields type text and select like Xmodes in games . This application is for test my application in real mode
I now i need root my divice to do this
Any help please
I don't know if this is exactly what you are looking for, but it could be helpfull.
ADB has got a command called UI/Application Exerciser Monkey.
With this command the ADB will automatically perform random click, slides, input on one of your application activity.
You can set some parameters too if you want to define which kind of input and operation should the monkeys perform.
I used to use an app called Log Collector to see system logs. It would send them to my email or via bluetooth,
However, on Jelly Bean the "read log" permission for apps no longer exists and apps can't read the logs, and Log Collector is obviously no exception.
So does one now need to root the device to see system logs? There must be a way for the user to read them. I don't need to access them from an application, I need to read them as a human being. Is there a way?
I got the answer in this google groups thread:
https://groups.google.com/forum/?fromgroups#!searchin/android-developers/READ_LOGS/android-developers/6U4A5irWang/8xOi74KfRIYJ
the message by Mark Murphy replying to Matteo Sisti Sette (which is me).
(it doesn't seem to be possible to link to a particular message, is it?)
POWER + VOLUME_UP + VOLUME_DOWN will generate a report and a screenshot that you can send via email or upload to Drive (ridiculous you can't share it in an arbitrary way such as send via bluetooth or open as text file, but anyways).
(seems you have to hold them for a while and the action is launched when you release them)
At first I thought he was making fun of me and that would just reboot or something, but then I tried and it works.
Quote from Google+ and credits to +Ian Clifton :
"If you go into the developer options of a device running 4.2, you can check the box to add the Bug Report option to the power menu. This also adds it to the quick notifications menu (not sure of the proper name, but slide down the notification shade with two fingers on a phone or on the right side of a tablet)."
..and that would be right answer.. Cheers
I can start my application by simply putting the phone on a NFC-tag. But I would like to take the idea one step further. Imagine a simple time-tracking application with two NFC-tags. The first will start (and download) the application and register a starttime. The other will also start (and download) the application, but register a stoptime.
My problem I'd like to solve is that I don't want my phone to know about these tags. The application should not need to have a list of tag-ids programmed and know what actions that is connected to each id. The tag should carry the information needed to start the action on the phone with the correct parameters.
Are there any information about how to accomplish this scenario? I have installed "nfc-eclipse-plugin" but doesn't understand how to use it to get my goal and even less how to get my application to read the extra data.
Thanks in advance
Roland
Your tags should be capable of storing NDEF messages. Such messages are automatically read out by Android and passed to your app in an Intent. Automatically installing and/or starting your app can be accomplished by putting an Android Application Record in your tag. Any additional information ("start" or "stop" indication) can be stored in a proprietary record.
You probably want to put the AAR as the last record of the NDEF message, as it is detected and acted upon by Android automatically, but is only supported since ICS. To make automatic installation work with Gingerbread, you can put an additional URI record or SmartPoster record with a Google Play Store link in it as the first record of the message. Your app should then filter (ACTION_NDEF_DISCOVERED) for this URI, so it will also start automatically on Gingerbread.
On Android I am using the android.util.Log to log within my application and during development I am using the adb logcat or Eclipse to see the logs - I use it even more then debugging...
On device I can save the logfile from my code or use some application form Android Market to save the logs - e.g. aLogCat.
Now can I do the same on the iPhone? I can use the NSLog(#"message");, but can I easily save the log file from my application and access it? Are there any ways for that?
Regards,
STeN
This is from NSFoundation reference
NSLog:
Simply calls NSLogv, passing it a variable number of arguments.
NSLogv:
Logs an error message to the Apple System Log facility (see man 3 asl). If the STDERR_FILENO file descriptor has been redirected away from the default or is going to a tty, it will also be written there. If you want to direct output elsewhere, you need to use a custom logging facility.
Thus, it is only a matter of redirecting the file-descriptor "stderr" (2) to a custom file, and you will get everything that you print using NSLog in that file.
This seems to be exactly what you want.
Note that if you want to get logs on console when you are connected to the debugger, you can wrap your code around this to avoid redirection in this case:
if (!isatty(STDERR_FILENO)) { // Not connected to any terminal
// your redirection code
}
You can access the console log from Organizer->Device->Your device->console.
If that is not powerful enough, consider using utilities like NSLogger.
The previous answers are good; also see this if you're inclined to making system calls.