Hmm I was able to get it working fine. Did you include an
<intent-filter>? Without a filter, it assumes the activity is private
and won't let other apps launch it. (You could also use
android:exported="true".)
<activity android:name=".appwidget.ExampleAppWidgetConfigure">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
Thanks for catching this! :)
j
On Wed, Apr 15, 2009 at 12:01 PM, [email protected]
<[email protected]> wrote:
>
> I can't seem to get the ExampleAppWidget that comes in pre-1.5 to run,
> I added the Configure activity to the ApiDemos manifest, but now I'm
> getting this when I try to install the widget in the Home/Launcher
> app..
>
>
> E/AndroidRuntime( 842): java.lang.RuntimeException: Failure
> delivering result ResultInfo{who=null, request=9, result=-1,
> data=Intent { (has extras) }} to activity {com.android.launcher/
> com.android.launcher.Launcher}: java.lang.SecurityException:
> Permission Denial: starting Intent
> { action=android.appwidget.action.APPWIDGET_CONFIGURE comp=
> {com.example.android.apis/
> com.example.android.apis.appwidget.ExampleAppWidgetConfigure} (has
> extras) } from ProcessRecord{43739f88 842:android.process.acore/10002}
> (pid=842, uid=10002) requires null
> E/AndroidRuntime( 842): at android.app.ActivityThread.deliverResults
> (ActivityThread.java:3005)
> E/AndroidRuntime( 842): at
> android.app.ActivityThread.handleSendResult(ActivityThread.java:3047)
> E/AndroidRuntime( 842): at android.app.ActivityThread.access$2300
> (ActivityThread.java:112)
> E/AndroidRuntime( 842): at android.app.ActivityThread$H.handleMessage
> (ActivityThread.java:1721)
> E/AndroidRuntime( 842): at android.os.Handler.dispatchMessage
> (Handler.java:99)
> E/AndroidRuntime( 842): at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime( 842): at android.app.ActivityThread.main
> (ActivityThread.java:3948)
> E/AndroidRuntime( 842): at java.lang.reflect.Method.invokeNative
> (Native Method)
> E/AndroidRuntime( 842): at java.lang.reflect.Method.invoke
> (Method.java:521)
> E/AndroidRuntime( 842): at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:782)
> E/AndroidRuntime( 842): at com.android.internal.os.ZygoteInit.main
> (ZygoteInit.java:540)
> E/AndroidRuntime( 842): at dalvik.system.NativeStart.main(Native
> Method)
> E/AndroidRuntime( 842): Caused by: java.lang.SecurityException:
> Permission Denial: starting Intent
> { action=android.appwidget.action.APPWIDGET_CONFIGURE comp=
> {com.example.android.apis/
> com.example.android.apis.appwidget.ExampleAppWidgetConfigure} (has
> extras) } from ProcessRecord{43739f88 842:android.process.acore/10002}
> (pid=842, uid=10002) requires null
> E/AndroidRuntime( 842): at android.os.Parcel.readException
> (Parcel.java:1234)
> E/AndroidRuntime( 842): at android.os.Parcel.readException
> (Parcel.java:1222)
> E/AndroidRuntime( 842): at
> android.app.ActivityManagerProxy.startActivity
> (ActivityManagerNative.java:1046)
> E/AndroidRuntime( 842): at
> android.app.Instrumentation.execStartActivity(Instrumentation.java:
> 1449)
> E/AndroidRuntime( 842): at
> android.app.Activity.startActivityForResult(Activity.java:2656)
> E/AndroidRuntime( 842): at
> com.android.launcher.Launcher.startActivityForResult(Launcher.java:
> 837)
> E/AndroidRuntime( 842): at com.android.launcher.Launcher.addAppWidget
> (Launcher.java:954)
> E/AndroidRuntime( 842): at
> com.android.launcher.Launcher.onActivityResult(Launcher.java:332)
> E/AndroidRuntime( 842): at
> android.app.Activity.dispatchActivityResult(Activity.java:3595)
> E/AndroidRuntime( 842): at android.app.ActivityThread.deliverResults
> (ActivityThread.java:3001)
>
> >
>
--
Jeff Sharkey
[email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---