Hi, I'm trying to develop my first home screen widget for android, but don't know how to use buttons. I've followed the tutorial http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html but it doesn't show how to use buttons. Somewhere I read about RemoteViews, PendingIntents and the setOnClickPendingIntent method, but I don't really know how to use them. Therefor, I have some questions: 1) How do I set an onClickListener (or an OnClickPendingIntent() ) for the button? 1,2) where do I set this? There is no onCreate() method.. 2) This method starts an Intent, but how do I use an Intent to just run a method? I do not want to start any activity.
Thank you very much - I hope you understand my questions, Best Regards Kaloer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

