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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:25:10+00:00 2026-05-13T07:25:10+00:00

I currently have widget for my app Hire A Droid bundled with the main

  • 0

I currently have widget for my app HireADroid bundled with the main application. I would like to unbundle the widget and release it as a separate offering. However – the widget is relying on Activities from the main app so I need to navigate between these two mainly calling particular Activity of the main app from the widget. So the basic idea – app can work without widget and the widget becomes the “add-on” option.

What is the “right” way to call app activities from the stand-alone widget? Do I convert the main app into a content provider? Can you point me to any code samples perhaps?

Happy New Year!

P.S. I’m not asking how to call Activities from the widget that is bundled in the same APK. The question specifically states that widget is distributed separately from the app it’s calling

  • 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-13T07:25:11+00:00Added an answer on May 13, 2026 at 7:25 am

    The basic idea is to use Intents:

    1. In the manifest, have your activity respond to certain actions using an <intent-filter>.
    2. In your widget code, create an instance of the android.content.Intent class for the action you’ve set your activity to respond to, and call startActivity on the Intent instance.

    If the activity is contextual, you can use content URIs (you can create Intents for action/URI pairs) and also pass extra information via an ‘extras’ bundle (see Intent.getExtras).

    More information available in the docs here:

    • http://developer.android.com/guide/topics/intents/intents-filters.html
    • http://developer.android.com/reference/android/content/Intent.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently have password protection on my main and sub directories, however I'd like to
I am currently trying to add a widget to my application and have been
I have an app with a main activity and an app widget. The app
I currently have a deployed app (fortworth.herokuapp.com) that I am attempting to sort movies
I currently have a MySQL table like: id | friend 1 | 2 1
So I have a structure like this: Widget: Component 1: Component 2: Component 3:
I'm new to Android app development and I would like to ask something. I
I have added widget functionality to my app, which is compatible with older versions
My app has these parts A. Main activity B. Widget provider C. Sync Adapter
I have a current Rails 3 app and I'd like to run a poll

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.