Re: [android-developers] Re: GUI with monkeyrunner

2012-10-16 Thread Bill Napier
On Tue, Oct 16, 2012 at 12:39 PM, Lew lewbl...@gmail.com wrote: I don't know about your specific modules, but you don't have to use Python to use monkeyrunner.jar; you could write code in Java, too. Java has GUIs available for it. Which, since Jython can use Java jars, might give you the

Re: [android-developers] How to improve MonkeyRecorder's low refresh rate?

2012-02-22 Thread Bill Napier
The limit here is the speed at which ADB can take screenshots and send the data over USB, nothing else. Might want to take a look at how some of the android vnc ports work, as that may be a more workable solution. On Sun, Feb 19, 2012 at 8:20 AM, antiAgainst antiagai...@gmail.com wrote: Hi,

Re: [android-developers] Re: Is it possible to use MonkeyRunner from java

2011-08-22 Thread Bill Napier
We re-factored a bunch of code to take a lot of the MonkeyRunner source and make it available as a library, specifically for people doing project similar to what you're doing. You should probably stop depending on the monkeyrunner.jar and start depending on chimpchat.jar (the new java library

Re: [android-developers] About com.android.monkeyrunner package

2011-07-26 Thread Bill Napier
What command are you running your script with? On Tue, Jul 26, 2011 at 4:50 AM, Awdhesh Jha awdheshkumar@gmail.comwrote: I can't find the package com.android.monkeyrunner. Without it I can't work on the monkey device. The errors are comming when I run my program which name is monkey.py

