[android-developers] Detect shaking

2009-03-01 Thread J . Pablo Fernández
Hello, Is there an easy way to detect shaking of the phone? Or do I have to implement it myself by monitoring the sensors? If so, any hints on how shaking looks like from the sensor point of view? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com

[android-developers] Testing the menu

2009-02-28 Thread J . Pablo Fernández
Hello, I'm trying to write an instrumentation test for checking the correct visibility of menu items according to the state of the application. Do you know how can I programatically get ahold of the visible menu items, the menu or something? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http

[android-developers] Re: X and y coordinates for clicks and long clicks

2009-02-22 Thread J . Pablo Fernández
(); yInit= event.getRawY(); } } return false; } Hope this helps Lewis On Feb 22, 12:15 pm, J. Pablo Fernández pup...@pupeno.com wrote: It seems it's also not possible to know where exactly was the long clicked performed in a view to trigger a context

[android-developers] X and y coordinates for clicks and long clicks

2009-02-21 Thread J . Pablo Fernández
Hello, When you receive clicks and long clicks, how do you get the x and y coordinates that were clicked? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] How do you pass a Bundle to an activity on an instrumentation test case?

2009-01-29 Thread J . Pablo Fernández
Hello, When implementing an ActivityInstrumentationTestCase, how do you start the activity with a Bundle of saved state? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: How do you save the state of an activity on an ActivityUnitTestCase

2009-01-28 Thread J . Pablo Fernández
this particular case (so you can make this call via Instrumentation) in an update but in the meantime, you will probably find it easier to use ActivityInstrumentationTestCase - have you tried that? --Andy On Thu, Jan 22, 2009 at 12:28 AM, J. Pablo Fernández pup...@pupeno.com wrote: Hello

[android-developers] Should onSaveInstanceState call super?

2009-01-28 Thread J . Pablo Fernández
a view hierarchy can touch its views. (stack trace at the bottom). So I'm wondering, what am I doing wrong here? the test or the app? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) PS: The stack trace: Error in testLoadingAndSavingState: android.view.ViewRoot

[android-developers] How do you save the state of an activity on an ActivityUnitTestCase

2009-01-22 Thread J . Pablo Fernández
it are appreciated. I want to test that my application is saving its state correctly. Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Testing using ProviderTestCase and other classes in android.test

2009-01-21 Thread J . Pablo Fernández
Hello, According to http://code.google.com/android/kb/troubleshooting.html#addjunit you have to remove the Android library from your tests to run them, but if you remove the Android library then you can't access classes such as android.test.ProviderTestCase; so how do you write or run a

[android-developers] _count column

2009-01-21 Thread J . Pablo Fernández
Hello, What should I do to get my content provider to return the _count column with the count of records? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Long click in ListActivity

2009-01-12 Thread J . Pablo Fernández
Hello, Any ideas how to implement long click on the items of a ListActivity that is build using a ListAdapter and no layout, just the built in. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android