Hi! I'm trying to start an activity out of a widget so I can't use the startActivity() function. So I'm trying to create the correct intent but I don't find what I'm missing. Here's my code:
------------------------------------- Intent clickIntent = new Intent(); clickIntent.setAction(Intent.ACTION_MAIN); clickIntent.addCategory(Intent.CATEGORY_LAUNCHER); clickIntent.setComponent(new ComponentName(packageName, classToCall)); clickIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pendingIntentClick = PendingIntent.getActivity(context, 0, clickIntent, Intent.FLAG_ACTIVITY_NEW_TASK); views.setOnClickPendingIntent(id.getButton(), pendingIntentClick); ------------------------------------- What am I missing??? Cheers, Moritz -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en