Re: [android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread Kostya Vasilyev
[see below] 2011/1/14 John Gaby > > There is no onUpdate on configuration changes. The home screen recreates > > your widget, then takes the most recent RemoteViews and applies it to the > > widget. > > > > I figured that it was recreating the Widget on rotation. The problem > is, I don't seem

Re: [android-developers] Re: Screen rotation with App Widgets loses onClick connection

2011-01-14 Thread Kostya Vasilyev
Each and every update you push to the wigdget with RemoteViews has to have complete widget state, including all images, text, and pending intents. There is no onUpdate on configuration changes. The home screen recreates your widget, then takes the most recent RemoteViews and applies it to the widg

Re: [android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread TreKing
On Mon, Sep 20, 2010 at 2:37 PM, Bret Foreman wrote: > But a ProgressDialog object does not have a setId method. So how would I > identify the dialog? > I think you should review this: http://developer.android.com/guide/topics/ui/dialogs.html -

Re: [android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread TreKing
On Mon, Sep 20, 2010 at 2:18 PM, Bret Foreman wrote: > But showDialog takes a resource ID It's not a resource ID. That id is to ID the dialog itself. It can be whatever you need it to be to ID that particular dialog. --

Re: [android-developers] Re: Screen Rotation

2010-07-20 Thread TreKing
On Sat, Jul 17, 2010 at 9:40 AM, nation-x wrote: > there is an example of one way to save an array object to a file and to > read it back in. > Note that the OP's problem was trying to retain data on screen rotation, not persist across application restarts. In general, saving data to a file and