I used to test my app on SGS 2 I9100 (4.1.2), after the device became defect I purchased a Huawei Ascend P6 (4.2). I have to always connect it in HiSuite mode which launches their annoying sync software on PC, USB debugging won't work otherwise. Ok, I got used to it but anytime I run my app I see this log (marked as WARN) and tagged with my app (the app still runs without any issues):
02-08 13:30:34.532: W/System.err(5815): java.io.FileNotFoundException: /data/cust/xml/hw_launcher_load_icon.xml: open failed: ENOENT (No such file or directory)
02-08 13:30:34.532: W/System.err(5815): at libcore.io.IoBridge.open(IoBridge.java:409)
02-08 13:30:34.532: W/System.err(5815): at java.io.FileInputStream.<init>(FileInputStream.java:109)
02-08 13:30:34.532: W/System.err(5815): at android.content.res.ResourcesEx.readDefaultConfig(ResourcesEx.java:808)
02-08 13:30:34.532: W/System.err(5815): at android.content.res.ResourcesEx.<init>(ResourcesEx.java:741)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1721)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1752)
02-08 13:30:34.532: W/System.err(5815): at android.app.LoadedApk.getResources(LoadedApk.java:485)
02-08 13:30:34.532: W/System.err(5815): at android.app.ContextImpl.init(ContextImpl.java:1911)
02-08 13:30:34.532: W/System.err(5815): at android.app.ContextImpl.init(ContextImpl.java:1904)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4269)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.access$1300(ActivityThread.java:145)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)
02-08 13:30:34.532: W/System.err(5815): at android.os.Handler.dispatchMessage(Handler.java:99)
02-08 13:30:34.532: W/System.err(5815): at android.os.Looper.loop(Looper.java:137)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.main(ActivityThread.java:5095)
02-08 13:30:34.532: W/System.err(5815): at java.lang.reflect.Method.invokeNative(Native Method)
02-08 13:30:34.532: W/System.err(5815): at java.lang.reflect.Method.invoke(Method.java:511)
02-08 13:30:34.532: W/System.err(5815): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
02-08 13:30:34.532: W/System.err(5815): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
02-08 13:30:34.532: W/System.err(5815): at dalvik.system.NativeStart.main(Native Method)
02-08 13:30:34.532: W/System.err(5815): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.Posix.open(Native Method)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.IoBridge.open(IoBridge.java:400)
02-08 13:30:34.536: W/System.err(5815): ... 19 more
02-08 13:30:35.053: W/System.err(5815): Invalid int: ""
The problem is that this warning in the ONLY thing I see in LogCat, it somehow blocks all other messages even if a real exception occurs. To be exact: yes, I see only the message posted above and nothing else every time I run the app. As far as I understood, the system tries to get some resource which isn't even part of my project. But I have no clue why any other LogCat output does not appear. Anyone any idea what that is and how to fix it?
/data/cust/xml/hw_launcher_load_icon.xml
in my project, putting some random drawable there - with no effect at all – DroidmangetExternalStorageDirectory()
returns. That is/storage/emulated/0
There's also an /Android/data folder but I doubt it's the correct one – Droidman