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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:48:33+00:00 2026-06-06T17:48:33+00:00

I have 1 android app project and 1 widget project, they all work fine.

  • 0

I have 1 android app project and 1 widget project, they all work fine. Now, i want to include widget project to android app project in order to when user install application, the widget will be installed too. I did like below but it did not work. Any helps?
Thanks you!

In manifest file:

<application>
    ............ (this is of android app project. below is of widget).......
    <receiver android:name=".widget.PlayerWidgetActivity" >
    <intent-filter>
            <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    </intent-filter>
        <meta-data android:name="android.appwidget.provider"
               android:resource="@xml/playerwidgetprovider" />
  </receiver>
  <service android:name=".widget.PlayerWidgetActivity$UpdateService" /> 
  <service android:name=".widget.PlayerWidgetActivity$ServiceBindUnbindService" />  
</application>    

EDIT: My application is quite big (.APK ~ 10MB), of course it has many activity, many services, many broadcast receivers, ….. so it takes times to build.
I create a new very small application with just an activity and put the code for widget like i put on the big app above. It works! OMG! Why it worked on that small app but not my big app 🙁

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:label="@string/app_name"
        android:name=".activity.ApplicationWithWidgetActivity" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <receiver android:name=".widget.PlayerWidgetActivity" 
       android:icon="@drawable/ic_launcher"
        android:label="@string/appwidget_name">
    <intent-filter>
        <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />             

    </intent-filter>
    <meta-data android:name="android.appwidget.provider"
               android:resource="@xml/playerwidgetprovider" />
</receiver>
<service android:name=".widget.PlayerWidgetActivity$UpdateService" />   
<service android:name=".widget.PlayerWidgetActivity$ServiceBindUnbindService" />    

</application>
  • 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-06T17:48:34+00:00Added an answer on June 6, 2026 at 5:48 pm

    I’ve had same problem!

    The solution is – INSTALLING APPLICATION INTO PHONE.

    Just move application to phone and you will see your widget.

    Hope it helps you!

    Info from here: http://www.hrupin.com/2012/07/how-to-fix-android-homescreen-widget-installation-widget-as-part-of-android-application

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

Sidebar

Related Questions

I have a free android app that I want to now distribute as free
I have created a MazeSolver android app for a school project. I am using
I am developing an android app in which I have included a library project,
I have an Android project that branched into three different applications, app-1 , app-2
I have developed an Android app which I want to be available both as
I have an app widget project, which relies that a corresponding app is installed.
Hello all i have an app it works fine on API 8 but i
I have got the code: package com.finalyearproject.cookmefood; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; import
I have android app . i should pass the data from android to web
I have Android client app that communicates with server using Socket . On my

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.