[android-developers] Re: Help designning the UI

2016-06-06 Thread Diego Torres Milano
Follow https://developer.android.com/design/material/index.html On Sunday, 5 June 2016 07:16:02 UTC-4, Ventura wrote: > > Hello, I am trying to design a cool UI for my app, because it's really > ugly at the moment. > > How can I know what size will have my icons and what mobile should I >

[android-developers] Re: Question: Is there a way to inquire the port forwarding done by Android Studio?

2016-03-24 Thread Diego Torres Milano
Take a look at http://developer.android.com/reference/android/os/Debug.html On Wednesday, 23 March 2016 22:45:34 UTC-4, Dato Da wrote: > > If Android Studio is running on my development machine, when I launch the > app on a device from the command line using this command: > > $ adb shell am

[android-developers] Re: MonkeyRunner.waitForConnection() can't get device with network

2016-02-17 Thread Diego Torres Milano
Try *AndroidViewClient/culebra* that could connect to devices connected over the network (i.e. TV) with no problems. If you want to just take screenshots `dump -f` (one of the tools included in the package) does just that. On Wednesday, 17

[android-developers] Re: How to take a screenshot from a background service?

2015-03-11 Thread Diego Torres Milano
) 2013-2014 Diego Torres Milano Created on 2015-03-11 by Culebra v10.1.0

[android-developers] Re: Monkey Talk

2015-02-10 Thread Diego Torres Milano
What you describe seems easy to achieve in AndroidViewClient/culebra https://github.com/dtmilano/AndroidViewClient , even just using the GUI. You may need to tweak the spreadsheet part, but it will be even easier if you can export it to CSV. Give it a try and ask for help here or at

[android-developers] Re: monkeyrunner broken pipe exception

2014-06-30 Thread Diego Torres Milano
Give AndroidViewClient/culebra https://github.com/dtmilano/AndroidViewClient a try. It handles the device connection better. On Sunday, 29 June 2014 23:48:43 UTC-4, wang nungchao wrote: Update: My monkeyrunner script: import sys from com.android.monkeyrunner import MonkeyRunner,

[android-developers] Re: Is there a way to use the emulator on the console?

2014-04-28 Thread Diego Torres Milano
Use *-no-window* (disable graphical window display) argument and you can use if from command line (i.e. adb shell). On Monday, 28 April 2014 04:17:46 UTC-4, Thorsten Jolitz wrote: Nikolay Elenkov nikolay...@gmail.com javascript: writes: On Sun, Apr 27, 2014 at 11:41 PM, Thorsten Jolitz

[android-developers] Re: NAF Nodes

2013-04-25 Thread Diego Torres Milano
You didn't mention how you want to access these nodes. If you are creating tests give AndroidViewClienthttps://github.com/dtmilano/AndroidViewClient and culebra https://github.com/dtmilano/AndroidViewClient/wiki/culebra a shot. They could generate *unique IDs* that may help you accessing them.

[android-developers] Re: how to read screen data on Android

2012-11-16 Thread Diego Torres Milano
Just use: *$ adb shell screencap -p /mnt/sdcard/sc.png* *$ adb pull /mnt/sdcard/sc.png* and you'll get the screenshot as PNG. On Friday, 16 November 2012 11:20:14 UTC-5, bob wrote: I'm pretty sure this doesn't work for the Google Nexus 7. Even with the Android screen practically all

[android-developers] Re: use monkeyrunner in windows7,the exception,[com.android.chimpchat.adb.AdbChimpDevice]java.net. SocketException: Software caused connection abort: recv failed

2012-11-07 Thread Diego Torres Milano
It looks like a bug... On Wednesday, 7 November 2012 02:29:42 UTC-5, lincoln wrote: Sorry! I'm not sure the problem is a bug,so i post it here. You mean i should to add a new bug? Thank you! On Wednesday, November 7, 2012 3:04:38 PM UTC+8, Diego Torres Milano wrote: See http

[android-developers] Re: use monkeyrunner in windows7,the exception,[com.android.chimpchat.adb.AdbChimpDevice]java.net. SocketException: Software caused connection abort: recv failed

2012-11-06 Thread Diego Torres Milano
See http://source.android.com/source/life-of-a-bug.html On Tuesday, 6 November 2012 10:54:11 UTC-5, lincoln wrote: The running environment:win7,USB hub,monkeyrunner The problem details:Use monkeyrunner to run python scripts to control my devices(the devices connected to computer through usb

[android-developers] Re: can adb server connect to adbd on the same device?

2012-10-29 Thread Diego Torres Milano
adb is already installed (at least in Jelly Bean). *root@android:/ # type adb* *adb is /system/bin/adb* On Saturday, 27 October 2012 05:03:52 UTC-4, mylz wrote: In normal usage, adb works on host, like PC, and adbd works on device. They communicate with each other by USB or TCP mode. Now

