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.
Tom.

2009/6/8 Akash Gupta <ricky.dreamwea...@gmail.com>





--~--~---------~--~----~------------~-------~--~----~



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
helpful.

For reference, my manifest code looks like this:

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

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

Thanks,

String
--~--~---------~--~----~------------~-------~--~----~

2. disable soft keyboard from auto-completion

Hi

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: