Galaxy Nexus 和我自己的应用程序的 Android 4.3 不兼容问题
Posted
技术标签:
【中文标题】Galaxy Nexus 和我自己的应用程序的 Android 4.3 不兼容问题【英文标题】:Android 4.3 incompatibility issues with Galaxy Nexus and my own application 【发布时间】:2013-08-14 12:25:01 【问题描述】:我刚刚在 Play 商店上传了一个 android 应用程序以进行 alpha 测试,下面是它的 aapt 转储标记详细信息。它表明此应用程序与我的 Galaxy Nexus 与 Android 4.3 不兼容。我一直在这款手机本身上测试这个应用程序。 我似乎无法弄清楚我做错了什么。我的另一部手机是 android 4.2.2 似乎是兼容的。
./aapt dump badging ~/Desktop/MyApp.apk
package: name='com.example.MyApp' versionCode='4' versionName='1.4'
sdkVersion:'14'
targetSdkVersion:'18'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.SYSTEM_ALERT_WINDOW'
uses-permission:'android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission:'android.permission.GET_ACCOUNTS'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
uses-permission:'com.google.android.providers.gsf.permission.READ_GSERVICES'
application-label:'MyApp'
application-icon-160:'res/drawable/icon.png'
application-icon-240:'res/drawable/icon.png'
application-icon-320:'res/drawable/icon.png'
application-icon-480:'res/drawable/icon.png'
application: label='MyApp' icon='res/drawable/icon.png'
launchable-activity: name='com.example.MyApp.MyActivity' label='' icon=''
uses-permission:'android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE','requested WRITE_EXTERNAL_STORAGE'
uses-feature:'android.hardware.location'
uses-implied-feature:'android.hardware.location','requested a location access permission'
uses-feature:'android.hardware.location.gps'
uses-implied-feature:'android.hardware.location.gps','requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature:'android.hardware.location.network'
uses-implied-feature:'android.hardware.location.network','requested android.permission.ACCESS_COURSE_LOCATION permission'
uses-feature:'android.hardware.touchscreen'
uses-implied-feature:'android.hardware.touchscreen','assumed you require a touch screen unless explicitly made optional'
uses-feature:'android.hardware.screen.portrait'
uses-implied-feature:'android.hardware.screen.portrait','one or more activities have specified a portrait orientation'
main
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'nb' 'be' 'de' 'af' 'bg' 'th' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'nl' 'pl' 'sl' 'tl' 'am' 'in' 'ko' 'ro' 'ar' 'fr' 'hr' 'sr' 'tr' 'cs' 'es' 'ms' 'et' 'it' 'lt' 'pt' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'en_GB' 'zh_CN' 'pt_BR' 'es_US' 'pt_PT' 'zh_TW'
densities: '160' '240' '320' '480'
【问题讨论】:
嘿,我也面临同样的问题。您找到解决方案了吗? 【参考方案1】:您可以调用 PackageManager.hasSystemFeature() 并检查使用 Android 4.3 的 Nexus 是否支持应用程序的 uses-feature 中列出的所有功能
【讨论】:
以上是关于Galaxy Nexus 和我自己的应用程序的 Android 4.3 不兼容问题的主要内容,如果未能解决你的问题,请参考以下文章
Galaxy tab/nexus 7 上 chrome/mozilla 中的视口、目标密度 dpi、像素比行为
Galaxy Nexus 上的 LED 手电筒可由啥 API 控制?
三星 Galaxy S3、S4、S5 的 Android 相机/图片方向问题