Maybe I didn't descripte my qustion clearly. I just want to add an app widget into my custom home screen, and then I try this in my activity
mAppWidgetManager = AppWidgetManager.getInstance(this); AppWidgetProviderInfo widgetProviderInfo = null; AppWidgetHost AH = new AppWidgetHost(this,1024); widgetProviderInfo = mAppWidgetManager.getInstalledProviders().get (0); // get one of app widget information AppWidgetHostView hostView = AH.createView(this, AH.allocateAppWidgetId (), widgetProviderInfo); rl1.addView(hostView); // add view in one of my layout but...I can only get the widget's backgroud...it can't be updated itself.....why??? On 1月16日, 下午2時36分, Nemat <[email protected]> wrote: > No, > Actually it needs user choice.I mean it depends on user which Screen > he wants to use as HomeScreen. > Even I was looking at the way I can add my Activity as Home Screen.But > it always asks the user to choose one from default and third party > Screen. > I couldnt find any solution.I dont think there is some way to do this. > > Hope it helps!!!! > :-) > > Regards > Nemat > > On Jan 16, 8:51 am, Leo <[email protected]> wrote: > > > ok, this is a difficult question. > > > On 1月13日, 上午11時07分, Leo <[email protected]> wrote: > > > > any body? > > > > On 1月8日, 上午12時23分, Leo <[email protected]> wrote: > > > > > Hi, I would like to add app widgets in my own custom home screen, but > > > > there are some problems about it. > > > > > Since I have > > > > readhttps://groups.google.com/group/android-developers/browse_thread/thre... > > > > >http://www.mail-archive.com/[email protected]/msg50... > > > > > they said that activity should need to launch the PICK intent for user > > > > choosing app widget, but I don't want to > > > > choose widget from a list, instead of this, I want to insert a > > > > specifically widtget. > > > > I think there is a clock widget on the original android home screen, > > > > so there still another way to add widget app into home screen that > > > > doesn't need user choosing app widget, right?- Hide quoted text - > > > - Show quoted text - > >
-- 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

