I got the solution. Probably you might already know but if anyone dont want your started activity display when user long press "home", put android:excludeFromRecents="true" for the activity.
Otherwise, user might launched wrong activity from the recent list. Regards, Stephen On 8月9日, 上午10時08分, Stephen <[email protected]> wrote: > I see facebook widget can start dialog at anytime. Is it also > configure activity? > > If I use the following to my widget. > > Intent newReleaseIntent = new > Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE); > newReleaseIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, > appWidgetId); > PendingIntent pendingRelease = > PendingIntent.getActivity(context, 0, > newReleaseIntent, 0); > remoteview.setOnClickPendingIntent(R.id.image1, pendingRelease); > > It will create a shortcut icon on the shortcut. But I think facebook > does not is it something do with manifest.xml? > > On 8月6日, 下午6時38分, Stephen <[email protected]> wrote: > > > > > Oh, that can start a AlertDialog in Home screen. > > I will give it a go. Thx > > > Regards, > > Stephen > > > On 8月6日, 下午6時19分, Mark Murphy <[email protected]> wrote: > > > > On Fri, Aug 6, 2010 at 6:16 AM, Stephen <[email protected]> wrote: > > > > Anyone know if it is possible to add AlertDialog within a > > > > AppWidgetProvider class? > > > > Use a configuration activity if you need a UI when the app widget is > > > being added: > > > >http://developer.android.com/guide/topics/appwidgets/index.html#Confi... > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > > > Available!- 隱藏被引用文字 - > > > - 顯示被引用文字 -- 隱藏被引用文字 - > > - 顯示被引用文字 - -- 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

