I'd like to report a bug we just found while writing a widget.
Summary: There is a widget installed, that defines a configuration
activity. If the user changes the orientation while they are in the
configuration activity, and they finish that activity in a different
orientation that they started, the widget does NOT appear in the home
screen after the configuration is done.
How to reproduce: have a minimal widget, with a configuration activity
that contains a button, which correctly updates the App Widget when it
is clicked (as explained in http://developer.android.com/guide/topics/appwidgets/index.html#Confi...).
Add a new instance of the widget, so the config screen shows up.
Change the orientation once. Click on the button. Your widget does not
appear in the home screen. (Ouch.)
If this has already been reported, or if there's a better way to
submit a bug report, please let me know!
Thanks for catching this--it's a known issue and an engineer has been
assigned to it. :) There really isn't a good workaround in 1.5,
other than forcing the configuration activity into portrait mode or
asking users to rotate before returning.
On Sun, Jul 12, 2009 at 3:19 PM, Pablo Pera<pablo...@gmail.com> wrote:
> Hi,
> I'd like to report a bug we just found while writing a widget.
> Summary: There is a widget installed, that defines a configuration
> activity. If the user changes the orientation while they are in the
> configuration activity, and they finish that activity in a different
> orientation that they started, the widget does NOT appear in the home
> screen after the configuration is done.
> How to reproduce: have a minimal widget, with a configuration activity
> that contains a button, which correctly updates the App Widget when it
> is clicked (as explained in http://developer.android.com/guide/topics/appwidgets/index.html#Confi...).
> Add a new instance of the widget, so the config screen shows up.
> Change the orientation once. Click on the button. Your widget does not
> appear in the home screen. (Ouch.)
> If this has already been reported, or if there's a better way to
> submit a bug report, please let me know!
Are you sure forcing portrait mode for configuration activity could
solve the problem ?
I've tried to add: android:screenOrientation="portrait" to my activity
and the problem is still here.
The activity is displayed in portrait whatever the orientation but the
phantom widget bug is still here.
On Jul 13, 9:15 pm, Jeff Sharkey <jshar...@android.com> wrote:
> Thanks for catching this--it's a known issue and an engineer has been
> assigned to it. :) There really isn't a good workaround in 1.5,
> other than forcing the configuration activity into portrait mode or
> asking users to rotate before returning.
> j
> On Sun, Jul 12, 2009 at 3:19 PM, Pablo Pera<pablo...@gmail.com> wrote:
> > Hi,
> > I'd like to report a bug we just found while writing a widget.
> > Summary: There is a widget installed, that defines a configuration
> > activity. If the user changes the orientation while they are in the
> > configuration activity, and they finish that activity in a different
> > orientation that they started, the widget does NOT appear in the home
> > screen after the configuration is done.
> > How to reproduce: have a minimal widget, with a configuration activity
> > that contains a button, which correctly updates the App Widget when it
> > is clicked (as explained inhttp://developer.android.com/guide/topics/appwidgets/index.html#Confi...).
> > Add a new instance of the widget, so the config screen shows up.
> > Change the orientation once. Click on the button. Your widget does not
> > appear in the home screen. (Ouch.)
> > If this has already been reported, or if there's a better way to
> > submit a bug report, please let me know!
> Are you sure forcing portrait mode for configuration activity could
> solve the problem ?
> I've tried to add: android:screenOrientation="portrait" to my activity
> and the problem is still here.
> The activity is displayed in portrait whatever the orientation but the
> phantom widget bug is still here.
> On Jul 13, 9:15 pm, Jeff Sharkey <jshar...@android.com> wrote:
> > Thanks for catching this--it's a known issue and an engineer has been
> > assigned to it. :) There really isn't a good workaround in 1.5,
> > other than forcing the configuration activity into portrait mode or
> > asking users to rotate before returning.
> > j
> > On Sun, Jul 12, 2009 at 3:19 PM, Pablo Pera<pablo...@gmail.com> wrote:
> > > Hi,
> > > I'd like to report a bug we just found while writing a widget.
> > > Summary: There is a widget installed, that defines a configuration
> > > activity. If the user changes the orientation while they are in the
> > > configuration activity, and they finish that activity in a different
> > > orientation that they started, the widget does NOT appear in the home
> > > screen after the configuration is done.
> > > How to reproduce: have a minimal widget, with a configuration activity
> > > that contains a button, which correctly updates the App Widget when it
> > > is clicked (as explained inhttp://developer.android.com/guide/topics/appwidgets/index.html#Confi...).
> > > Add a new instance of the widget, so the config screen shows up.
> > > Change the orientation once. Click on the button. Your widget does not
> > > appear in the home screen. (Ouch.)
> > > If this has already been reported, or if there's a better way to
> > > submit a bug report, please let me know!