Re: [android-developers] Re: How to get a button id from an app(I don't have the source)

2012-10-17 Thread Diego Torres Milano
You mentioned you don't have the source, so we assume it's not your APK, then Instrumentation won't work because both packages must be signed by the same key otherwise you'll receive a SecurityException. I don't know what do you want the id for, but using AndroidViewClient

[android-developers] Re: Insert data using SQLite Database with Insert + Where Clause after already entered data in next colums!

2012-07-26 Thread Diego Torres Milano
Also INSERT INTO+TABLE would not have the required whitespace (unless TABLE starts with a space) On Thursday, 26 July 2012 07:30:08 UTC-4, RichardC wrote: http://www.sqlite.org/lang_insert.html On Tuesday, July 24, 2012 2:06:50 PM UTC+1, vikalp patel wrote: I would like to Insert data in

[android-developers] Re: adb devices is showing the device as offline.what is reason? How can i switch the device from online - offline viceversa?

2012-07-23 Thread Diego Torres Milano
You can leave a shell open (which perhaps prevents being disconnected) in a window and then run the monkey scripts on another window. On Wednesday, 18 July 2012 03:00:45 UTC-4, Sreedhar Reddy V wrote: Hi I connected My android ICS device to my windows PC using USB. I executed adb devices

[android-developers] Re: problem running Monkeyrunner script in ubuntu

2012-06-05 Thread Diego Torres Milano
You can do as Mark suggested or you can use a shebanghttp://en.wikipedia.org/wiki/Shebang_(Unix)line at the beginning of your script, use either #! /usr/bin/env monkeyrunner or #! /path/to/your/monkeyrunner depending on whether PATH contains android tools directory or not. Set the execution

[android-developers] Re: Testing with ActivityInstrumentationTestCase

2012-05-28 Thread Diego Torres Milano
Provide the intent to startActivity(). On Monday, 21 May 2012 16:23:25 UTC-4, Marco@worldcorp wrote: Hi all i am trying to write some tests for my Android Application I have couple of tests which extends ActivityInstrumentationTestCase2 and runs just fine. I wanted then to test one

Re: [android-developers] ICS don't give you a real multitasking.

2012-05-16 Thread Diego Torres Milano
But fortunately, because Linux and Android are Open Source Software, if you think they are wrong somewhere you can fix them. Feel free to provide a better multitasking. On Wednesday, 16 May 2012 13:38:56 UTC-4, Kristopher Micinski wrote: On Wed, May 16, 2012 at 8:39 AM, sblantipodi

[android-developers] Re: Need Help with Android Monkey

2012-04-05 Thread Diego Torres Milano
It seems that monkey tries to log the events to scriptlog.txt in the external storage directory and it's not optional. On Thursday, 5 April 2012 03:19:01 UTC-4, naieem.khan wrote: Hi, I need help with android monkey. I am using sdk version 4.0.3, API 15. I am getting the same

[android-developers] Re: Android instrumentation testing, how to start with clean database all the time

2012-03-22 Thread Diego Torres Milano
This may give you some ideas: http://dtmilano.blogspot.ca/2009/12/android-testing-contentprovider.html On Wednesday, 21 March 2012 04:26:56 UTC-4, Dirk Vranckaert wrote: I'm testing my application with Android Instrumentation tests. So I have a test-class extending

[android-developers] Re: Possible to detect Menu key press, outside an activity?

2012-03-16 Thread Diego Torres Milano
The home screen is an Activity... If you want to change how the MENU key is processed you can intercept it in PhoneWindowManager as it's done for HOME, but this is only possible if you write your own firmware. On Wednesday, 14 March 2012 17:55:11 UTC-4, Olaf wrote: So, I know that the Menu

[android-developers] Re: I can see created text file using adb shell but not in PC when mounted?

2012-03-16 Thread Diego Torres Milano
Because the sdcard is not mounted in /sdcard but in /mnt/sdcard, perhaps... On Wednesday, 14 March 2012 05:38:18 UTC-4, perumal316 wrote: Hi All, In my application, I will be creating a log file (text file) in the /sdcard of the device. Using adb shell, if I navigate to the /sdcard

[android-developers] Re: UML tool for Android?

2012-02-27 Thread Diego Torres Milano
No android specific by I have been using BOUML (http://www.bouml.fr/) and it works. However, if you want round trip integration, it might not be the tool. On Feb 27, 4:50 am, sniper sniper260...@gmail.com wrote: Balsamiq Mockups has nothing to do with UML.. On 27 Feb., 03:04, Li Qing

[android-developers] Re: Help! Monkeyrunner Press and Touch event

2012-02-18 Thread Diego Torres Milano
I couldn't reproduce the problem with either 2.3 and 4.0 emulators. Perhaps there's something in the part you removed from your code. And move the line HV = D.getHierarchyViewer() outside of the loop. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to test Activity, which is run in the separate process (android.process=:process in the manifest file)

2012-01-17 Thread Diego Torres Milano
Just remove the process attribute from your manifest while testing and re-enable it when exporting a production APK. Probably you have to remove others as well (i.e. debuggable), so why bother. On Jan 17, 2:03 am, Kristopher Micinski krismicin...@gmail.com wrote: Just out of interest, what do

[android-developers] Re: Android unit testing with ContentProviders and databases

2012-01-01 Thread Diego Torres Milano
The best solution is probably a RenamingDelegatingContext, that will allow your tests to use a different database than your 'live' one. There are examples of RenamingDelegatingContext and other mock injections in Android Application Testing Guide [http://

[android-developers] Re: Android monkey feature ? : adb shell monkey -p com.asus.davinci.medianote -v 500 --hprof

2011-12-12 Thread Diego Torres Milano
See my answer at http://stackoverflow.com/questions/8351329/android-monkey-not-generating-hprof-dump/8433740#8433740 AFAIU, --hprof should be removed from monkey. On Dec 5, 11:43 pm, MobileScorpio tsai.scor...@gmail.com wrote: Dear Android Developers, About Android Monkey

[android-developers] Re: Is useful testing actually possible?

2011-12-05 Thread Diego Torres Milano
CTS (http://source.android.com/compatibility/cts-intro.html) features thousands of tests (literally). I'm sure you will find the examples you are looking for. On Dec 4, 2:11 am, Doug beafd...@gmail.com wrote: I think this goes some way to explaining why there are many bad practices in the

[android-developers] Re: TFTP (Trivial File Transfer Protocol) support

2011-11-11 Thread Diego Torres Milano
cannot be obtained this way as far as I know. Regards, STeN On Nov 9, 6:10 pm, Diego Torres Milano dtmil...@gmail.com wrote: Why don't you just use HTTP ? On Nov 9, 1:41 am, petr.maza...@mautilus.com petr.maza...@mautilus.com wrote: According to my information the SDK does

[android-developers] Re: TFTP (Trivial File Transfer Protocol) support

2011-11-09 Thread Diego Torres Milano
Why don't you just use HTTP ? On Nov 9, 1:41 am, petr.maza...@mautilus.com petr.maza...@mautilus.com wrote: According to my information the SDK does not support directly the TFTP. Are the any other ways how to deal with the missing API? Was anybody tried to use org.apache.commons.net.tftp?

[android-developers] Re: How to send DHCPINFORM request

2011-11-09 Thread Diego Torres Milano
Not from the SDK On Nov 9, 12:28 am, petr.maza...@mautilus.com petr.maza...@mautilus.com wrote: Is it possible to send manually the DHCPINFORM request? I was searching the SDK and I did not found any class that allows creating and broadcasting the DHCPINFORM (see RFC 2131) request. Might be

[android-developers] Re: Using chimpchat

2011-11-09 Thread Diego Torres Milano
See http://stackoverflow.com/questions/8058822/can-i-write-java-code-that-uses-monkeyrunner/8075856#8075856 On Nov 8, 7:54 pm, Misha mshash...@gmail.com wrote: Did you ever figure out how to use this? I am trying to do the same. -- You received this message because you are subscribed to the

[android-developers] Re: Play content of phone on PC browser

2011-11-03 Thread Diego Torres Milano
Mount the device using USB connector and the access the files using file:// schema. On Nov 3, 12:45 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi Summers, I am trying to play the content of phone in PC's Web browser. I am able to list down the contents that are available on the phone,

[android-developers] Re: How to launch an instance of Android emulator with a specified URL?

2011-11-01 Thread Diego Torres Milano
From the command line you can use: $ adb shell am start -W -a android.intent.action.VIEW -d http://dtmilano.blogspot.com On Oct 30, 3:41 am, TreKing treking...@gmail.com wrote: On Wed, Oct 26, 2011 at 8:03 PM, JustAnotherDev thaodoan00s...@gmail.comwrote: Do you know how I can start the

[android-developers] Re: Android 4.0 Emulator crashing (emulator-arm.exe)

2011-10-20 Thread Diego Torres Milano
Disabling snapshots in your AVD definition usually helps. On Oct 20, 4:37 am, Nico Balestra nicobales...@gmail.com wrote: Same here.. still haven't managed to run the emulator :'( 2011/10/20 Emanuel Moecklin 1gravity...@gmail.com Hi there I updated to the lastest SDK (including SDK

[android-developers] Re: Plain Unit Testing

2011-08-25 Thread Diego Torres Milano
Take a look at the presentation posted at http://dtmilano.blogspot.com/2011/08/linuxcon-2011-north-america.html. Slide 113 will answer your question but I recommend you follow the complete example. On Aug 25, 4:49 am, Ryan Huang ryan.p.hu...@gmail.com wrote: Hi All, I want to do some plain

[android-developers] Re: Realidad Aumentada Android

2011-08-18 Thread Diego Torres Milano
http://developer.android.com/guide/developing/devices/emulator.html (see Emulator Limitations) On Aug 17, 6:45 am, Jose_GD jose.gonzale...@gmail.com wrote: Como te dice Nick, vas a tener muchas más posibilidades de respuesta si escribes en inglés. Con respecto al emulador, no tiene acceso a

[android-developers] Re: Applying different commands at different location

2011-08-11 Thread Diego Torres Milano
This is a bit more pythonic #! /usr/bin/env python from subprocess import Popen # path: cmd l = { 'd1':'./c1', 'd2':'./c2' } for d, c in l.items(): Popen(c, cwd=d) On Aug 11, 8:06 am, Ablaze androida...@gmail.com wrote: Hi guys, By little searching found out the following. The

[android-developers] Re: Test Case Error

2011-08-11 Thread Diego Torres Milano
Use: sendKeys(SHIFT_LEFT T E S T SHIFT_LEFT T R I P); instead of           sendKeys(TestTrip); On Aug 10, 5:39 pm, Ab Caballero a...@mac.com wrote: I have a fairly simple Test Project that tests the user interface of an activity. My problem is that it fails toward the end of

[android-developers] Re: Test Project Question

2011-08-10 Thread Diego Torres Milano
This answer may get you started: http://stackoverflow.com/questions/6961754/how-to-call-button-performclick-in-android-junit-test-case/6963033#6963033 On Aug 9, 6:09 pm, Ab Caballero a...@mac.com wrote: I want to test that when a button is pressed, that it always does the work it is supposed to

[android-developers] Re: Error: Failed to generate emma coverage.

2011-07-13 Thread Diego Torres Milano
You build is probably not instrumented and thus why coverage information is not generated. Chapter 10 of Android Application Testing Guide (http:// www.packtpub.com/android-application-testing-guide/book) includes a step-by-step guide of getting your build instrumented and generating code

[android-developers] Re: how to press on a particular menu item using touch in monkeyrunner script?

2011-07-11 Thread Diego Torres Milano
Use its screen coordinates. On Jul 11, 10:20 am, frank franklin.f2...@gmail.com wrote: how to press on a particular menu item using touch in monkeyrunner script? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Not able to find MonkeyImage.java in android 2.3 SDK

2011-07-05 Thread Diego Torres Milano
monkeyrunner source is in the SDK project: http://android.git.kernel.org/?p=platform/sdk.git;a=summary On Jul 1, 3:41 am, Gaytri gaytri.ba...@gmail.com wrote: Hi All, I am stuck in very basic problem of monkeyrunner. I have android 2.3 installed on my ubuntu machine. And I am working on

[android-developers] Re: Want to know about Jython for Monkey runner

2011-05-29 Thread Diego Torres Milano
You only need monkeyrunner to run monkeyrunner scripts. On May 25, 6:06 am, harry asir harryjoh...@gmail.com wrote: Hi, I am very new to monkey runner. Inorder to write code/scripts using monkey runner API, need Jython. I want to know whether Jython is opensource or licenced one. Also, need

[android-developers] Re: monkeyrunner - sending KEYCODE_ESCAPE

2011-05-26 Thread Diego Torres Milano
Heve you tried device.press(KEYCODE_ESCAPE, DOWN_AND_UP) ? On May 25, 8:55 am, isildur ashish.ab...@gmail.com wrote: hi I have written the following command to instruct MonkeyRunner to send an escape keyevent to the emulator

[android-developers] Re: Junit error - INSTRUMENTATION_FAILED

2011-05-16 Thread Diego Torres Milano
This post may help you find if the instrumentation is present in your emulator/device: http://dtmilano.blogspot.com/2011/04/running-instrumentation-from.html On May 16, 7:54 am, rashmi rashmi@gmail.com wrote: Hi, I am trying to execute junit test cases on froyo 2.2 source code, from

[android-developers] Re: Replay monkey execution

2011-05-08 Thread Diego Torres Milano
I haven't tried this but it seems possible. Step #1: Increase monkey verbosity (-v -v -v) Step #2: Run the script and collect the output Step #3: Parse the output to regenerate a monkey script (optionally you can modify monkey to spit a valid monkey script) Step #4: Run the script On May 7,

[android-developers] Re: Batch Creation in Monkeyrunner

2011-04-26 Thread Diego Torres Milano
explain by taking an example for batch creation script. Suppose I am having scripts1-10 . How to call each script after completion of previous one. Thanks Regards, Gayatri On Sat, Apr 23, 2011 at 1:27 AM, Diego Torres Milano dtmil...@gmail.comwrote: You can create any kind of script

[android-developers] Re: Batch Creation in Monkeyrunner

2011-04-26 Thread Diego Torres Milano
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 but a shell script invoking them: #! /bin/bash

[android-developers] Re: How to send combination keys in functional testing

2011-04-25 Thread Diego Torres Milano
You can use something like this: sendKeys(KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_9, KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_0); assertEquals((), mTV.getText().toString()); On Apr 25, 2:38 am, Rui kae...@gmail.com wrote: Hello, I am trying to

[android-developers] Re: Web based Emulator

2011-04-22 Thread Diego Torres Milano
Strictly speaking you can launch an emulator from a remote machine using some remote display protocol. For example, you can 'ssh -CX user@server emulator' and if X11 forwarding is supported and your network connection has low latency there's no noticeable difference from a local emulator. I use it

[android-developers] Re: Running Instrumentation Test on multiple emulator on desktop.

2011-04-22 Thread Diego Torres Milano
Use spawn=true in your ant script to run as background commands. On Apr 21, 4:46 am, Isha Dalwadi isha.j.dalw...@gmail.com wrote: Hi, I have two emulators running on my machine. now with adb am instrument command i can run the instrumentation test on single emulator at a time. So, two run

[android-developers] Re: Batch Creation in Monkeyrunner

2011-04-22 Thread Diego Torres Milano
You can create any kind of script you want in monkeyrunner as it is a python compiler. On Apr 21, 7:53 am, Gaytri gaytri.ba...@gmail.com wrote: Hello All, I want to create a batch(sequence of multiple scripts) in monkeyrunner. I have used this concept in other automation tools like QTP. Can

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

2011-04-17 Thread Diego Torres Milano
Flip command in monkey is expected to work only in emulator and Dream (see MonkeyFlipEvent.java). On Apr 15, 4:56 pm, Bill Napier nap...@android.com wrote: Then again, I just tried it with the Nexus S and it doesn't work.  It may work on devices with keyboards like Droid.  Here's how I tested

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-17 Thread Diego Torres Milano
(result, 0.5)         print stableImage, ' -- image stabilizing...'     MonkeyRunner.sleep(shortSleepInterval)     result2.writeToFile(filename,'png') On Apr 4, 7:45 am, Diego Torres Milano dtmil...@gmail.com wrote: In some cases, after trial and error, I had to add up to 3 secs

[android-developers] Re: Compare MonkeyImage

2011-04-11 Thread Diego Torres Milano
You may find this post containing an example useful too: http://dtmilano.blogspot.com/2011/04/monkeyrunner-visual-image-comparison.html. The example is using MonkeyImage.loadFromfile() which I added for the reason you mentioned before. On Apr 8, 9:51 pm, Peddi Kanumuri peddi.kanum...@gmail.com

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-04 Thread Diego Torres Milano
() MonkeyRunner.sleep(1.0) This made me perfect screenshot. On Apr 2, 10:43 pm, Diego Torres Milano dtmil...@gmail.com wrote: Add more delay to see it this solves the problem. On Apr 2, 1:56 pm, SJ boris.iva...@gmail.com wrote: I have also seen not 100% perfect screenshot. There is only

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-02 Thread Diego Torres Milano
Add more delay to see it this solves the problem. On Apr 2, 1:56 pm, SJ boris.iva...@gmail.com wrote: I have also seen not 100% perfect screenshot. There is only one function in Monkeyrunner to take Snapshots: com.android.monkeyrunner.MonkeyDevice.takeSnapshot Gets the device's screen

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

2011-03-22 Thread Diego Torres Milano
If you have root you can run monkey from a shell, for example if you monkey script is in /data/m.txt # cat /data/m.txt tap 100 180 type 123 tap 100 280 # monkey --port 1080 # nc localhost 1080 /data/m.txt may I ask why do you need this ? On Mar 17, 5:43 am, raki rakeshkart...@gmail.com

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

2011-03-18 Thread Diego Torres Milano
You are talking about opening the shell and run monkey. The OP asks about monkeyrunner. On Mar 17, 1:58 pm, lbendlin l...@bendlin.us wrote: connect device to computer. Open terminal window. adb shell monkey etc etc On Mar 17, 5:43 am, raki rakeshkart...@gmail.com wrote: Hi Bill,

[android-developers] Re: Using Eclipse write monkeyrunner

2011-03-13 Thread Diego Torres Milano
Some hints to use monkeyrunner from eclipse can be found at http://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-eclipse.html On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I need using monkeyrunner do some easy auto test but have some problem. Eclipse SDK 3.6.2

[android-developers] Re: Insrumentation testing in Android

2011-02-10 Thread Diego Torres Milano
If $ adb shell pm list instrumentation output is empty, then you don't have any test installed. Install them first. On Feb 9, 8:44 am, Oleg Popenov popenov.o...@gmail.com wrote: Hi, I've tried to run Instrumentation Tests on device from adb shell and I get a strange error, could you please

[android-developers] Re: MonkeyImage.writeToFile error

2011-01-31 Thread Diego Torres Milano
The problem, which is also in Google documentation, is the missing pair of parenthesis 18 result = device.takeSnapshot() ^^ otherwise, you are getting a reference to the method. On Jan 30, 6:58 am, dan raaka danra...@gmail.com wrote: I am

[android-developers] Re: [ADB -install] How to install and application inside an emulator, if only the avd-name is known?

2011-01-14 Thread Diego Torres Milano
This may help you: http://stackoverflow.com/questions/2214377/how-to-get-serial-number-or-id-of-android-emulator-after-it-runs On Jan 14, 8:58 am, Kostya Vasilyev kmans...@gmail.com wrote: The emulator-xxx you're seeing in adb devices output is what you use with the adb -s switch. This works:

[android-developers] Re: InstrumentationTestRunner with Annotation

2011-01-14 Thread Diego Torres Milano
If you want to provide a different behavior for the test runner just create your own extending it: public class MyTestRunner extends android.test.InstrumentationTestRunner { // do wathever you want } To do whatever you want, use android.test.InstrumentationTestRunner source as a an

[android-developers] Re: Test case throws permission exception

2011-01-14 Thread Diego Torres Milano
You have to set the permission on the application's manifest not on the tests' manifest. That's what you usually do by having a main and a tests project. Furthermore, your test should look more like: public class AndroidDummyContactsTests extends InstrumentationTestCase { private static

[android-developers] Re: change color of DatePickerDialog widget

2011-01-10 Thread Diego Torres Milano
I haven't tried DatePickerDialog but I think this could help: http://dtmilano.blogspot.com/2010/01/android-ui-colored-dialogs.html On Jan 10, 6:14 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I tried to do this as well. The closest i came was to be able to 'skin' the AM/PM button of

[android-developers] Re: help me understand: upper case characters in layout file names are disallowed

2010-11-23 Thread Diego Torres Milano
This limitation surely comes from supporting some filesystems on some operating systems which are case insensitive. BTW, you can name your View defineNewList but you cannot name your layout, which is a filename, Main. Leon Moreyn-Android Development wrote: It a language structure concept. You

Re: [android-developers] Help getting screen number

2010-11-23 Thread Diego Torres Milano
But if the user is seeing any desktop is not in your application. What's your intention ? Kumar Bibek wrote: There is no such API. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Nov 21, 2010 at 7:38 PM, Pedro Duque pmdu...@gmail.com wrote: Hi, I need to

[android-developers] Re: using instrumentation testing framework if there is more than one activity

2010-10-19 Thread Diego Torres Milano
You should use Instrumentation.ActivityMonitor, that can be used to look for the creation of an activity, which together with Instrumentation.addMonitor() let you test that flow. On Oct 18, 1:24 pm, A. Elk lancaster.dambust...@gmail.com wrote: The instrumentation testing framework is designed to

[android-developers] Re: Problem debugging Android Bootup Service

2010-10-06 Thread Diego Torres Milano
Try something like @Override public void onReceive(Context context, Intent intent) { Debug..waitForDebugger(); ... and attach the dubugger once the Intent is received. On Oct 1, 5:10 pm, Raj rnmalho...@gmail.com wrote: Android Experts,     I have a

[android-developers] Re: Headless emulator

2010-10-04 Thread Diego Torres Milano
This post may contain useful information: http://stackoverflow.com/questions/2461988/automated-testing-in-android-development On Oct 4, 12:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 4, 2010 at 12:35 PM, kypriakos demet...@ece.neu.edu wrote: I didn't find much on this

[android-developers] Re: How to configure SDK emulator to start with english instead of japanese?

2010-08-25 Thread Diego Torres Milano
This would help: http://stackoverflow.com/questions/2417427/changing-the-android-emulator-locale-automatically On Aug 25, 11:37 am, Kostya Vasilyev kmans...@gmail.com wrote:   25.08.2010 19:28, { Devdroid } пишет: Hello all  I'm new to Android development and have just startet playing with

[android-developers] Re: ActivityInstrumentationTestCase2 issue

2010-03-11 Thread Diego Torres Milano
You have only one test in your class (testPlayMyMusic()), why are you expecting results from two ? OK (1 test) means your test succeeded. On Mar 11, 10:28 am, perrot linca30...@gmail.com wrote: Hi, I am writing a Instrumnetation using the AvtivityInstrumnetationTestCase class and a test case

[android-developers] Re: edittext text with html formatting

2010-02-16 Thread Diego Torres Milano
This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly

[android-developers] Re: Where to correctly place xml containing data?

2010-02-01 Thread Diego Torres Milano
Place it undet /assets On Jan 30, 10:22 pm, kaasinees cj.wijtm...@gmail.com wrote: Greetings humane, I come in peace. I have the following XML file which serves as database for my application. ?xml version=1.0 encoding=UTF-8? units         category id=0 text=Length base=metre            

[android-developers] Re: unit testing

2010-01-25 Thread Diego Torres Milano
Hi Christine, This presentation is very brief but could help: http://www.slideshare.net/dtmilano/testing-on-android On Jan 26, 12:44 am, Christine christine.kar...@gmail.com wrote: Thanks for the replies. Actually, I'm not stuck with testing, I use android unit testing and I'm quite satisfied

[android-developers] Re: creating activity-less packages

2010-01-21 Thread Diego Torres Milano
Both must be signed with the same signature. On Jan 21, 5:40 pm, guiha...@gmail.com guiha...@gmail.com wrote: Well... Very strange that Android doesn't support the creation of application libraries... I putted this in the xml:       android:sharedUserId=totalcross But when i run, i get

[android-developers] Re: Doc of java.util.Formatter. %$ available or not?

2010-01-21 Thread Diego Torres Milano
Use: String.format(It is %d and %d again!, 10) On Jan 21, 3:37 am, Farproc farp...@gmail.com wrote: http://d.android.com/reference/java/util/Formatter.html In the doc above there is The two characters $ immediately following the % sign indicate that the previous value should be used again

[android-developers] Re: integration testing with content provider

2009-12-22 Thread Diego Torres Milano
An alternative solution to the problem can be found at http://dtmilano.blogspot.com/2009/12/android-testing-contentprovider.html. Basically it creates a new class ActivityAndContentProviderInstrumentationTestCase2T,P which automates part of the process of writing integration tests of Activities

[android-developers] Re: Select image resource dynamically

2009-12-19 Thread Diego Torres Milano
You can also use something like: int rid = getResources().getIdentifier(fr, drawable, getPackageName ()); not the most efficient way but definitely something you can use. On Dec 19, 6:16 pm, croco zeug...@gmail.com wrote: Hello Sergiu, I keep your hint in mind, for now i've  generated the

[android-developers] Re: Problem running Android jUnit tests on Android project with multiple included auxiliary projects

2009-11-18 Thread Diego Torres Milano
You should create jars for your libraries and include them in project's Properties - Java Build Path - Libraries. Hope this helps. -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients On Nov 18, 6:30 am, emitya dkolega...@gmail.com wrote: Hi,

[android-developers] Re: installing Android 1.6+ on headless Linux server

2009-11-15 Thread Diego Torres Milano
It seems to be a bug in android command (sdkmanager) and sometimes it's ignoring command line arguments: + exec java -Xmx256M -Djava.ext.dirs=/opt/android-sdk/tools/lib/x86:/ opt/android-sdk/tools/lib -Dcom.android.sdkmanager.toolsdir=/opt/ android-sdk/tools -jar

[android-developers] Re: how to know if it the emulator or device

2009-11-04 Thread Diego Torres Milano
As Dianne mentioned assuming that because there's no wifi you are running on the emulator is a bit risky. There could be real phones with no wifi and emulator emulating wifi. Stick to any of the other methods. On Nov 4, 6:19 am, Zhihong GUO gzhh...@gmail.com wrote: It can not work. There is no

[android-developers] Re: Why do screenshot utilities require rooting?

2009-10-18 Thread Diego Torres Milano
Because /dev/graphics/fb0 is only readable by root and graphics group for security reasons, you may read other apps screens otherwise. On Oct 18, 12:01 pm, Paolo Amoroso paolo.amor...@gmail.com wrote: Why do Android screenshot utilities only work on rooted devices? Linux distributions and

[android-developers] Re: Sometimes the running emulator is not found from within Eclipse?!

2009-10-12 Thread Diego Torres Milano
+1 (Linux) On Oct 12, 2:55 am, idoun idou...@gmail.com wrote: I have also same problem after upgrading the plugin to 0.9.3 On Oct 10, 10:31 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi,   when launching my app from within Eclipse, sometimes the running emulator is found and

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-07 Thread Diego Torres Milano
This is fine. Thanks for the info. However, I've been writing some tests using ActivityInstrumentationTestCase2 and an Activity that depending on an extra parameter displays the Toast or not, and the results seems to be different. If the Toast is displayed the instance count constantly increases

[android-developers] Re: value @ /sys/class/lightsensor/switch_cmd/lightsensor_file_cmd is getting lost

2009-06-26 Thread Diego Torres Milano
/sys is a virtual filesystem, it doesn't persist reboots. On Jun 26, 12:18 pm, Shang Hao sahilz...@gmail.com wrote: Hi, I am storing a byte stream @ /sys/class/lightsensor/switch_cmd/lightsensor_file_cmd but on reboot, the value over here is getting lost. How do i recover Xie

[android-developers] Re: Not getting more than one GPS fix on Android 1.5 emulator

2009-05-22 Thread Diego Torres Milano
I've seen this problem before however no clues about the cause. As a workaround, you may load a KML file in DDMS and play it. If you need to convert a KMZ to KML suitable for DDMS check http://dtmilano.blogspot.com/2008/12/in-this-previous-post-we-reviewed.html. I haven't had luck loading GPX

[android-developers] Re: Accessing sdcard filesystem through dev machine filesystem - possible?

2009-05-10 Thread Diego Torres Milano
On May 10, 8:20 am, Raphael r...@android.com wrote: The original post is about an sdcard image, so I guess this is emulator related. An emulator sdcard is a FAT32 filesystem so you should be able to mount it using mount under linux if you have a fat32 support module. Under Windows or Mac

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-04-21 Thread Diego Torres Milano
I think that the problem is related with the menu New-Other...- Android-Android XML File which gives the unable to load class... message but not with the new Android XML wizard button in the toolbar which works, at least in my case. On Apr 20, 9:48 am, iceberg perfectotrave...@gmail.com wrote:

[android-developers] Re: How to make a video of the emulator ?

2009-04-20 Thread Diego Torres Milano
I've recorded several videos for my blog (http:// dtmilano.blogspot.com) using xvidcap, which probably is in your distribution's repositories too (I'm using ubuntu). xvidcap supports all of these output formats: X11 Window Dump (.xwd) Portable Graymap File

[android-developers] Re: Access the environment variable in java layer

2009-03-27 Thread Diego Torres Milano
On Mar 27, 4:07 pm, Michael MacDonald googlec...@antlersoft.com wrote: Environmentvariables will only be visible in processes descending from the process that sets them.  Since the app processes in android aren't spawned from your daemon, you won't be able to see theenvironment variables

[android-developers] Re: can not call a java method from javascript using addJavascriptInterface()

2009-03-17 Thread Diego Torres Milano
You should call window.test.incr(100) instead. -- Have you read my blog ? http://dtmilano.blogspot.com On Mar 17, 4:28 am, sherwin huang sherwin@gmail.com wrote: hi I'm trying to call a java method from javascript using addJavascriptInterface(); but seems does not work, it always  

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-03-16 Thread Diego Torres Milano
repo should check for git. Try applying this patch. diff -up ./repo.ORI ./repo --- ./repo.ORI 2009-03-16 13:09:46.0 +0100 +++ ./repo 2009-03-16 13:15:50.0 +0100 @@ -202,7 +202,11 @@ def _Init(args): def _CheckGitVersion(): cmd = [GIT, '--version'] - proc =

[android-developers] Re: Does android support Google Gear?

2009-03-12 Thread Diego Torres Milano
On Mar 10, 9:34 pm, Mark Murphy mmur...@commonsware.com wrote: ying lcs wrote: By dumping the content, I mean displaying what are the database column, database row content. Is that possible on the emulator?   by opening a shell to it and run some commands? It's possible. For example,

[android-developers] Re: Need help in running the android junit test case for andriod APIDemo in eclipse

2009-01-29 Thread Diego Torres Milano
This may help you http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html On Jan 29, 1:55 am, ying...@gmail.com ying...@gmail.com wrote: Hi, I am trying to run Junit test case for the android APIDemo project under eclipse. I create an eclipse project from the APIDemo

[android-developers] Re: How to build test apk

2008-12-02 Thread Diego Torres Milano
This may help you http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Mobile Dev Camp

2008-11-24 Thread Diego Torres Milano
I was kindly invited by Bubble Foundry's Peter Robinett to give a workshop on Android at Mobile Dev Camp this 29th November 2008 in Amsterdam. We will be introducing the Android platform and how to start developing applications keeping an eye on Test Driven Development. More information and

[android-developers] Re: Referencing an entry from colors.xml?

2008-11-19 Thread Diego Torres Milano
On Nov 19, 2:14 am, Dianne Hackbod [EMAIL PROTECTED] wrote: Don't do the '+'.  Just reference it with '@colors/clr_edit_hilite'. AFAIK is color (singular) not colors (plural) what you have to use On Tue, Nov 18, 2008 at 3:30 PM, Diego Torres Milano [EMAIL PROTECTED]wrote: On Nov 18

  1   2   >