Wednesday, July 13, 2011

Re: [android-developers] How can I find how many home screens?

On Wed, Jul 13, 2011 at 4:02 PM, Hal Harrison
<closeenough.backup@gmail.com> wrote:
> My about-to-be-released live wallpaper app works well if I know the
> number of home screens. I  observe that the 2.1 emulator has three and
> 2.2 and later have five. I can distinguish between them with
>                Build.VERSION myvbld = new Build.VERSION();
>                if(myvbld.RELEASE.contains("2.2")) ...
> but I know Motorola and others ship phones with seven, and perhaps
> more.
>
> Is there any way I can query for the number of home screens, 3, 5, 7,
> 9, ..., available on my user's phone?

No, sorry. I can envision a home screen implementation with infinite
"home screens".

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

--
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 to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment