Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:55:01+00:00 2026-06-03T17:55:01+00:00

in my Broadcastreceiver, which is a widget at the same time. At the time

  • 0

in my Broadcastreceiver, which is a widget at the same time. At the time I add the widget for the first time after installation, it is not clickable. The 2nd widget I add is clickable. While the first widget is still not clickable.

This errors happened while testing different versions in the emulator. I have no other device at hand, which I can reset all the time. For testing I always start with “Wipe user data” to be sure it is a fresh installation.

It does work for 1.6, but not for 2.x

My preference screen is a manual independent activity, which has to be started separably.

If you need more information, please tell me.

Here my code for making it clickable:

    @Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
    super.onUpdate(context, appWidgetManager, appWidgetIds);
    Log.d(LOG_TAG, "Update");
    for (int id : appWidgetIds) {
        Intent intent = new Intent(ACTION);
        PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0);
        //make widget clickable
        RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);
        remoteViews.setOnClickPendingIntent(R.id.imageview, pendingIntent);
        appWidgetManager.updateAppWidget(id, remoteViews);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:55:10+00:00Added an answer on June 3, 2026 at 5:55 pm

    I found the error.

    It is a bug in the android emulator alias AVD . Damn thing. Hope this helps others not wasting so much time in an non existing error.

    http://code.google.com/p/android/issues/detail?id=8889

    bug id 8889 “appWidgetManager.updateAppWidget not updating widgets on fresh AVDs under 2.0, 2.1”

    A workaround is after starting with Wipe user data(I disabled save to snapshot for this – tested not with enabled). Than exit. Than start again without wipe.
    Other wrote you can use ctrl+F11 two times to change to landscape mode and back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Alarm Manager which send Intent to BroadcastReceiver. This Broadcast is not
i have this broadcastreceiver that executes some code from time to time and triggers
This is my Receiver.java import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class
At boot, I have a BroadcastReceiver which launches a Service . In this Service
I have a BroadcastReceiver that listens for incoming sms messages. While a new sms
I want to activate a service from my broadcastReceiver, this is my code but
I've got an activity which uses an AlarmManager to call a BroadcastReceiver at a
I'm not having much luck with updating an app widget with AlarmManager generated broadcasts.
Is it possible that BroadcastReceiver in an activity which have gone to background receiving
I have an app which is autostarting via BroadcastReceiver and is set as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.