目前 Android Market 上的应用程序不支持平板电脑。应该只适用于手机
我完成了我的应用程序并准备在 Android Market 上分发。目前已经可用。在开始宣传该应用程序之前,我们正在努力解决问题。我们只有这样才能分发给不住在附近的人。那么我的问题是,它在我们扔给它的任何智能手机上都能完美运行。我们认识的一位女士在她的 Galaxy 标签上尝试过,结果崩溃了。我可以在 android 模拟器中复制这个错误。我的所有代码都是正确的,除了我在支持屏幕标签中将大屏幕和超大屏幕设置为 false 之外。我的 minSdkVersion 设置为 android 1.6
有帮助吗?
I finished my application and prepared it for distribution on Android Market. It is currently available. Before we begin to advertise the app, we are working to get the problems fixed. We only have it available so we can distribute to people who do not live nearby. My question, then, is that it works PERFECTLY on any smartphone we have thrown at it. A lady we know tried it on her Galaxy tab and it crashes out. I can replicate this error in the android emulator. All my code is correct, except for the fact that I have large and xlarge screens set to false in my support screens tag. My minSdkVersion is set for android 1.6
Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AndroidManifest.xml 中的supports-screens 标记仅由Market 用于过滤应用程序。通过将 large 和 xlarge 设置为 false,您应该通过市场排除所有平板电脑。平板电脑用户根本不会在搜索或浏览中看到您的应用程序。但是,如果狡猾的用户掌握了 APK 文件(可能是将其安装到智能手机上,然后从手机中提取 APK),这并不能阻止狡猾的用户将您的应用程序侧面加载到平板电脑上。
如果您发布了遇到的错误消息以及堆栈跟踪和/或一些 logcat 信息,我们将能够更好地帮助您。我的猜测(基于之前的经验)为什么你在 GX 选项卡上崩溃与布局和资源的组织有关。 Galaxy Tab 是一款大型 hdpi 设备,您可能会组织布局/资源,这样当在 GX 选项卡上运行时,它无法找到所需的资源并且会崩溃。
请在 Android 开发者网站上查看此文档以获取更多信息:
Android 如何查找最匹配的资源
The supports-screens tag in the AndroidManifest.xml is used only by the Market for filtering apps. By setting large and xlarge to false, you should be excluding all tablets via the Market. Tablet users will simply not see your app in searches or via browsing. However, that will not stop a crafty user from side-loading your app on a tablet if they get hold of the APK file (perhaps by installing it to a smartphone and then extracting the APK from the phone).
If you posted the error message you are experiencing along with a stacktrace and/or some logcat info, we'd be able to help you out better. My guess (based on prior experience) as to why you're crashing on the GX tab has to do with organization of layouts and resources. The Galaxy Tab is a large-hdpi device, and you may have your layouts/resources organized such that when run on the GX tab, it cannot locate a needed resource and simply crashes.
Check out this doc at the Android developer's website for more info:
How Android Finds the Best-matching Resource