简体   繁体   English

应用程式不适用于某些手机

[英]App not working on certain phones

People have been experiemcing a problem with my android app. 人们一直在探索我的android应用存在问题。 Apperently what is happening is on phones such as the Droid x and cliq cupcake have been experiencing the main menu not showing the letters on the buttons and in some occasions it will cause a force close in certain sections. 显然,诸如Droid x和cliq纸杯蛋糕之类的手机上正在发生的主菜单未在按钮上显示字母的现象,在某些情况下会在某些区域造成强制闭合。 My buttons do have picture backgrounds if that could be the cause and the app is set for version 1.6. 如果这可能是我的按钮确实有图片背景,则该应用程序设置为1.6版。 Not sure if either has anything to do with it. 不知道两者是否有任何关系。 If anyone has experienced it or has any ideas I would appreciate some help. 如果有人经历过或有任何想法,我将不胜感激。 Thanks alot 非常感谢

It should work on every phone if you read this post carefully 如果您仔细阅读这篇文章,它应该可以在所有手机上使用

http://developer.android.com/guide/practices/screens_support.html http://developer.android.com/guide/practices/screens_support.html

In best practices part recommended list is here. 在最佳实践中,部分推荐列表位于此处。

  • Use wrap_content, fill_parent, or the dp unit (instead of px), when specifying dimensions in an XML layout file 在XML布局文件中指定尺寸时,请使用wrap_content,fill_parent或dp单位(而不是px)
  • Do not use AbsoluteLayout 不要使用AbsoluteLayout
  • Do not use hard coded pixel values in your code 不要在代码中使用硬编码的像素值
  • Use density and/or resolution specific resources 使用特定密度和/或分辨率的资源

Every android developer should read that post to support for multiple screens. 每个android开发人员都应阅读该文章,以支持多个屏幕。

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM