Problem in identifying which widget click is launching the activity?

by Tom Gibara » Tue, 09 Jun 2009 01:03:04 GMT

Sponsored Links
 In addition to including the appWidgetId as an extra, put it as the
PendingIntent requestCode too (assuming you aren't already using that
property of the PendingIntent for some other purpose) that will enable the
system to distinguish them.

2009/6/8 Akash Gupta <>


Other Threads

1. updatePeriodMillis not working for widget on 1.6

I'm aware that the minimum updatePeriodMillis was increased to 30
minutes for Donut, but in my testing, I'm not seeing the
APPWIDGET_UPDATE intent come through at all, even after well over 30
minutes has passed. Has anyone else had an issue with this, or any
light to shed on the matter?

I should mention that all of my testing so far is on 1.6 emulator
images; I don't yet have Donut hardware to test on, as my update here
in the UK hasn't come through yet. So it's possible this is an
emulator issue, but again, any information on that front would be

For reference, my manifest code looks like this:

    <receiver android:name=".MyWidgetProvider"
              android:enabled="true" >
      <meta-data android:name="android.appwidget.provider"
                 android:resource="@xml/mywidget" />
android:name="android.appwidget.action.APPWIDGET_UPDATE" />

It's working fine on 1.5 (and has been for months), both on emulator
and handset.



2. disable soft keyboard from auto-completion


I have a TextView that I do not want to have auto-completion on when
the user opens the soft keyboard.  Is this possible?

3. removing the dictionary from the ime

4. Video recording results in corrupted files

5. Can Android boot into a single application on boot?

6. Missing timezone

7. How to change Orientation for two controls in one activity: