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

The Archive Base Latest Questions

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

I hava an app. External to the app, as a second .apk I have

  • 0

I hava an app. External to the app, as a second .apk I have an app widget, which accesses the app’s db via a ContentProvider.
So the app widget only works, if the app is installed.

I would like to have the following scenario:

  1. When a user attempts to install the app widget, the installation should abort and inform the user, that he has to install the app, too.
  2. When a user uninstalls the app, the app widget should be removed, too, or alternatively
  3. the user should be informed, that Unistallation of the app will break the widget.

Is there a way to accomplish this, ie. with some setting in the app widgets manifest?
If not, what other options/scenarios are available?
Minimum SDK is 7, target SDK is 8.

Note: Having both the widget and the app in the same apk is not an option as the app is large and installs to the SD card, while app widgets must be installed on the internal memory. That is the reason for the separation.

  • 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-03T18:11:35+00:00Added an answer on June 3, 2026 at 6:11 pm

    When a user attempts to install the app widget, the installation should abort and inform the user, that he has to install the app, too.

    If by “install the app widget” you mean “install the APK containing the app widget”, this is not possible.

    If by “install the app widget” you mean “add the app widget to the home screen”, you might be able to rig up something using a configuration activity. This will more or less boil down to alex’s answer in the comment.

    When a user uninstalls the app, the app widget should be removed, too, or alternatively

    This is not possible.

    the user should be informed, that Unistallation of the app will break the widget.

    That too is not possible. However, once the user uninstall the one APK, the app widget APK could have a BroadcastReceiver watching for ACTION_PACKAGE_REMOVED, and then let the user know about the problem.

    If not, what other options/scenarios are available? Minimum SDK is 7, target SDK is 8.

    Don’t bother with the app widget until Android 3.0+ becomes sufficient dominant that you are willing to package it in the main APK, as “install to external storage” has no real meaning on Android 3.0+.

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

Sidebar

Related Questions

I hava a thread in which I have an infinite loop, doing some network
I hava a WP 7.5 app. I have a splash screen and then comes
I hava a application that works with pictures(just a full screen app with 3
So I'm making an Ajax request in a Rails app and I hava a
I am writing a project on Google App Engine, within it I have a
I hava a UINavigationController. The first level is a UITableViewController, the second level just
i hava two text boxs in flex.have to add two txt boxs values in
I hava a perl subroutine where i would like to pass parameters as a
I hava a data window object, in which I am fetching some attributes from
I hava a website with a navigation bar which consists of several tabs. Now

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.