1

I know about offsetChange function, but it doesn't work on such devices as Galaxy S4. I think it happens because of TouchWiz wrapper. So I need to find out another way to determine count of home screens.

enter image description here

Any help will be appreciated!

Nolesh
  • 6,848
  • 12
  • 75
  • 112

1 Answers1

-1

Android has main screen like desktop.

Android has a home screen. Whether it is "like desktop" or not depends upon the device and user.

There are several home screens, you can switch between them

It is unclear what you mean by this.

You might mean "an Android device can have multiple applications installed that each offer to be a home screen, and the user can choose which of those applications to use". In that case, creating an Intent for ACTION_MAIN and CATEGORY_HOME, then passing that to queryIntentActivities() on PackageManager, should give you the list of possible home screen implementations.

You might mean "all Android home screens offer some sort of swiping option to move to different portions of space". Some home screens offer this, and there is no standard way to find out. There is no requirement that a home screen offer the capability of swiping this way, let alone a requirement to supply an API for third-party apps to find out details about them.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491