ViewFlipper switching views on screen orientation change

by Marc » Mon, 25 Jan 2010 12:23:24 GMT


Sponsored Links
 I have a 3 nested ViewFlippers which seem to be working ok except that
when I change the screen orientation the view flip back to the first
one of my views, giving the user the impression it went back a few
steps.

I am a bit stumped as to what to do and was hoping someone had some
experience with this. Thanks.

--



ViewFlipper switching views on screen orientation change

by Atif Gulzar » Mon, 25 Jan 2010 13:30:05 GMT


 whenever the orientation is changed the onCreate fuction is called again
(unless you handled it). Means your activity is refreshed.

before orientation change happened  onRetainNonConfigurationInstance()  is
called. You can save you activity state in this function.

And then in onCreate you can get it by calling

Object data = getLastNonConfigurationInstance();


Hope it helps.

--
Best Regards,
Atif Gulzar

I  Unicode, zln 






>


Sponsored Links


ViewFlipper switching views on screen orientation change

by Atif Gulzar » Mon, 25 Jan 2010 13:33:39 GMT


 whenever the orientation is changed the current activity is destroyed and
new one is created and onCreate fuction is called again (unless you handled
it). Means your activity is refreshed.


Before orientation change happened  onRetainNonConfigurationInstan




--
Best Regards,
Atif Gulzar

I  Unicode, zln 







>>



Other Threads

1. what is mean by android discuss

bidvertiser.com
@@@@@@@@@@@@@@@@

-- 

2. Breaking News: The Market Still Needs Fixing...

On Thu, Jan 21, 2010 at 11:29 AM, Maps.Huge.Info (Maps API Guru)



This might be true statistically worldwide, but as a small test
sample; the majority of my friends and family who have Android phones
have all paid for a small percentage of their apps. The key seems to
be the type of app you are selling. Few people seem willing to pay for
a Twitter app for example (although donations are not uncommon), but I
know many people here in the UK who have paid for the National Rail
app, as free alternatives cannot provide the same experience, and it's
a valuable resource when on the move. I've also found that games are
paid for as long as they are of commercial quality, and usually with
3D graphics (I'm only talking about what people are willing to pay for
here, not what games they prefer to play).


Well, regarding advertising alternatives, how about FunkyAndroid's OpenX widget?

http://blog.funkyandroid.com/2009/12/14/funky-android-provide-android-openx-widget/

I can't comment on it as I haven't used it.

There are other options I can think of for generating revenue. Whilst
I'm sure you've considered most of them, but I'd be interested to hear
your thoughts on their viability...

* Licencing the app (and use the Android Market to offer the free
"trial" version with instructions on how to buy a license and download
the full version directly)
* Selling it direct, or from another market (and advertise by other
means than the Android Market search box).
* Selling it on the Android Market at a relatively high cost (people
often look at the price as a means of determining its quality before
purchasing)

Those are just some options I can think of right now, but it's rare
that people discuss their experiences with trading models outside the
regular Android Market method. I'd be interested to hear more on these
experiences to be honest.

3. How can I find out the ip address of my G1 using 'adb shell'?

4. archos contest voucher

5. 1 week in android market

6. Needed - iPhone and/or Android/Java Developer, Mobile Applications, Arizona

7. Help~~ We need to build a kernel driver for Android v2.1