[android-developers] Re: Pending intent not detecting onCreate

2009-04-29 Thread jrgraf...@googlemail.com
Thanks for your help Jeff, its finally starting to make a lot more sense now! -James On Apr 29, 6:43 pm, Jeff Sharkey wrote: > Right, that wouldn't have an effect because your inflated layout is a > completely different copy from the one inflated by the home screen. > > Also, I noticed that you

[android-developers] Re: Pending intent not detecting onCreate

2009-04-29 Thread Jeff Sharkey
Right, that wouldn't have an effect because your inflated layout is a completely different copy from the one inflated by the home screen. Also, I noticed that your using "putExtra" in your PendingIntents. Be sure to use the FLAG_CANCEL_CURRENT flag when calling getActivity() to make sure your ex

[android-developers] Re: Pending intent not detecting onCreate

2009-04-29 Thread jrgraf...@googlemail.com
Thanks for your reply Jeff, Turns out what I really needed to do here was learn how Intent based programming on Android works and how to actually implement it! What I was missing here was actually declaring the activity in the Android XML (I assumed that activities only had to be declared if they

[android-developers] Re: Pending intent not detecting onCreate

2009-04-28 Thread Jeff Sharkey
Hmm, not sure exactly why it isn't working. Because you can't know the state of the remote AppWidgetHostView holding your widget, you should package up all operations each time you push an update. You said in logcat it looks like it's trying to start the activity, could you paste the couple of l

[android-developers] Re: Pending intent not detecting onCreate

2009-04-28 Thread jrgraf...@googlemail.com
As a side note I also tried using LayoutInflator and attaching an onClickListener to the imageview manually, but that failed to recognise any events. Im guessing here that changes made via a layoutinflator will not be picked up by remote views which later use that layout? On Apr 29, 1:19 am, "jrg