[android-developers] Re: Screen rotation and ProgressDialog

2012-08-27 Thread Sheharyar Naseer
I'm still unable to do it. I'm fairly new to Android Dev. Could you please write me a snippet on how to do this in AsyncTasks. Thankyou for your help. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

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

2012-05-11 Thread Opack
Hi ! I seem to have the same problem but the solution I've found everywhere on the web and in this thread does not work for me :( I posted my onUpdate method below, in which I perform a full initialisation of a new RemoteViews object. Then I pass it to the AppWidgetManager. This kind of operat

[android-developers] Re: Screen rotation clears TextView

2011-10-07 Thread King Salamon
sorry if this is redundant--I've been trying to post a reply to this thread---Can anyone please supply a full coding example for resolving this issue. I want users to be able to rotate the device and not loose the the data that is displayed in the textView. Example: Gold score card app that rec

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

2011-01-14 Thread John Gaby
Got it, thanks! On Jan 14, 8:27 am, Kostya Vasilyev wrote: > [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

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

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

2011-01-14 Thread 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 to be getting any messages to that effect, and h

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

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

2011-01-13 Thread Anbu
It is because, the widget becomes unresponsive when the display mode is changed from portrait to landscape. I had the same issue and I what I had done is for every RemoteView update I had send all the pendingintent to make it work On Jan 14, 4:26 pm, John Gaby wrote: > I have an App Widget on the

[android-developers] Re: Screen Rotation

2011-01-03 Thread kernelpanic
if what you posted in the original msg is a cut/paste, then the problem is likely a typo - the ">" right before your android:configChanges line should be moved to AFTER android:configChanges="orientation|keyboardHidden" On Dec 31 2010, 2:21 pm, Robert wrote: > Yes, I agree an

[android-developers] Re: Screen Rotation

2011-01-02 Thread Prateek Jain
I am not sure, if you just want to stop your app to change orientation on rotating. But if thats the case, along with the line you mentioned android:configChanges="orientation|keyboardHidden" which tells the system that app will be handling the orientation change, you need to add the following lin

[android-developers] Re: Screen Rotation

2010-12-31 Thread Robert
Yes, I agree and even said in my original post that I was working to understand how to make that work correctly. Still would be interested to know why the manifest entry doesn't seem to be working as documented. On Dec 31, 12:55 pm, TreKing wrote: > On Fri, Dec 31, 2010 at 11:48 AM, Robert wrot

[android-developers] Re: Screen Rotation

2010-12-31 Thread Sarwar Erfan
http://stackoverflow.com/questions/2730855/prevent-screen-rotation-android -- 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 t

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
Yeah, I read this first but was pretty confused. Now I've read it again after the discussion here and it makes more sense. I've got it working now. On Sep 20, 1:05 pm, TreKing wrote: > On Mon, Sep 20, 2010 at 2:37 PM, Bret > Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightin

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 -

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
But a ProgressDialog object does not have a setId method. So how would I identify the dialog? On Sep 20, 12:27 pm, TreKing wrote: > On Mon, Sep 20, 2010 at 2:18 PM, Bret > Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingwrote: > > > But showDialog takes a resource ID > >

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. --

[android-developers] Re: Screen rotation and ProgressDialog

2010-09-20 Thread Bret Foreman
But showDialog takes a resource ID and I'm creating my progress dialog on the fly. Perhaps it's a better idea to create it statically? On Sep 20, 12:07 pm, TreKing wrote: > On Mon, Sep 20, 2010 at 2:01 PM, Bret > Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingwrote: > >

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

[android-developers] Re: Screen Rotation

2010-07-17 Thread nation-x
If you look at this tutorial I created at http://androidworkz.com/2010/07/06/source-code-imageview-flipper-sd-card-scanner/ there is an example of one way to save an array object to a file and to read it back in. I tried using SharedPreferences, etc as described in the docs and gave up because I co

[android-developers] Re: Screen rotation

2009-08-23 Thread kabir
Thanks On Aug 22, 11:27 pm, kabir wrote: > Hi, > > I have an activity which I have defined to keep in portrait position. > > However I would still like to change things (slightly) when the screen > is rotated, what is the best way of doing this? > I notice onConfigurationChanged is still called,

[android-developers] Re: Screen rotation

2009-08-23 Thread Spektor Yaron
Hi Kabir, if you mean how do you catch these events and change the layout this could help: http://www.devx.com/wireless/Article/40792/1954 On Sun, Aug 23, 2009 at 1:27 AM, kabir wrote: > > Hi, > > I have an activity which I have defined to keep in portrait position. > > However I would still li

[android-developers] Re: Screen rotation

2009-08-22 Thread Dianne Hackborn
All you can do is monitor the accelerometer yourself and decide for yourself when you consider the screen to be rotated. On Sat, Aug 22, 2009 at 3:27 PM, kabir wrote: > > Hi, > > I have an activity which I have defined to keep in portrait position. > > However I would still like to change things