Changes in some of the Android samples to support Google TV

Made changes in manifest files for 3 Android samples, namely ActionBarCompat, BackupRestore and CrossCompatibility for supporting Google TV devices. Changes related to making touchscreen support as optional and adding support for large screen devices was added.

Change-Id: Ie49b6fe94d750304b249b154b4bd9dffc3f789ee
This commit is contained in:
Kartic Grover
2012-04-25 14:39:38 -07:00
parent a70fac3d09
commit 08bbdb6b21
4 changed files with 9 additions and 1 deletions

View File

@@ -20,6 +20,8 @@
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="14" /> <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="14" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<supports-screens android:largeScreens="true"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"

View File

@@ -26,6 +26,7 @@
<!-- The backup/restore mechanism was introduced in API version 8 --> <!-- The backup/restore mechanism was introduced in API version 8 -->
<uses-sdk android:minSdkVersion="8"/> <uses-sdk android:minSdkVersion="8"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<application android:label="Backup/Restore" <application android:label="Backup/Restore"
android:backupAgent="ExampleAgent"> android:backupAgent="ExampleAgent">

View File

@@ -3,6 +3,11 @@
package="com.example.android.touchexample" package="com.example.android.touchexample"
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<supports-screens android:largeScreens="true"/>
<application android:icon="@drawable/icon" android:label="@string/app_name"> <application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".TouchExampleActivity" <activity android:name=".TouchExampleActivity"
android:label="@string/app_name"> android:label="@string/app_name">
@@ -13,5 +18,5 @@
</activity> </activity>
</application> </application>
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" />
</manifest> </manifest>