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

  • Home
  • SEARCH
  • 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 6978151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:43:06+00:00 2026-05-27T17:43:06+00:00

I have a simple android application which does search. I have a custom popup

  • 0

I have a simple android application which does search. I have a custom popup window to select filters.

I am now developing a homescreen app widget to that. The app widget is similar to that of Google Search Widget for android.

There is a filter which pops up, a search box (fake) and a search button(instead of google’s voice button).

Everything is working great except for the popup.

When the filter button is clicked on a widget, i trigger a intent with an extra that indicates home button is clicked.

When the activity opens, i check for the extra and performClick() on the button that is supposed to open the popup. But that’s not working. Any idea?

My code is something like this –

In the widget I have –

Intent intent = new Intent(context, ActivityToOpen.class);

Bundle bundle = new Bundle();
bundle.putBoolean(CALL_FROM_WIDGET, true);
bundle.putBoolean(HOME_BUTTON_CLICKED, true);
intent.putExtras(loginBundle);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);

In the Activity I have –

Bundle b = getIntent().getExtras();
if(b != null && b.getBoolean(CMWidget.HOME_BUTTON_CLICKED)) {
home_button.performClick();
}

I have a onClickListener set something like this –

home_button = findViewById(R.id.home_button);
home_button.setOnClickListener(new OnClickListener() {

i have implemented onClick() here which pops up the custom popup menu. Popup menu has Quick Action Items.  

});
  • 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-05-27T17:43:07+00:00Added an answer on May 27, 2026 at 5:43 pm

    I was looking for this one which no one replied.

    Bundle b = getIntent().getExtras();
    if(b != null && b.getBoolean(CMWidget.HOME_BUTTON_CLICKED)) {
    findViewById(R.id.anchor_button).post(new Runnable() {
                @Override
                public void run() {
                    showPopup();
                }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a simple Android application that uses a sqlite database which is
I am developing a library for Android applications which does not use native code
I'm having a go at developing my first android application and have never really
i have an android application which has a listview for listing 14 items inside
I am developing simple travel agent android application. When application starts it loads list
I am making an android application in which I have put 10 images and
I have a simple android client which needs to 'talk' to a simple C#
Hi i have develop an android application in which i want to prevent user
I have an Android application which uses the NDK to execute a large amount
In the Android application I have written, there is a portion which allows the

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.