[android-developers] Getting the file name of the SD Card.

2009-08-21 Thread Mathieu Plourde
Is there any way to get the file name of the SD Card used by the emulator (like SDCard1.iso). --~--~-~--~~~---~--~~ 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] SD Card file name.

2009-08-21 Thread Mathieu Plourde
Is there way, from the emulator, to get the SD Card file name / path? --~--~-~--~~~---~--~~ 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@googlegroups.com

[android-developers] Using setCurrentTab on a TabHost in landscape mode doesn't work. (in emulator)

2009-08-13 Thread Mathieu Plourde
Hello devs, Since I only have access to the emulators, I don't know if the problem can be reproduced on real phones. I'm using setCurrentTab on a TabHost to dynamically select a tab. When I am in portrait mode, it works, but as soon as I change to landscape (ctrl + f12), it doesn't work anymore.

[android-developers] KeyEvent for backspace.

2009-07-30 Thread Mathieu Plourde
Hello devs, This seem pretty trivial, but I can't find the key event constant for the backspace button. Which one is it? I tried KEYCODE_BACK, KEYCODE_CLEAR, etc. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Instrumentation on the virtual keyboard.

2009-07-27 Thread Mathieu Plourde
Hello devs, I'm using Intrumentation to invoke keystrokes and mouse events, but I have a problem when trying to do so on the virtual keyboard. If the virtual keyboard pops up and I want to send a mouse event to click on a character of the keyboard, I get that error/warning in the console:

[android-developers] Re: Differentiate emulator instances and real device instances.

2009-07-23 Thread Mathieu Plourde
, Mathieu Plourde mat.plou...@gmail.com wrote: Hello devs, I need to correctly be able todifferentiatebetween emulator instances. I know it's easily done with real devices. With real devices, you can use getDeviceId or getLine1Number from TelephonyManager. With emulators, all the instances

[android-developers] Differentiate emulator instances and real device instances.

2009-07-22 Thread Mathieu Plourde
Hello devs, I need to correctly be able to differentiate between emulator instances. I know it's easily done with real devices. With real devices, you can use getDeviceId or getLine1Number from TelephonyManager. With emulators, all the instances have the same device id, same subscriber id, and

[android-developers] ActivityMonitor on Android activities.

2009-07-13 Thread Mathieu Plourde
I've implemented instrumentation in order to generate clicks and key presses, and so far it's working pretty good. The only problem is, I'm using the com.android.contacts.EditContactActivity and com.android.contacts.ViewContactActivity. I'm using ActivityMonitor to see when an activity is

[android-developers] Getting all views of an activity.

2009-07-13 Thread Mathieu Plourde
I have the instance to my activity, and I want to get all the views that are in this activity. I need to add a listener to each view, for any activity. That means I can't user findViewById. Is there any way to do this? I was hoping for a activity.getViews() or something, but it doesn't exist.

[android-developers] Re: Getting all views of an activity.

2009-07-13 Thread Mathieu Plourde
() and getChildAt(int) and iterate through all of the   contained views. Am 13.07.2009 um 18:21 schrieb Mathieu Plourde: I have the instance to my activity, and I want to get all the views that are in this activity. I need to add a listener to each view, for any activity. That means I can't user

[android-developers] Re: Setting a scrollbar position.

2009-07-13 Thread Mathieu Plourde
Now let's say I have a Layout with a scrollbar. Is there any way to set it's location programmatically? On Jul 6, 5:20 pm, Romain Guy romain...@google.com wrote: Is it possible to change a scrollbar's location programatically? I have a ListView and I want to set the position of the scrollbar

[android-developers] Re: Setting a scrollbar position.

2009-07-07 Thread Mathieu Plourde
Is there any way I could use TouchUtils without an InstrumentationTestCase or an ActivityInstrumentationTestCase. I'm doing something in a existing project and using those classes is not possible. I tried calling TouchUtils.clickView(null, view), and I'm getting an exception: Could not find

[android-developers] Setting a scrollbar position.

2009-07-06 Thread Mathieu Plourde
Hello devs, Is it possible to change a scrollbar's location programatically? I have a ListView and I want to set the position of the scrollbar in my code. Also, I'm using the Instrumentation framework for feature testing. I was wondering if it's possible to generate a drag movement with

[android-developers] Re: Setting a scrollbar position.

2009-07-06 Thread Mathieu Plourde
you explain how these 2 parameters work? And what should I set for those 2 parameters on my 3 motion events in order to have a human speed? Thanks. On Jul 6, 4:30 pm, Mathieu Plourde mat.plou...@gmail.com wrote: Hello devs, Is it possible to change a scrollbar's location programatically? I have

[android-developers] Getting a reference to the option menu.

2009-07-03 Thread Mathieu Plourde
Is there a way to get the reference to the option menu, from outside of onCreateOptionsMenu? I tried findViewById (for Menu and MenuItem), but it doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Getting a reference to the option menu.

2009-07-03 Thread Mathieu Plourde
...@googlemail.com wrote: In onPrepareOptionsMenu(), you can use menu.findItem(..). Peliwww.openintents.org On 3 Jul., 20:21, Mathieu Plourde mat.plou...@gmail.com wrote: Is there a way to get the reference to the option menu, from outside of onCreateOptionsMenu? I tried findViewById (for Menu

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-03 Thread Mathieu Plourde
a widget to another. Sadly, I can't find anything that does the same thing programmatically.) On Jul 2, 5:22 pm, Mark Murphy mmur...@commonsware.com wrote: Mathieu Plourde wrote: 1. How do you programmatically generate key strokes? I found some tutorials where it says to use IWindowManager

[android-developers] Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-02 Thread Mathieu Plourde
Hello devs, I have two questions: 1. How do you programmatically generate key strokes? I found some tutorials where it says to use IWindowManager, but that doesn't exist anymore in 1.5. (And WindowManager doesn't provide any function to generate key strokes) 2. How do you programmatically

[android-developers] Error installing ADT 0.9

2009-04-17 Thread Mathieu Plourde
I'm using Win XP and I'm trying to install ADT 0.9 for Eclipse (In order to try SDK 1.5). I downloaded the ADT-0.9_pre.zip file and everything. I follow the steps provided there: http://developer.android.com/sdk/preview/ When I add the site, I choose Archive and browse to the file. When I press