English 中文(简体)
刺 app不从事有害产品行业,而是在其他装置上工作。
原标题:Android app not working on HTC Desire but working fine on other devices

My Android application works fine on Samsung Galaxie S2 , MotoDroid, ZTE Blade and the android simulator but crashes on HTC Desire. When I debug my code on HTC Desire, it throws Resource Not found exception in the SetContentView(R.layout.splash_screen_layout); I have deleted and regenerated the Gen folder, but to no avail , the issue was only reproduced on the HTC Device, so far.

这里指:

01-06 05:32:58.024: ERROR/AndroidRuntime(630): FATAL EXCEPTION: main
01-06 05:32:58.024: ERROR/AndroidRuntime(630): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.relay.BA/com.relay.BA.SplashScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2781)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2797)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread.access$2300(ActivityThread.java:135)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2132)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.os.Looper.loop(Looper.java:143)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread.main(ActivityThread.java:4914)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at java.lang.reflect.Method.invokeNative(Native Method)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at java.lang.reflect.Method.invoke(Method.java:521)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at dalvik.system.NativeStart.main(Native Method)
01-06 05:32:58.024: ERROR/AndroidRuntime(630): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.content.res.Resources.getValue(Resources.java:892)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.content.res.Resources.getLayout(Resources.java:731)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.view.LayoutInflater.inflate(LayoutInflater.java:318)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.Activity.setContentView(Activity.java:1654)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at com.relay.BA.SplashScreen.onCreate(SplashScreen.java:43)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1065)
01-06 05:32:58.024: ERROR/AndroidRuntime(630):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2745)

是否有任何人经历过这一问题,或有什么想法?

最佳回答

几乎肯定的是,你在《<<>layout-*》之一中申报的手法是正确的,但另一种不是,并且指不存在的身份证或类似的东西。 因此,在一种装置上,它可能使用<代码>layout-large并且是罚款,但在另一种装置上,则使用<代码>layout-normal。 或如此和失败。

问题回答

< 取消SDCard,并再次填满

this trick has worked for me many times on different devices when i failed to install or launch any of my application.





相关问题
handling exceptions IN Action Filters

Is there a better way to handle exceptions that occur inside an Action Filter itself in ASP .NET MVC? There re 2 ways I can think of at the moment. Using a try catch and setting the HTTP Status ...

既可捕获,又可举出例外。

我有一种办法,可以进入亚洲开发银行,因此,我国的亚行在多瑙河航道中的所有 st子都位于一个试捕区。 它正在追捕Kexception

Cross compiler exception handling - Can it be done safely?

I am doing some maintenance on a C++ windows dll library that is required to work with different VC++ compilers (as I don’t want to address different mangling schemes). I have already eliminated any ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

Watch a memory location/install data breakpoint from code?

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem happens only in release mode. ...

Unit Test for Exceptions Message

Is there a simple (Attribute-driven) way to have the following test fail on the message of the exception. [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void ExceptionTestTest() ...

热门标签