Android application working in emulator but not in device

纵然是瞬间 提交于 2019-12-12 13:17:09

问题


I have created aa android application using android 1.6 (api 4) and the android:minSdkVersion is "3". I am using the emulator to run this application is 2.2. Its working fine in the emulator. Then I installed it in to htc hero (android 1.5) and it showing the force shut down error. Why is it so?

Please anybody give me a reason or solution for this problem.

Regards kris


回答1:


You could take an emulator 1.5, like that you will see you're error with it. be carreful that some element of interface that are allowed with 1.6, aren't in 1.5.




回答2:


Even though I don't see the log, which is definitely FUUU, I think you should add the following lines of code to your Android Manifest, if you have not done this already.

<supports-screens android:largeScreens="true"
        android:normalScreens="true" android:smallScreens="true"
        android:resizeable="true" android:anyDensity="true" />


来源:https://stackoverflow.com/questions/5103031/android-application-working-in-emulator-but-not-in-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!