2013-07-18 2 views
0

방금 ​​태블릿에만 사용하도록 설계된 PhoneGap을 사용하여 안드로이드 응용 프로그램을 만들었습니다. 그러나 Google Play에 앱을 업로드하면 휴대 전화에서만 사용할 수 있으며 태블릿에는 설치할 수 없다고 말합니다./Android 앱, Google Play에서만 태블릿. 방법?

애플리케이션을 태블릿에서만 사용할 수 있도록하려면 어떻게해야합니까?

이 내 AndroidManifest를 파일입니다

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
     Licensed to the Apache Software Foundation (ASF) under one 
     or more contributor license agreements. See the NOTICE file 
     distributed with this work for additional information 
     regarding copyright ownership. The ASF licenses this file 
     to you under the Apache License, Version 2.0 (the 
     "License"); you may not use this file except in compliance 
     with the License. You may obtain a copy of the License at 

     http://www.apache.org/licenses/LICENSE-2.0 

     Unless required by applicable law or agreed to in writing, 
     software distributed under the License is distributed on an 
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
     KIND, either express or implied. See the License for the 
     specific language governing permissions and limitations 
     under the License. 
--> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan" 
     package="com.p4l.inhome" android:versionName="1.0" android:versionCode="1" android:hardwareAccelerated="true"> 
    <supports-screens 
     android:largeScreens="true" 
     android:normalScreens="true" 
     android:smallScreens="true" 
     android:xlargeScreens="true" 
     android:resizeable="true" 
     android:anyDensity="true" 
     /> 

    <uses-permission android:name="android.permission.CAMERA" /> 
    <uses-permission android:name="android.permission.VIBRATE" /> 
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> 
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.RECEIVE_SMS" /> 
    <uses-permission android:name="android.permission.RECORD_AUDIO" /> 
    <uses-permission android:name="android.permission.RECORD_VIDEO"/> 
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 
    <uses-permission android:name="android.permission.READ_CONTACTS" /> 
    <uses-permission android:name="android.permission.WRITE_CONTACTS" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 
    <uses-permission android:name="android.permission.BROADCAST_STICKY" /> 


    <application android:icon="@drawable/icon" android:label="@string/app_name" 
     android:hardwareAccelerated="true" 
     android:debuggable="true"> 
     <activity 
      android:hardwareAccelerated="true" 
      android:screenOrientation="landscape" 
      android:name="InHomeFinal" android:label="Pay4Later InHome" 
       android:theme="@android:style/Theme.Black.NoTitleBar" 
       android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/> 
</manifest> 

덕분에이 같은 매니페스트

+2

당신이에 suppport - 화면을 변경하려고 했나 : <지원 - 화면 안드로이드 : largeScreens = "true"로 안드로이드 : normalScreens = "false"를 안드로이드 : smallScreens = "false"를 안드로이드 : xlargeScreens = "true"로 android : resizeable = "true" android : anyDensity = "true" /> – Horschtele

+0

또한 권한 bccz google이 권한을 기반으로 응용 프로그램을 필터링하는지 여부를 확인합니다 –

+1

http : // developer .android.com/guide/practices/screens-distribution.html – JJ86

답변

1

변경 :

<supports-screens 
     android:largeScreens="true" 
     android:normalScreens="false" 
     android:requiresSmallestWidthDp="600" 
     android:smallScreens="false" 
     android:xlargeScreens="true" /> 

<uses-sdk 
    android:minSdkVersion="11" 
    android:targetSdkVersion="14" /> 

이 응용 프로그램을 설치할 수있는 소형/모바일 장치를 방지 할 수 있습니다. 대형 화면 장치 만 응용 프로그램을 설치할 수있는 권한이 있습니다. Play 스토어는 이러한 설정에 따라 자동으로 기기를 선택합니다.

+0

알았습니다. 어떻게 전화를 기본적으로 사용하지 않습니까? 틀림없이 그것은 전화기와 정제를 선택했을 것입니까? – user2595157

+0

큰 태블릿의 경우 최소 SDK 버전은 13에서 시작합니다. 태블릿의 경우 14로 설정하는 것이 좋습니다. – mbokil