So you don't really "launch" AppWidgets.  Once you've installed them,
they will appear in the long-press menu on the home screen.

j

On Thu, May 7, 2009 at 6:54 PM, Zia <[email protected]> wrote:
>
> Does AppWidget works in the latest 1.5 release? I've upgraded to r1.5
> but not able to launch any Appwidget related activity. Neither this
> nor SimpleWiktionary. Beside the upgrade instructions for r1.5 is
> there anything else I am suppose to configure to get AppWidget working
> on the emulator?
>
> Thanks,
>
> Zia
>
> On Apr 15, 5:24 pm, Jeff Sharkey <[email protected]> wrote:
>> Looks like there were some other things that needed to be fixed in
>> that example.  There's a full fix coming in the final 1.5, but here's
>> a quick diff:
>>
>> http://pastebin.com/f1a0f7408
>>
>> j
>>
>>
>>
>> On Wed, Apr 15, 2009 at 4:32 PM, Jeff Sharkey <[email protected]> wrote:
>> > 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]
>>
>> --
>> Jeff Sharkey
>> [email protected]
> >
>



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to