w3c-webmob / installable-webapps

Use cases and requirements for installable web apps
43 stars 13 forks source link

research different orientations across both phones and tablets #7

Open marcoscaceres opened 10 years ago

marcoscaceres commented 10 years ago

Some apps use different orientations depending on if they are running a phone vs on a tablets vs on desktop. Need to check how often this happens.

anssiko commented 10 years ago

Looking at the Android-land and its manifest:

The Android Manifest supports the following orientations: http://developer.android.com/guide/topics/manifest/activity-element.html#screen

[The same set of orientations is also supported by the screenOrientation() API: http://developer.android.com/reference/android/R.attr.html#screenOrientation]

The orientation can be set per activity in the manifest. An activity is a part of the application's visual user interface.

A set of supported screen sizes can be defined in the manifest: http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Based on this data in the manifest the store presumably filters the apps, provides the right binary. The orientation can be set differently in each binary. This model does not seem to be fit for the Web.