Gehen durch andere Beiträge hier und die Android-Dokumentation, fügte ich <compatible-screens>
zu meiner Android-Manifest-Datei, meine App nur auf Telefone zu beschränken. Jedes Mal, wenn ich versuche, es auf dem Nexus 7 Tablet auszuführen, wird die App auf dem Tablet angezeigt. Unten ist meine Android-Manifest-Datei. Fehle ich etwas?Einschränken Android App nur Telefon-Problem
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp.testapplication" >
<uses-permission android:name="android.permission.READ_CONTACTS" />
<compatible-screens>
<!-- all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
</compatible-screens>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Ah ok ... Danke CommonsWare! Ich glaube, ich habe gerade gelesen, dass der Google Play-Dienst es für den Play Store liest, aber verpasste, dass das Android-System es nicht liest. –