If you want to start an app and only start an app, you should just put a shortcut to the app on your home screen. If its an individual activity you wanted to start, you could do something similar to this:
public class Widget extends AppWidgetProvider { @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) context.startActivity( new Intent(context, yourActivity.class) ); } Though i would suggest using shortcuts, its what they are designed for and you dont have to write a widget! Ne0 On 22 Jan, 00:00, Justin Anderson <janderson....@gmail.com> wrote: > Follow this > tutorial:http://android-developers.blogspot.com/2009/04/introducing-home-scree... > > This tutorial has the Widget start a service. What I then did is have the > service start an app. I'm not sure that widget's can directly launch an > application. > > Hope that helps, > Justin > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > On Sun, Jan 10, 2010 at 7:02 AM, Lyndon > <lyndon.smith.mob...@googlemail.com>wrote: > > > I am trying to do something that MUST be very simple but for the life > > of me I cannot find the answer. > > > I have a very simple Widget taken from the book Hello, Android! > > > All it does is display the date and time. It works fine. > > > I want to make it respond to a 'click' and start the browser (or any > > app for that matter). > > > I have spent absolutely ages researching how to do this and I can find > > no examples on the web. > > > Can any one point me in the right direction, please. > > > Regards > > > Lyndon > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en