Re: [android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread Bill Napier
device.press('KEY_MENU', MonkeyDevice.DOWN_AND_UP) is what I think you want. I think the docs are currently incorrect. DOWN_AND_UP means to send both the down event and the up event, which should simulate a press of the button. On Mon, Jul 11, 2011 at 12:58 AM, frank franklin.f2...@gmail.com

Re: [android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread Bill Napier
Oh, and there currently is no way to get text from the screen. It's something we are working on, but it's not yet ready. On Mon, Jul 11, 2011 at 3:31 PM, Bill Napier nap...@android.com wrote: device.press('KEY_MENU', MonkeyDevice.DOWN_AND_UP) is what I think you want. I think the docs

Re: [android-developers] Re: Is it possible to use MonkeyRunner from java

2011-06-27 Thread Bill Napier
in advance. Thanks --Karthik On Jun 24, 10:39 am, Bill Napier nap...@android.com wrote: If you mean from Java on the phone (like as part of an application), then the answer is no. If you mean from Java on a computer, then the answer is yes. You just need to make your java project depend

Re: [android-developers] Is it possible to use MonkeyRunner from java

2011-06-24 Thread Bill Napier
If you mean from Java on the phone (like as part of an application), then the answer is no. If you mean from Java on a computer, then the answer is yes. You just need to make your java project depend on the MonkeyRunner.jar and you can call some of it's internal classes to do what you need.

Re: [android-developers] Simulate UI Actions on device

2011-06-15 Thread Bill Napier
On Sat, Jun 11, 2011 at 11:25 AM, Mark Murphy mmur...@commonsware.comwrote: If not, then is MonkeyRunner is enough for it? Only you can answer that. If MonkeyRunner doesn't work out well, you can always use the same protocol that MR uses to talk to the device to implement the features

Re: [android-developers] Problem with monkeyrunner. java.lang.ClassCastException when use sameAs().

2011-05-24 Thread Bill Napier
your stack trace doesn't match your code: if img_1.sameAs(1, img_2): has the arguments in the wrong order. It should be: if img_1.sameAs(img_2, 1) On Mon, May 23, 2011 at 2:58 AM, Alexander Sukhov testsem...@gmail.comwrote: Hello, I build SDK from source code. And i want to use the

Re: [android-developers] monkeyrunner + ADB over TCP

2011-05-16 Thread Bill Napier
Hi, I've never tried using MonkeyRunner over TCP. There is a bunch of stuff inside MonkeyRunner that assumes you're connecting to the device over USB. Without changing the MonkeyRunner source code, I'm not sure it's possible to connect to a device over TCP. I'll take a look at it and see if I

Re: [android-developers] monkeyrunner with different android versions

2011-04-27 Thread Bill Napier
what phone? There haven't been any changes to the monkeyrunner stuff on the device in that timeframe, so I'm not sure what the problem is. On Wed, Apr 27, 2011 at 7:59 AM, Tiago Maluta tiago.mal...@gmail.comwrote: Hi. I tested the same monkeyrunner [1] script on two android versions 2.3.3

Re: [android-developers] Long Press on Power Key with MonkeyRunner

2011-04-26 Thread Bill Napier
this worked for me (on Nexus S): from com.android.monkeyrunner import MonkeyRunner from com.android.monkeyrunner import MonkeyDevice dev = MonkeyRunner.waitForConnection() dev.press('POWER', MonkeyDevice.DOWN) It brought up the Phone Options menu. I really recommend that you use the constants

Re: [android-developers] Re: Batch Creation in Monkeyrunner

2011-04-26 Thread Bill Napier
We use python's unittest module to run a series of commands like that (very useful if you're doing stuff like regression tests): http://docs.python.org/library/unittest.html On Tue, Apr 26, 2011 at 9:42 AM, Diego Torres Milano dtmil...@gmail.comwrote: Well, in that case you don't need anything

[android-developers] Re: regarding monkey runner Tool

2011-04-15 Thread Bill Napier
Hi, I'm going to start taking the same support stance the other android devs on this list take. I can't answer private questions, but I can respond to questions posted on the list. In this case, you can just use the same device object each time: device = MonkeyRunner.waitForConnection() img1 =

Re: [android-developers] Re: how do I change screen orientation from ADB or equivalent?

2011-04-15 Thread Bill Napier
It looks like the flip command from the protocol that monkeyrunner uses may do it for you. It looks like it never got added to MonkeyDevice to be exposed as part of the monkeyrunner API.

Re: [android-developers] Re: how do I change screen orientation from ADB or equivalent?

2011-04-15 Thread Bill Napier
close OK And nothing happened on my phone. It may actually work on a device that has a flip out keyboard (G1 or droid for example), but I don't have one handy. On Fri, Apr 15, 2011 at 11:24 AM, Bill Napier nap...@android.com wrote: It looks like the flip command from the protocol

Re: [android-developers] Re: Compare MonkeyImage

2011-04-08 Thread Bill Napier
://code.google.com/p/android/issues/detail?id=16049 -Peddi. On Apr 7, 4:59 pm, Peddi Kanumuri peddi.kanum...@gmail.com wrote: Bill, How to build just the monkeyrunner.jar with these changes? We are in need of loadImageFromFile API. -Peddi. On Mar 7, 8:02 pm, Bill Napier nap...@android.com wrote

Re: [android-developers] Re: Running Monkeyrunner directly on Android tablet

2011-03-18 Thread Bill Napier
wrote: Hi Bill, Thanks for your reply. Could you please tell me if there is a way at least to run a Monkey script on the Android device directly? Thanks, Rakesh On Mar 17, 7:37 am, Bill Napier nap...@android.com wrote: Hi, This won't work. MonkeyRunner will only work on a host computer

Re: [android-developers] Running Monkeyrunner directly on Android tablet

2011-03-16 Thread Bill Napier
Hi, This won't work. MonkeyRunner will only work on a host computer, you can't run it from the device itself. Bill On Tue, Mar 15, 2011 at 5:15 AM, raki rakeshkart...@gmail.com wrote: Hi, I wanted to run a python script directly on an Android device through Monkeyrunner. I have installed

Re: [android-developers] Re: Using Eclipse write monkeyrunner

2011-03-16 Thread Bill Napier
Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. On

Re: [android-developers] [Monkeyrunner]: How to simulate short press on power button

2011-03-07 Thread Bill Napier
other way to simulate the lock screen? Really Appreciate your help. On Thu, Mar 3, 2011 at 4:30 PM, Bill Napier nap...@android.com wrote: This worked for me. It turned off my Nexus S when I tried it. What you were doing was only sending the down part of the DOWN_AND_UP, so it was like you

Re: [android-developers] Re: Compare MonkeyImage

2011-03-07 Thread Bill Napier
yet. I couldn't find any info on it. Cheers, Andrew On Feb 15, 4:11 pm, Bill Napier nap...@android.com wrote: Hi Christopher, Being able to load an image into MonkeyRunner from the filesystem makes a lot of sense, I don't see how I had missed that. All the test's we've been using

Re: [android-developers] Compare MonkeyImage

2011-03-07 Thread Bill Napier
that this percentage have changed with the next screenshot so that testcase is passed? Because that wouldn't make my testcases obsolete even if i change the background color. Thanks a lot for your help. On Tue, Feb 15, 2011 at 4:11 PM, Bill Napier nap...@android.com wrote: Hi Christopher, Being able

Re: [android-developers] [Monkeyrunner]: How to simulate short press on power button

2011-03-03 Thread Bill Napier
This worked for me. It turned off my Nexus S when I tried it. What you were doing was only sending the down part of the DOWN_AND_UP, so it was like you were pressing the POWER button and then never ever taking your finger off of it. If you want even more control over the duration of the press,

Re: [android-developers] Compare MonkeyImage

2011-02-15 Thread Bill Napier
Hi Christopher, Being able to load an image into MonkeyRunner from the filesystem makes a lot of sense, I don't see how I had missed that. All the test's we've been using MonkeyRunner before only ever wanted to compare to subsequent snapshots (to see what has changed). This looks pretty

Re: [android-developers] Re: monkeyrunner fails for emulator: Error starting command: monkey --port 12345

2010-12-09 Thread Bill Napier
Hi, You can safely ignore that log message. I know it looks scary, but things are still working (I got the same message when I just tried, but the rest of the script ran fine). In a later build that message will be totally be gone. Also, I noticed a slight typo in the docs regarding

[android-developers] Re: Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread Bill Napier
There are a couple problems here. 1. The phone doesn't have the adb command installed on it and doesn't need it. adb shell is only to be able to run shell commands from a computer on the phone. 2. Permission denied is the default (confusing and buggy) error code returned when you try and

[android-developers] Re: upgrade emulator firmware

2008-12-21 Thread Bill Napier
The questions your asking would probably be better asked on android-platform, where they discuss these kinds of things. But the reason you can't mount it is probably that your system doesn't have the yaffs2 kernel module loaded. b On Sun, Dec 21, 2008 at 4:17 AM, fry bender...@gmail.com wrote:

[android-developers] Re: Thought's On Android CupCake?

2008-12-21 Thread Bill Napier
I can't even keep track of the number of times I've wiped the data on my phone. Sometimes its gotta be done to test things. It usually takes me maybe 10-15 minutes to re-install all my apps and re-setup all my settings. IMHO, not that big a deal. All my contact info/calendar/etc. sync from

[android-developers] Re: Locking Down Root Access - Same Sh.., Different Vendor

2008-12-21 Thread Bill Napier
Can you please continue this discussion on android-discuss where it belongs? But it is nice to know that I'm now cool... I appreciate that. :) On Sun, Dec 21, 2008 at 3:18 PM, mashpl...@gmail.com mashpl...@gmail.com wrote: The phone mindset is wrong, consumers are not like they were in the

[android-developers] Re: How to retrive device log

2008-12-21 Thread Bill Napier
http://code.google.com/android/reference/adb.html#forwardports You can use adb to do some amount of port forwarding, but I'm not sure if it works in the direction you're looking for. You can also use 'adb logcat' to retrieve the system log on the phone. And if you keep it running you can get

[android-developers] Re: Where, exactly, are Context data files?

2008-12-20 Thread Bill Napier
You can also have write access to the SD card directly, so you could save your stuff for your app there, if you're willing to handle the case when the SD card may be not be plugged in. Also, 802.11n is backwards compatible with 802.11g. Just make sure you're not running your router in 802.11n

[android-developers] Re: Reset to factory settings programatically

2008-12-17 Thread Bill Napier
I would assume you would also need android.permission.MASTER_CLEAR. And then it looks like this is the magic from that file: ICheckinService service = 71 ICheckinService.Stub.asInterface(ServiceManager.getService(checkin)); 72 if (service != null) { 73

[android-developers] Re: Google Docs and Reader

2008-12-15 Thread Bill Napier
Just because I'm curious, why Reader? I've use Reader quite a bit in the browser to catch up blogs and stuff and am very happy with how it works. I can't see what a native Android App for Reader would add. b On Mon, Dec 15, 2008 at 8:50 PM, Chris B. chrismbell...@gmail.com wrote: I'm not

[android-developers] Re: error on my Mac 10.4 Power book: cannot execute binary file

2008-12-13 Thread Bill Napier
Are either of the mac users running on an old powerbook? Like the PowerPC (non-intel) powerbooks? The Android SDK is only works on Intel-based mac's. (I would love to see universal binaries for the mac stuff as well so I can use my PPC mac...) b On Mon, Nov 24, 2008 at 9:11 AM,

[android-developers] Re: Anyone else seeing problems with the browser Google Sites?

2008-12-10 Thread Bill Napier
Have you tried accessing it on Wifi vs. cell data? Could also be a t-mobile data issue. On Wed, Dec 10, 2008 at 10:52 AM, Al Sutton [EMAIL PROTECTED] wrote: I suppose the question now is is this an Android bug or a Google sites bug? Al. Al Sutton wrote: Mark Murphy wrote: Al Sutton

[android-developers] Re: sending email

2008-12-04 Thread Bill Napier
Searching this forum for the term send email gave me this mail: http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gstq=sending+email#c1d0be41174b4999 Which has some example code that you could use. On Thu, Dec 4, 2008 at 10:51 AM, dilu

[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier
I would start looking here: http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri, boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't

[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier
I would start looking here: http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri, boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't

[android-developers] Re: Is it possible to add a custom link in the Share Picture Via dialog?

2008-11-25 Thread Bill Napier
, Bill Napier [EMAIL PROTECTED] wrote: Yes. Register an intent-filter for your activity that captures: action: android.intent.action.SEND category: android.intent.category.DEFAULT mimeType: image/* If you look at the AndroidManifest.xml for the Mms application in the git repo you can see

[android-developers] Re: Is it possible to add a custom link in the Share Picture Via dialog?

2008-11-24 Thread Bill Napier
Yes. Register an intent-filter for your activity that captures: action: android.intent.action.SEND category: android.intent.category.DEFAULT mimeType: image/* If you look at the AndroidManifest.xml for the Mms application in the git repo you can see an example of it. b On Sat, Nov 22, 2008