Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Widget shows "App Isn't Installed" Toast in ICS

I've created a widget that works fine on my Galaxy Nexus via Eclipse, however when I create a signed apk, uninstall the debug version from the phone, and install the new apk and try to place it on the homescreen I get the following Toast message: "App isn't installed".

Any ideas why this happens?

Thanks

like image 702
Sandy Avatar asked Jun 24 '12 02:06

Sandy


3 Answers

Actually I've just found out what went wrong. I'm making several widgets based on the same code, and right before building I refactored and changed the package name. I missed updating the "android:configure" field in the appwidget-provider xml, so this was causing the configuration activity to "not be found".

like image 140
Sandy Avatar answered Oct 18 '22 23:10

Sandy


I just had this problem and the solution was something I don't see mentioned here: I had changed the activity I used to configure my widget, but had forgotten to add an intent filter for it to my AndroidManifest.xml.

<activity android:name="com.mypackage.ConfigureWidget" 
          android:label="@string/configureWidget">
    <intent-filter>
        <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
    </intent-filter>
</activity>
like image 27
mfelix Avatar answered Oct 18 '22 23:10

mfelix


The same problem was in my app also. What I did is that I just remove the "android:configure" field from the appwidget-provider xml and it started continue work properly.

like image 9
user609239 Avatar answered Oct 18 '22 23:10

user609239