2012-01-10 7 views
1

私は開発したアプリを持っており、複数のデバイスでテストしています。私のアプリはHVGAデバイスにインストールされません

アプリはSamsung Galaxy Q(HVGA 320x480画面のFroyoを実行中)にはインストールされません。

minSdkVersionは7ですので、問題ではありません。それは他のマシンにインストールして正常に動作します。大画面デバイス。

すべての画面サイズでAndroidManifest.xml <supports-screens>フラグをtrueに設定しました。

私が見ているエラーは、.apkをインストールしようとすると「アプリケーションがインストールされていません」です。

同じ画面解像度とOSバージョンでエミュレータに正常にインストールされます。

ここにマニフェストがあります。プロジェクトがNDAの下にあるため、識別可能な要素を「%%%%」に置き換えました。

AndroidManifest.xml

<manifest android:versionCode="1" 
     android:versionName="1.0" 
     package="%%%%" 
     xmlns:android="http://schemas.android.com/apk/res/android"> 
<application android:debuggable="false" 
      android:hardwareAccelerated="true" 
      android:icon="@drawable/icon" 
      android:label="@string/app_name" 
      android:name="%%%%" 
      android:theme="@style/Theme.LoadingBackground"> 
<activity android:label="@string/app_name" 
      android:name="%%%%" /> 
<activity android:icon="@drawable/icon" 
      android:label="@string/app_name" 
      android:launchMode="singleTask" 
      android:name="%%%%" 
      android:screenOrientation="portrait"> 
    <intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 
</activity> 
<activity android:label="Store Front Widget" 
      android:name="%%%%" 
      android:screenOrientation="portrait" 
      android:taskAffinity="%%%%"> 
    <intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    </intent-filter> 
</activity> 
<receiver android:label="%%%%" 
      android:name="%%%%"> 
    <intent-filter> 
    <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 
    </intent-filter> 
    <meta-data android:name="android.appwidget.provider" 
      android:resource="@xml/widget_provider" /> 
</receiver> 
<receiver android:name="%%%%" /> 
<service android:name="c%%%%" /> 
<service android:name="%%%%"> 
    <intent-filter> 
    <action android:name="%%%%" /> 
    </intent-filter> 
</service> 
<service android:name="%%%%"> 
    <intent-filter> 
    <action android:name="%%%%" /> 
    </intent-filter> 
</service> 
<uses-library android:name="com.google.android.maps" /> 
</application> 
<supports-screens android:anyDensity="true" 
       android:largeScreens="true" 
       android:normalScreens="true" 
       android:smallScreens="true" /> 

<uses-feature android:name="android.hardware.camera" /> 
<uses-feature android:name="android.hardware.camera.autofocus" /> 
<uses-permission android:name="android.permission.CAMERA" /> 
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 

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

答えて

2

どのようなアプリを作ったのですか?

アプリでカメラリソースを使用している場合は、プレビューフレームサイズを確認する必要があります。

public Camera getCameraInstance(){ 
    Camera c = null; 
    try { 
     c = Camera.open(); 

     Parameters param = c.getParameters(); 

     List<Size> list = param.getSupportedPreviewSizes(); 
     int list_size = list.size(); 

     Log.e("list size", Integer.toString(list_size)); 

     int supportedH = list.get(2).height; 
     int supportedW = list.get(2).width; 

     Log.e("supported height", Integer.toString(supportedH)); 
     Log.e("supported width", Integer.toString(supportedW)); 

     param.setPreviewFormat(ImageFormat.NV21); 
     c.setParameters(param);    
    } 
    catch (Exception e){ 
     Log.e("colorPicker", e.toString()); 
    } 
    return c; 
} 
+0

どこを指定するのですか? – howettl

+0

また、これはインストール時に問題になるでしょうか? – howettl

+0

ええ、私は私のプロジェクトで同じ問題があります。 – lv0gun9

1

すでにデバイスにインストールされているのアプリのバージョンが存在しないことをダブルチェック。同じエラーは、アプリケーションをインストールしようとした場合と、同じパッケージ名を持つパッケージを別の署名がデバイスにすでに存在する場合に表示されます。

ある場合は、別のキー(有効期限の切れたデバッグキーまたはリリースキーなど)で署名されている可能性があります。アンインストールしても問題ありません。

別のものがインストールされていない場合は、マニフェストファイルを投稿してください。

+0

私が取り組んでいるプロジェクトはNDAの下にありますので、私が投稿するものに注意する必要があります。関連するマニフェストの特定のセクションはありますか? – howettl

関連する問題