Hello, I've got a problem with my widget. I made an Appwidgetprovider
just to log when onReceive() or onUpdate() is called. Then I created a
configuration activity with a button, when the button is pushed,
RESULT_OK intent is set, otherwise if the back button is pushed
RESULT_CANCELED intent is set. then I finish() my activity. If I
understand it correctly, the onReceive method would be called now, but
nothing happens on RESULT_OK. On RESULT_CANCELED intent I even get
this exception:

03-09 12:34:47.650: ERROR/AndroidRuntime(837): FATAL EXCEPTION: main
03-09 12:34:47.650: ERROR/AndroidRuntime(837):
java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=5, result=-1, data=Intent { act=CANCELED
(has extras) }} to activity {com.android.launcher/
com.android.launcher2.Launcher}: java.lang.NullPointerException
03-09 12:34:47.650: ERROR/AndroidRuntime(837):     at
android.app.ActivityThread.deliverResults(ActivityThread.java:3515)
03-09 12:34:47.650: ERROR/AndroidRuntime(837):     at
android.app.ActivityThread.handleSendResult(ActivityThread.java:
3557) ...

here my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest
        xmlns:android="http://schemas.android.com/apk/res/android";
        package="eu.scilled.rss"
        android:versionCode="1"
        android:versionName="1.0"
>
        <application
                android:icon="@drawable/icon"
                android:label="@string/app_name"
                android:debuggable="true"
        >
                <receiver
                        android:name=".RSSWidgetProvider"
                >
                        <intent-filter>
                                <action
                                        
android:name="android.appwidget.action.APPWIDGET_UPDATE"
                                ></action>
                        </intent-filter>
                        <meta-data
                                android:name="android.appwidget.provider"
                                android:resource="@xml/widget_provider_metadata"
                        ></meta-data>
                </receiver>
                <activity
                        android:name=".activity.ConfigActivity"
                >
                        <intent-filter>
                                <action
android:name="android.appwidget.action.APPWIDGET_CONFIGURE"></action>
                        </intent-filter>
                </activity>
        </application>
</manifest>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to