Android :: Monkey Tools Features - Hprof Format - Preestablished Commands?
Jan 30, 2009
I found the tool monkey and I ve been doing some test with it but there were two things that I could not do. The first is to read the. hprof files that it produces when the -hprof option is set. I tried to process them with the ECLIPSE memory analizer but it did not work. Do you know if there is a program that reads these files? OH and the other feature that I wanted to know if it even existed was if I could set a preestablished order of commands for the monkey to follow or if it only works randomly.
View 3 Replies
Sep 7, 2010
Once I start up monkey from the shell like:
adb shell monkey --port 1080
Then, If I write normal java code to establish a connection to 127.0.0.1:1080 (on the device itself) and then issue monkey commands from there?
I have tried this and I am able to create a socket, but to get the response, I wait for an awfully long time and nothing happens. Why this behavior?
View 2 Replies
View Related
Jan 19, 2009
I was trying to send Monkey commands in one of my test applications. But When I install it on the emulator, the packageManager refuses to grant permission "SET_ACTIVITY_WATCHER" which is required to run Monkey.
Is it possible to call Monkey in a test application?
View 2 Replies
View Related
Jun 22, 2010
This is my Monkeyscript type= point count= 0 speed= 1 start data >>
captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0); captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0); captureDispatchKey(5113146,5113146,0,4,0,0,0,0); captureDispatchKey(5113146,5113146,1,4,0,0,0,0);
I want give a sleep between the second sentence and the third one, but i don't konw the grammar format. Is the grammar format is "UserWait(5000)"?
View 2 Replies
View Related
Sep 6, 2010
Provide the example or format for writing my own script to be used with monkey tool.
View 2 Replies
View Related
Apr 19, 2010
I've been looking around for tools for working with MIDI to create soundfonts, but the one mentioned in the Android JET docs (Awave) is a bit pricey for me. Tried Vienna Soundfont Studio but it quickly told me that I have "no soundfont compatible device" on my laptop. Since I'm coming from a GBA/DS homebrew background, my current solution is using the tracker formats (MOD,XM,IT, etc.) and building libmodplug with the NDK. It allows me to bring the size of the 12 music files in my game down from about 15MB (ogg) to 750KB (mod,xm + libmodplug.so size). Anyway, just wondering how other game developers are handling music and what tools you're using. You received this message because you are subscribed to the Google Groups "Android Developers" group.
View 4 Replies
View Related
Feb 26, 2014
I have an iPhone 5s clone MT6572.
I think I've screwed up my phone. I performed a format with SP Flash tools and flashed a new rom. Stupidly I didn't take a backup of my IMEI number or a proper backup of my rom! . Luckily I found a CWM backup of my MP0B_001 file in my NVRAM folder and have managed to get my IMEI number back!
I have a problem though, I cannot get a mobile network signal but I CAN detect the sim card. It detects the network name and my mobile number but not a signal. Please see the attached image.
View 2 Replies
View Related
Apr 17, 2009
As mentioned in the second message, i can generate the hprof files. But I m facing difficulty in opening this file using Jprofiler.
View 3 Replies
View Related
Feb 3, 2010
I'm having trouble analyzing a hprof dum using the Memory Analyzer.. Anyone have any ideas? Here is the error message I get. I just used the "Dump HPROF file" button, and picked it up from the sdcard and opened it with MAT...
View 6 Replies
View Related
Jun 16, 2010
In my application , i have an option to capture the hprof dump. I used
android.os.Debug.dumpHprofData (String fileName)
Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process.
Now i am trying to generate hprof data for other process as well. I need to get the Hprof dump for all the running processes from application code.
from adb shell i tried "kill -10 <pid>" , This command will generate the hprof file for the corresponding process in the data/misc folder.
Now the problem is this command is working perfectly from the adb shell prompt , but i am not able to embed the command to mycode.
My code is like
Runtime.getRuntime().exec("chmod 777 /data/misc") Runtime.getRunTime().exec("kill -10 <pid>")
No exceptions are thrown , but somehow it is not working. The same code above is capturing Hprof dump for my process, when i give my process ID.
I tried with "android.os.Process.sendSignal (int pid, android.os.Process.SIGNAL_USR1) ;" also.Getting the same problem.It is capturing Hprof dump for my process. For other processes it is not working.
Do we need to have any special permission to kill other process from our process ? Or is it a built issue ? can you please suggest some possible way to get Hprof dump for other processes from application code?.
View 2 Replies
View Related
Nov 18, 2009
Here,http://android.git.kernel.org/?p=platform/ dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD is a description about Dalvik Heap Profiling.
In "Android 1.6 ("Donut")" section, it says "Select your application and click the "dump HPROF file" button. ". I can find that button in DDMS.
I found there were three items in Device menu: 1.dump device state 2.dump app state(always disabed) 3.dump radio state
Is "dump app state" button the "dump HPROF file" button?
View 5 Replies
View Related
Sep 2, 2009
In the android phone, click "settings" and then goto "date & time settings" , user can choose "Use 24-hour format" or not. My question is how to find out this setting through api?
View 6 Replies
View Related
Jan 12, 2010
This maybe be a simple question but how do you format a double into a dollar format? For example I have a value of 4.2. In a textview I would like to see $4.20. Also what are my options for applying the correct currency symbol?
View 2 Replies
View Related
Sep 6, 2010
Passing two int values m =0 & s = 11, to below function String formatted = String.format("%1$02d:%2$02d", m, s); returning the value like .0:11 ,What could be the problem? m=0, s=11 -->.0:11 m=0, s=1 --> .0:.1. The 0 added to format the string always coming as '.' (dot). Can anyone know ,from where the number patterns are getting loaded in Android? I gone thorough the code, Its related the following file, androiddalviklibcoreicusrcmainjavacomibmicu4jniutil Resources.java ->localeData.numberPattern. How the pattern for particular locale is loaded, What could be the problem for the above?
View 3 Replies
View Related
Jun 12, 2010
I am really interested to use monkey with my own script,but i don't know the format of the script, can you give me a complete example for monkey script.
View 2 Replies
View Related
May 5, 2009
I was testing my program with Monkey under the 1.5 emulator. It gets hung up on some of the dialogs which a user would just dismiss with the back key and quits with a "not responding" error. The application hasn't quit and dismissing the dialog the program continues to run normally. This will also happen with any of the edit dialogs that the SoftKeyboard pops up during entry. Soemtimes it will manage to dismiss a dialog. I don't see anything in the options to prevent this.
View 2 Replies
View Related
Jul 8, 2010
I am doing to wirte Monkey Script but i have no idea about it
someone have a sample script?
I searched in google so found some it. but i don't know that mean of the script
=========================== type= point <---- how many type can i use? count= 10 speed= 1.0 start data >> captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0); captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0); delay(5000) <-----how many function can i use and type?
captureDispatchKey(5113146,5113146,0,4,0,0,0,0); captureDispatchKey(5113146,5113146,1,4,0,0,0,0);
View 2 Replies
View Related
Mar 23, 2010
Android Monkey tool can use user supplied script to run, but very few information are present in this regarding to writing android monkey script. one guy only copied the stuff from source code and apart from that no information is present. Can anyone tell abount the sysntax of android monkey script to launch browser using the command from script and to browse particular website.
View 7 Replies
View Related
Dec 22, 2009
I'm using the UI test monkey tool provided with android. This is a consistent error I see and wonder how I can avoid it.
Somehow the test app will rotate the orientation of my app such that the emulator window is still in portrait orientation, but the screen surface is in a landscape orientation. When in this configuration, any time you click on an EditText, a system exception gets thrown:
"The application OpenWnn (process jp.co.omronsoft.openwnn) has stopped unexpectedly. Please try again."
So this OpenWnn process is not mine, it looks like it handles display of the virtual keyboard. When in this odd orientation mode, and you try to click in an EditText, I can see the virtual keyboard try to slide in from the left side of the screen, then that exception gets thrown.
I'm not sure what orientation this is, because it's not the normal landscape orientation you get by hitting ctrl + F11. In fact, the virtual keyboard shouldn't even be trying to display itself in landscape mode? Much less from the left side of the emulator?
View 1 Replies
View Related
Mar 30, 2009
I want to load an external library in monkey.For example,i write a series method in a new class with java,and i want to pack it to be a library like .so/.dll/.JAR or something else.Then the monkey is to load the library ,to use the mothod in it. I know the source code must be rebuild ,but how can it be done--how to pack it into a library,and load the library? If any one knows anything ,please help me out.
View 2 Replies
View Related
Feb 8, 2009
As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?
View 5 Replies
View Related
Apr 15, 2009
I don't have a option -f in my command monkey(/system/bin/monkey). example: adb shell monkey -f <script_file_name>. But the command unknown option -f. So I want to get the source code of the command monkey, then open this option and rebuild it.
View 6 Replies
View Related
Apr 6, 2009
We are trying to test the Music Player (Music.apk) with Monkey. We have added the permissions in AndroidManifest.xml of Camera application (Camera.AK): <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" /> In the same file, we have added intent for MovieView Activity: <category android:name="android.intent.category.MONKEY" /> We use the following commands: # Launch the Music Player am start -a android.intent.action.MAIN -n com.android.music/ com.android.music.VideoBrowserActivity # Launch Monkey to test Music player monkey -p com.android.music -v -v -v 500 But, we get the error message: "// Rejecting start of Intent.
View 2 Replies
View Related
Oct 11, 2010
My preferences section contains user names and passwords that, if trashed, render the rest of the app non-functional. How can I keep the testing monkey's grubby fingers out of the preferences?
View 3 Replies
View Related
Aug 9, 2010
I want to include about 40 packages in monkey command.But when I tried to include 40 packages using -p option, adb shell returned me "Service name too long " error .This seems to be limitation of adb shell. Is there any way to overcome this?
View 3 Replies
View Related
Sep 8, 2010
I start monkey like this:
monkey -p <MY PACKAGE> --port 4321
(I have already done a tcp port forwarding).
I then use PuTTY to telnet to 127.0.0.1:4321
I can issue a command like tap 100 100 I get a response OK but I see nothing happening on the UI. I have placed a button at that location but I does not receive the touch event.
When I run monkey like this
monkey -p <MY PACKAGE> --pct-touch 100 -v 10
I see touch events being dispatched to the screen.
View 1 Replies
View Related
Mar 31, 2010
To automate system application testing, trying to use android monkey tool.But monkey tool use only default setting for testing particular application.
Is there any documentation or help to write user own android monkey tool script to automate monkey tool for application testing.
View 2 Replies
View Related
Jun 28, 2010
I am doing monkey test for my application, and I meet Remote Exception many times. I don't know why remote-invocation errors occurs. Has anyone experienced such exception?
Monkey Log snippet:
:Sending Pointer ACTION_MOVE x=-1.0 y=-3.0
:Sending Pointer ACTION_DOWN x=322.0 y=77.0
:Sending Pointer ACTION_UP x=322.0 y=77.0
:Sending Pointer ACTION_DOWN x=299.0 y=488.0
Error: RemoteException while injecting event.
Events injected: 11088
:Dropped: keys=0 pointers=2 trackballs=0 flips=0
## Network stats: elapsed time=1511978ms
(1511978ms mobile, 0ms wifi, 0ms not connected)
System appears to have crashed at event 11088 of 56000 using seed 25194847
View 5 Replies
View Related
Sep 12, 2010
I am trying to do 2 things with monkey
1. Execute a script with a command like
adb shell monkey -p MY_PACKAGE --setup scriptfile -f /sdcard/ mon_script1.txt 1
where mon_script.txt contains a few touch commands. After I execute this, I see nothing happening on the screen. It even does not give me the "Number of events injected message". I have verified that my touch co-ordinates fall over actual UI elements.
This is the script file I am using
tap 79 29 tap 100 100 tap 200 200 tap 300 300 quit
2. Execute Monkey Network control to type commands individually. I start up monkey to listen to a port and use PuTTY to send commands. I get "OK" return messages, but nothing happens on the screen.
Whenever I use monkey in the random mode, I see interaction on the screen. But I need to get one of the above 2 methods to work. I have seen the sources of monkey and nothing seems to be wrong. Has anyone used monkey in the above described way? If so, please tell me what I am doing wrong.
View 6 Replies
View Related
Jun 29, 2010
I am trying to convert string to date, and then I ma saving this date in a file , which saves in the following format:Mon Jun 21 16:31:24 Asia/Karachi 2010.and then when later I read this date from file as a String, I again want to save it to a Date,
View 2 Replies
View Related