[android-developers] Instrumentation: can this mechanism be used for something else than testing ?

2011-10-31 Thread pperotti
Hi Everyone, I'm trying to use (without success) the instrumentation mechanism to intercept events for a subset of views (for instance, when the end user clicks on any button) but without luck. I'm starting to wonder if it is possible to use instrumentation to intercept events of methods from

[android-developers] Broadcast Receivers

2010-04-21 Thread pperotti
Hi Everyone, Can anyone give a hint if you know why there are some ACTIONS that do not trigger their associated receivers when they are registered in the manifest while they are received when they are register through registerReceiver() ? For instance, when I declare: receiver

[android-developers] Moto Milestone

2010-01-08 Thread pperotti
Hi Everyone, Does anybody know how to identify consistently when a device is a motorola milestone ? None of the parameters in the Build class seems to report consistently among the devices that are currently in the market. I have seen that some devices identifies as A853 and other as Milestone.

[android-developers] Mobile Network Setting

2009-12-28 Thread pperotti
Hi Everyone, I just want to ask you if you anyone knows how to change the Setting available in: Settings-Wireless Settings-Mobile Network from code or Setting: Settings-Wireless Settings-Mobile Network Settings-Network operators-Select Automatically? I had been unable to find a property that

[android-developers] QSB and Images in suggestion provider

2009-10-28 Thread pperotti
hi Everyone, I was playing with the QSB and content providers and I found a problem at the time of using suggestions providers. What I want to achieve is what the contact app have which is to show an image in a suggestion with the particular need that the image is not a resource, I have them

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread pperotti
Hi Romain, I am actually using in List3 adapter.notifyDatasetChanged(). This do not freeze the app but do not allow the user to scroll perfectly as in List1. For some reason (the amount of operations probably in the AsyncTask) the ListView is not entirely independent from the data set affecting

[android-developers] List View not properly updated from AsyncTask

2009-07-13 Thread pperotti
Hi Everyone, After digging with the APIs I still cannot figure out how the AsyncTask properly works and why some behavior occur. I'm trying to achieve one contact list that can be updated from a background async task very frequently. There are situations where invoking UI updates from the

[android-developers] Question about MotionEvents

2009-04-18 Thread pperotti
hi everyone, Can anyone give me a clue about how can I do to make a list scroll down or up programatically ? I'm trying to understand how to trigger the same motion event that happen when a list scrolls down or up as a consecuence o a touch. Thanks for the help. Pablo

[android-developers] Re: WebView bug with pageDown() ?

2009-04-03 Thread pperotti
produce a poor user experience. Should I open a bug on this ? Regards, Pablo On 2 abr, 21:06, Mark Murphy mmur...@commonsware.com wrote: pperotti wrote: Is there any way to be notified when a page has been completely loaded using web view? Attach a WebViewClient to your WebView, and override

[android-developers] Re: WebView bug with pageDown() ?

2009-04-02 Thread pperotti
, 2009 at 9:33 PM, pperotti pablo.pero...@gmail.com wrote: Hi Everyone, Does anybody know how can I sort out a problem with the WebView.pageDown( boolean ) method that simple does not remains in the bottom of the web view after invoking loadData() ? The behavior in the emulator moves

[android-developers] WebView bug with pageDown() ?

2009-04-01 Thread pperotti
Hi Everyone, Does anybody know how can I sort out a problem with the WebView.pageDown( boolean ) method that simple does not remains in the bottom of the web view after invoking loadData() ? The behavior in the emulator moves to the bottom and right after that moves back to the top. Thanks in

[android-developers] How do I make my application to be restarted after the phone is powered-on again?

2009-03-29 Thread pperotti
Hi Everyone, Can anyone give me a hint about what should I do to make my application to be restarted automatically after the phone has been powered-off and powered-on again ? I read that regular alarms do not survive phone reboots so, I'm assuming there should be a way to do it. Thanks in

[android-developers] Re: How do I make my application to be restarted after the phone is powered-on again?

2009-03-29 Thread pperotti
Thanks Mark, I have just read also the response in the last update of your latest book. On 29 mar, 20:01, Mark Murphy mmur...@commonsware.com wrote: pperotti wrote: Can anyone give me a hint about what should I do to make my application to be restarted automatically after the phone has been

[android-developers] Activity and Services

2009-02-20 Thread pperotti
Hi Everyone, I was digging on the group about similar question but I couldn't find the solution to my problem so this was the reason Im posting this question. Please if my problem is already answer just post me the link. I have library running on a service and I need to read some objects from

[android-developers] Re: how can I check if an Activity is visible or not?

2009-02-16 Thread pperotti
or stopped, and then just have the service keep track of whether the activity is active that way? On Sun, Feb 15, 2009 at 6:44 PM, pperotti pablo.pero...@gmail.com wrote: Well ... maybe to clarify what Im trying to get done. I want just to launch a notification to the user only if he

[android-developers] Re: Problem with sound on Notifications on Emulator

2009-02-15 Thread pperotti
Thanks for your reply ! I guess that the scenario is different. In my case, I want to reproduce a sound located in my /res/raw directory. The default sound works as expected. My problem is that I couldn't get to work an external sound, for instance, the sound /res/raw/beback.mp3. What would be

[android-developers] Re: how can I check if an Activity is visible or not?

2009-02-15 Thread pperotti
12, 5:34 pm, pperotti pablo.pero...@gmail.com wrote: Hi, does anybody knows if it is possible to check if an Activity is at a moment of the time visible ? My question is because I want to implement a service and only invoke a different activity (by launching an Intent) only

[android-developers] how can I check if an Activity is visible or not?

2009-02-12 Thread pperotti
Hi, does anybody knows if it is possible to check if an Activity is at a moment of the time visible ? My question is because I want to implement a service and only invoke a different activity (by launching an Intent) only if the previous activity was visible. In case for instance, the user is in

[android-developers] Problem with sound on Notifications on Emulator

2009-02-07 Thread pperotti
Hi Everyone, The reason Im posting this question is because I cannot make a notification to reproduce a sound or a vibration sequence. For the case of the vibration I have permissions properly set and logcat do not show log message indicating a problem. For the case of sound, I have an mp3