tag:blogger.com,1999:blog-25456655.post8031336503349116937..comments2024-02-09T11:53:32.369-05:00Comments on Diego Torres Milano's blog: Android: Using monkey from JavaDiego Torres Milanohttp://www.blogger.com/profile/12030778501784140349noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-25456655.post-36766746709547027022023-06-27T16:24:53.329-04:002023-06-27T16:24:53.329-04:00Erfahren Sie, warum die Einstellung von IT-Spezial...Erfahren Sie, warum die Einstellung von IT-Spezialisten aus der Ukraine eine kluge Wahl ist. Die Ukraine hat sich als globaler Hotspot für talentierte und erfahrene Fachkräfte etabliert, insbesondere im Bereich der IT. Die Zusammenarbeit mit ukrainischen Experten ermöglicht es Unternehmen, hochqualifiziertes Personal zu wettbewerbsfähigen Preisen einzustellen. Von Laravel-Entwicklern über Machine Learning-Experten bis hin zu Microsoft Dynamics-Entwicklern bieten ukrainische IT-Spezialisten eine breite Palette von Fähigkeiten und Erfahrungen. Nutzen Sie diese Möglichkeit, um Ihr Team zu erweitern und den Erfolg Ihres Unternehmens voranzutreiben. <a href="https://mobilunity.ch/blog/it-spezialist-aus-der-ukraine-einstellen/" rel="nofollow">Dieser Artikel</a>judefowler764https://www.blogger.com/profile/03596847046693140530noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-16918169588135423482013-03-30T06:58:17.737-04:002013-03-30T06:58:17.737-04:00Hi Diego, thanks for your reply. I have the ia32-l...Hi Diego, thanks for your reply. I have the ia32-libs installed, I even installed a 32bit linux to see if that's the problem, same thing. Adb runs fine from the command line as a normal user. I read about that error on SO and the likes and tried every proposed solution, to no avail :(<br />Will your program work from Windows? I guess I'll try that next ... Anonymoushttps://www.blogger.com/profile/01110880563375621847noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-8643730268194010142013-03-30T06:56:33.969-04:002013-03-30T06:56:33.969-04:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01110880563375621847noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-81624777901440954482013-03-28T14:23:45.778-04:002013-03-28T14:23:45.778-04:00@florian weigl,
Do you have 32bit libs installed?
...@florian weigl,<br />Do you have 32bit libs installed?<br /><br />$ sudo apt-get install ia32-libs<br /><br />Does adb run from your command line?<br /><br />$ /path/to/adb<br /><br />Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-81234048181419355362013-03-28T13:45:55.834-04:002013-03-28T13:45:55.834-04:00I keep getting this dreaded error:
Cannot run pro...I keep getting this dreaded error: <br />Cannot run program "/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools": error=13, Permission denied' while attempting to get adb version from '/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools'<br /><br />both on a device and an emulator, i chmod777 ed the adb program and the containing directory, tried running 'adb root', added adb to my bashrc. Does anyone have a suggestion what the problem could be here?Anonymoushttps://www.blogger.com/profile/01110880563375621847noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-37152620119725277052013-02-07T22:59:25.913-05:002013-02-07T22:59:25.913-05:00@Rah-e-Huda,
The program works "as is", ...@Rah-e-Huda,<br />The program works "as is", try to run an unmodified version first to check that you don't have any problems in your setup in general.<br /><br />Serial number can be specified as a regex, then <b>.*</b> matches anything.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-68853510387533413742013-02-06T17:34:43.856-05:002013-02-06T17:34:43.856-05:00Hey Diego,
When I try to run this program, I am g...Hey Diego,<br /><br />When I try to run this program, I am getting following error.<br /><br />Exception in thread "main" java.lang.NullPointerException<br /> at automate.init(automate. java:26)<br /> at automate.main(automate. java:57)<br /><br />Its causing issues on lines where I am doing mChimchat.waitForConnection(TIMEOUT, "Device ID")<br /><br />Also, when we use .* for device ID what does that imply?Tariq Ghalibhttps://www.blogger.com/profile/14355811042382618478noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-89481714473629402962012-11-25T11:53:06.934-05:002012-11-25T11:53:06.934-05:00@Mphozor
set your adb location
options = new Tr...@Mphozor<br /><br />set your adb location <br /><br />options = new TreeMap();<br /> options.put("adbLocation", "/opt/android-sdk-macosx/platform-tools/adb");<br /> options.put("backend", "adb");<br /> chimpchat = ChimpChat.getInstance(options);<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25456655.post-14688171944123908142012-10-05T12:09:07.068-04:002012-10-05T12:09:07.068-04:00@Mphozor,
Check how the constant ADB is set and ad...@Mphozor,<br />Check how the constant ADB is set and adapt it to your installation, full path to adb. My example was run on OS X so you will have no problems.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-25822737278304476342012-10-05T04:53:07.532-04:002012-10-05T04:53:07.532-04:00Hi @Diego by adapting your environment what excatl...Hi @Diego by adapting your environment what excatly do you mean ? I can run adb from the terminal just by typing adb but here on the chimpchat I get "E/adb: Failed to get the adb version: Cannot run program "adb": error=2, No such file or directory from 'adb' - exists=false" <br />I am using a Mac<br /> Mphozorhttps://www.blogger.com/profile/06286265395674717748noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-85153363875710024912012-09-17T01:57:28.702-04:002012-09-17T01:57:28.702-04:00@Manish Singla,
They will be running on different ...@Manish Singla,<br />They will be running on different JVMs so simple object lock or boolean flag won't work.<br />Are you suggesting something different?Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-25820292847729462942012-09-17T01:41:40.292-04:002012-09-17T01:41:40.292-04:00INFO: Error starting command: monkey --port 12345
...INFO: Error starting command: monkey --port 12345<br />com.android.ddmlib.ShellCommandUnresponsiveException<br /><br />This error occur when you run the multiple instance of above code. To avoid this please use object lock or boolean flag.Anonymoushttps://www.blogger.com/profile/16704516386953471553noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-51955542987083153772012-09-11T04:21:29.658-04:002012-09-11T04:21:29.658-04:00if i comment the following line:
from com.dtmilan...if i comment the following line:<br /><br />from com.dtmilano.android.viewclient import ViewClient<br /><br />then i get this error:<br /><br />Traceback (most recent call last):<br /> File "C:\Users\gur31265\workspace\MonkeyRunner\com\htc\monkey\runner\MonkeyRunner.py", line 21, in <br /> from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice<br />ImportError: No module named android.monkeyrunnerAshwani Kumarhttps://www.blogger.com/profile/05703851854131695993noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-47497326467034002172012-09-11T01:42:34.709-04:002012-09-11T01:42:34.709-04:00Error:
Traceback (most recent call last):
File &...Error:<br />Traceback (most recent call last):<br /> File "C:\Users\gur31265\workspace\MonkeyRunnerForSmartRecorder\com\test\Runner.py", line 23, in <br /> from com.dtmilano.android.viewclient import ViewClient <br />ImportError: No module named dtmilano.android.viewclient<br /><br />PythonPath:<br />D:\eclipse-jee-juno-win32\eclipse\plugins\org.python.pydev_2.6.0.2012062818\pysrc\pydev_sitecustomize;<br />C:\Users\gur31265\workspace\MonkeyRunnerForSmartRecorder;<br />D:\E & F Drive Back up\Program Files\Android\android-sdk\tools\lib\monkeyrunner.jar;<br />C:\Program Files\Python32\DLLs;<br />C:\Program Files\Python32\lib;<br />C:\Program Files\Python32;<br />C:\Program Files\Python32\lib\site-packages<br /><br />sys.path:<br />C:\\Users\\gur31265\\workspace\\MonkeyRunnerForSmartRecorder\\com\\test<br />C:\\Users\\gur31265\\workspace\\MonkeyRunnerForSmartRecorder<br />D:\\E & F Drive Back up\\Program Files\\Android\\android-sdk\\tools\\lib\\monkeyrunner.jar<br />C:\\Program Files\\Python32\\DLLs<br />C:\\Program Files\\Python32\\lib<br />C:\\Program Files\\Python32<br />C:\\Program Files\\Python32\\lib\\site-packages<br />C:\\Windows\\system32\\python32.zip<br />C:\\Users\\gur31265\\Downloads\\dtmilano-AndroidViewClient-bd98f63\\AndroidViewClient/src<br /><br />I used the same script given at: <br />http://dtmilano.blogspot.ca/2012/02/monkeyrunner-interacting-with-views.htmlAshwani Kumarhttps://www.blogger.com/profile/05703851854131695993noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-45231392660672361792012-09-11T01:34:31.692-04:002012-09-11T01:34:31.692-04:00@Ashwani Kumar,
Post some detail on what you did a...@Ashwani Kumar,<br />Post some detail on what you did and the error messages you received if any.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-56636856801082119212012-09-11T01:31:39.076-04:002012-09-11T01:31:39.076-04:00Hi Diego,
The problem is still there. Even...Hi Diego,<br /> The problem is still there. Even the script mentioned on the page you referenced too have unresolved import errors. What i want to know is what all i have to add to sys.path in order to make these scripts working. And the mechanism through which i need to add those libraries.<br />ThanksAshwani Kumarhttps://www.blogger.com/profile/05703851854131695993noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-56988157997153307912012-09-11T01:07:54.652-04:002012-09-11T01:07:54.652-04:00@Ashwani Kumar,
I think the post monkeyrunner: imp... @Ashwani Kumar,<br />I think the post <a href="http://dtmilano.blogspot.ca/2012/09/monkeyrunner-importing-from-pythonpath.html" rel="nofollow">monkeyrunner: importing from PYTHONPATH</a> may answer you question.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-98542640420863782012-09-10T02:07:11.068-04:002012-09-10T02:07:11.068-04:00Hi, I am getting the following error:
Traceback (m...Hi, I am getting the following error:<br />Traceback (most recent call last):<br />File "C:\Documents and Settings\gur31265\workspace\MonkeyRunnerForSmartRecorder\com\test\Runner.py", line 23, in<br />from com.dtmilano.android.viewclient import ViewClient<br />ImportError: No module named dtmilano.android.viewclient<br /><br />I had added a source folderpath in PYTHONPATH property of pyDev. I am using eclipse. I had also set ANDROID_VIEW_CLIENT_HOME in system path but with that i get Unresolved import: ViewClient error. I am using Windows 7 OS. please help.Ashwani Kumarhttps://www.blogger.com/profile/05703851854131695993noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-65793518559341758782012-09-10T02:05:56.578-04:002012-09-10T02:05:56.578-04:00This comment has been removed by the author.Ashwani Kumarhttps://www.blogger.com/profile/05703851854131695993noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-71844766662090553232012-07-08T01:29:07.232-04:002012-07-08T01:29:07.232-04:00I am creating a project that is basically like a m...I am creating a project that is basically like a mouse for android that can connect to a tablet and move around a cursor on the screen over the other applications and can click on and open other applications. I'm somewhat new to android developing so I assumed that I would need to create an android app instead of a java project to make the program available in an app store and to take advantage of android's other features, like views. Is it possible to do all of this with just a java project? Or is there another software library better suited for what I want to do?David Mhttps://www.blogger.com/profile/05351956082982625637noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-72183886478866168492012-07-06T17:58:47.133-04:002012-07-06T17:58:47.133-04:00Well, chimpchat is intended to be used by Java app...Well, chimpchat is intended to be used by Java apps connecting to android devices.<br />What do you want to achieve using it in an Android app ?Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-61992024848036307872012-07-06T16:52:05.562-04:002012-07-06T16:52:05.562-04:00This example works wonderfully for me when created...This example works wonderfully for me when created in a java project, but when I move the class into an android project and run it, this line...<br />mChimpchat = ChimpChat.getInstance(options); <br />seems to cause the android tablet to produce an error reading "unfortunately javamonkey has stopped". Am I missing something I need to add or is this command in some way incompatible with Android projects? Any help is appreciated, thanks.David Mhttps://www.blogger.com/profile/05351956082982625637noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-11537994943954874782012-05-17T10:06:36.773-04:002012-05-17T10:06:36.773-04:00@Anand P,
This articles may help you:
monkeyrunner...@Anand P,<br />This articles may help you:<br><br /><a href="http://dtmilano.blogspot.com/2012/01/monkeyrunner-testing-views-properties.html" rel="nofollow">monkeyrunner: testing Views properties</a><br><br /><a href="http://dtmilano.blogspot.com/2012/05/androidviewclient-q.html" rel="nofollow">AndroidViewClient: Q&A</a><br>Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-59613913204913288082012-05-17T05:01:40.088-04:002012-05-17T05:01:40.088-04:00@Diego
Can i click on a view with the help of the...@Diego<br /><br />Can i click on a view with the help of the text on view with Chimpchat.Anand Phttps://www.blogger.com/profile/08177124003172036634noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-26380551749732286682012-05-17T05:00:07.952-04:002012-05-17T05:00:07.952-04:00This comment has been removed by the author.Anand Phttps://www.blogger.com/profile/08177124003172036634noreply@blogger.com