How to fix this error which randoumly makes the screen black before loading its content?
===

I'm recoding the code other coder made. It uses SAX parser among other things. When I load the main screen, the screen is first black (like frozen), but then the layout elements are loaded. 

This does not happen often, but randomly. I've noticed that this error is caught `getPackageInfoItem() NameNotFoundException`. Here is the stack trace:

    07-10 13:11:13.835: ERROR/PackageInfoItemFactory(16118): getPackageInfoItem() NameNotFoundException
    android.content.pm.PackageManager$NameNotFoundException: com.app.android
    at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:214)
    at com.sec.android.app.controlpanel.PackageInfoItemFactory.updatePackageInfoItem(PackageInfoItemFactory.java:88)
    at com.sec.android.app.controlpanel.PackageInfoItemFactory.updatePackageInfoItem(PackageInfoItemFactory.java:67)
    at com.sec.android.app.controlpanel.PackageIntentReceiver.onReceive(PackageIntentReceiver.java:27)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2131)
    at android.app.ActivityThread.access$1500(ActivityThread.java:127)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4507)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
    at dalvik.system.NativeStart.main(Native Method)

Any ideas how to solve this?