Wednesday, July 13, 2011

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

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?

I'm nearing a dead end. Thanks for any help.

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