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 7882875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:23:19+00:00 2026-06-03T04:23:19+00:00

I have added 2 Widgets to my app. However if user moves the app

  • 0

I have added 2 Widgets to my app. However if user moves the app to SD card on some Android versions, Widgets stop being available.

As a solution, I created a new small app which contains Widgets only. So users can move main app to SD card and have Widgets app in internal storage, to be able to use Widgets. Besides 2 main widgets, Widgets app has 2 more Widgets (4 in total). Those 2 extra Widgets are kind of beta Widgets. If I see one Widget is being used a lot, I’ll improve it and move it main package.

Problem arise when user does not move main app to SD card (or has an Android version which allows using Widgets from SD card) and if user installs Widgets app to have access those 2 extra Widgets. In that case, user will get 2 main widgets twice: one time from main app and another time from Widgets app.

What I want to do is disable those 2 Widgets from main app if I detect that Widgets app is installed too. That is to avoid having those 2 Widgets repeated.

I do know how to check from main app if Widgets app is installed. I just don’t know how to disable a Widget programmatically. Is that possible?

  • 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-03T04:23:20+00:00Added an answer on June 3, 2026 at 4:23 am

    Use PackageManager and setComponentEnabledSetting() to disable the AppWidgetProvider(s) by name, and they will no longer show up in the list.

    If the user already added those app widgets to their home screen, though, they will break, and the user may get confused.

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

Sidebar

Related Questions

I want to change the canvas size after I have added some widgets to
I have developed an Android Widget, and it was working fine. I added some
I have an existing android app. I added a simple widget to it using
I have added widget functionality to my app, which is compatible with older versions
I have added some settings to my c# application using the configuration editor. There
How to start an activity after the animation has ended. I have added android:oneshot=true
I used to have some experience with developing for android but I started up
I'm currently playing around with App Widgets in Android and I'm a little confused
Hey, I just added a Widget to my Android App but when I now
I have some external Javascript files in my GWT app that I only want

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.