by ben » Sat, 31 Oct 2009 02:33:14 GMT

Sponsored Links
 It seems like the convenience functions (onUpdate, onEnabled, etc.)
aren't being called in the emulator on Android 2.0. Is this a bug, or
are these functions just being eliminated? It would have been nice to
see this documented somewhere.



by adamphillips12 » Sat, 31 Oct 2009 10:40:50 GMT

 There are bugs with widgets and there are incorrectly or undocumented

Part of your problem is probably this:

Sponsored Links


by ben » Sun, 01 Nov 2009 04:17:13 GMT

 Yea our provider is fully public. Our widgets worked perfectly fine,
well we worked around the current widget bugs, until 2.0. The 1.6
release we have no problems on actual phones or the emulator with the
2.0  emulator is where we see the problems, hopefully it's just a bug
in the emulator. But it would be nice to know either way.

> this:


by adamphillips12 » Sun, 01 Nov 2009 12:15:49 GMT

 Ah right, yes I believe there is an emulator only bug in 2.0 with
widgets. I've experienced your problem before, launching a new
emulator usually fixes it. Haven't really been able to track down the
cause of it but I don't think it will be a problem with devices. I'm
not sure if it has any effect but lately I've been running a lot of
different emulators at once, which could cause problems, sometimes I
have emulators launch with crippled performance and small things like

> > this:

Other Threads

1. How to use reflection for the new Froyo requestAudioFocus and abandonAudioFocus methods

I have implemented support in my application for the new audio
features provided in the Froyo methods:



These are all working fine when running on an Android 2.2 (Froyo)

I have successfully used reflection for the methods:


so that the same application can run on any Android version from 1.5
to 2.2 when using these methods.

However, I am having trouble trying to use reflection for the methods:


because these methods require an OnAudioFocusChangeListener parameter
which is unknown on Android devices running 1.5 to 2.1.  Because the
parameter type that must be passed into these methods is unknown and
also because my application has to have an instance of the
OnAudioFocusChangeListener object I am having trouble making
reflection work.

I can't figure out how to use the AudioManager.class.getMethod call
when it needs a parameter of type OnAudioFocusChangeListener.  I also
can't figure out how to define my instance of
OnAudioFocusChangeListener so that the application can be loaded on a
device running Android 1.5 through 2.1 without getting a Force Close
message while it is loading.

I have searched a lot of forums and haven't found any examples of how
to get reflection to work with these new Froyo audio APIs.

Can someone who better understands the use of reflection for
supporting new APIs without breaking the application's ability to
continue to run on older Android versions help me with some examples
for how to do this?


2. USB Mouse acceleration


How to accelerate a USB mouse on Android? Right now, it's quite slow.
I would like to undersand what would be the equivalent of "xset m 5

Thanks in advance for any clue,



3. Opera mini 5.1 vs browser std android 2.1 di Hero

4. Samsung Captivate sdcard issues.

5. How to quit the app?

6. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

7. Identify Application from Input Method?